Skip to main content

Notifications

Community site session details
Power Automate - Building Flows
Answered

Saving email attachments to sharepoint: help modifying file name

Like (0) ShareShare
ReportReport
Posted on 4 Jul 2023 20:34:13 by 5

Hi! I succesfully created a flow that saves every attachment I receive in a specific outlook folder to a specified location in Sharepoint. The file keeps it's original name, but I'd like to automate a name change, where underscores in this new file are replaced by spaces. 

 

I'm new to Power Automate and still learning, I'm grateful for any help you can provide!

  • danielafuentes_ Profile Picture
    5 on 05 Jul 2023 at 19:56:58
    Re: Saving email attachments to sharepoint: help modifying file name

    Thanks that worked perfectly!

  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on 05 Jul 2023 at 03:03:14
    Re: Saving email attachments to sharepoint: help modifying file name

    Hi @danielafuentes_,

    Do you want to save the attachments from email to SharePoint, and replace the underscores in filename with space?

     

    I did some test according to your requirements.

     

    vmingkzmsft_0-1688525564392.png

    replace(outputs('Compose'),'_',' ')

    Best Regards,

    Kyire

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,786 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started
Loading started