web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extracting PDF attachm...
Power Automate
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

Categories:
I have the same question (0)
  • Unknown geen idee Profile Picture
    1,757 on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard