Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Extracting PDF attachment from email, rename and save on Sharepoint

(0) ShareShare
ReportReport
Posted on by 4

Hi All,

I am trying to extract the pdf file which comes as email attachment and then rename the file with a specific text from the body of the email and finally save the file as pdf on sharepoint. All process seem to be working fine and I can see a file created on sharepoint with the name I wanted, however when I open the pdf file it doesn't show any content and throws an error.

 

Below is my flow along with the error, am I missing any step in between? any help is appreciated.

 

Step 1 - When email arrivesStep 1 - When email arrivesStep 2 - Email body textStep 2 - Email body textStep 3 - Splitting body text with enter key as delimiterStep 3 - Splitting body text with enter key as delimiterStep 4 - Extracting specific text for file renameStep 4 - Extracting specific text for file renamestep 5 - Saving attachment on sharepointstep 5 - Saving attachment on sharepointErrorError

  • Unknown geen idee Profile Picture
    1,755 on at
    Re: Extracting PDF attachment from email, rename and save on Sharepoint

    Dear S,

    A possible cause might be a corrupt file, did you check out the following solution?

    https://tomriha.com/how-to-avoid-corrupt-email-attachment-in-power-automate/

     

    Happy flowing,

    Koen

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >