Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Saving email attachments with a fixed name in Onedrive folder

(0) ShareShare
ReportReport
Posted on by 108

HI Guys, 

 

 Hope you all doing great. 

I built a flow to detach the excel attachments from specific emails and save it in Ondrive folder. The issue is each attachment comes with a different name every day, and I want to have them saved with a fixed name, doesn't matter the name so My excel query recognizes it. I tried typing a fixed name in the file name filed in the Create File module, but doing that makes the attachment saved with no format. Is there any way I can do this? 

 

Thank you in advanceflow 2.png

  • Verified answer
    efialttes Profile Picture
    14,756 on at
    Re: Saving email attachments with a fixed name in Onedrive folder

    Hi!

    "I tried typing a fixed name in the file name filed in the Create File module, but doing that makes the attachment saved with no format."

    The problem is, you need to read the extension from original File Name and add it at the end of your 'default file name'

    Good stuff here

    https://www.timlinenterprises.com/microsoft-flow-substring/

     

    Hope this helps

  • Verified answer
    Hamid Profile Picture
    108 on at
    Re: Saving email attachments with a fixed name in Onedrive folder

    I applied the extension excel format .xlsx and it works perfectly!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow