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

Community site session details

Session Id : /9yZT9WkHpSmjYf/ni1a/S
Power Automate - Building Flows
Answered

Saving PDF Email Attachment to SharePoint - Corrupted

Like (0) ShareShare
ReportReport
Posted on 3 Aug 2020 13:54:59 by

I have a flow to take a PDF attachment from my Outlook Inbox, and save it to a SharePoint library with the "Create a file" action. 

Similar to this user's flow:

https://powerusers.microsoft.com/t5/Building-Flows/Flow-to-save-document-in-SharePoint-and-extract-metadata-from/m-p/192085#M19845

 

However, when the file is saved it is corrupted. I get the "Hmm...looks like this file doesn't have a preview we can show you" message, with a button to download the file. When I download, it throws a "failed to load" error in the browser, and the downloaded version is not openable either. 

Any help?

I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on 03 Aug 2020 at 14:05:06
    Re: Saving PDF Email Attachment to SharePoint - Corrupted

    Nevermind - resolved. It was a stupid error. 

    I was using the "Attachments Content" field from my trigger (When an email arrives) rather than from my "Get Attachments" action. 

    Once I changed it it worked properly. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard
Loading complete