cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

PDF corrupted when sending to Outlook - file fine in OneDrive and file when send down the first condition.

Hi

 

Having a problem with a corrupted pdf when attaching a file and emailing to outlook. The file gets delivered perfectly down the first condition but then corrupted down the 2nd. PDF opens perfectly in OneDrive so that is not the issue.

 

Flow:

J_Sturg_1-1603292578823.png

 

 

Error:

J_Sturg_2-1603292694629.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @J_Sturg,

 

Before inserting file content into the attachment file array, you could use base64() function to convert the file content to make sure it could be opened correctly. For example:

base64(outputs('Get_file_content')?['body'])

Screenshot 2020-10-22 152547.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @J_Sturg,

 

Before inserting file content into the attachment file array, you could use base64() function to convert the file content to make sure it could be opened correctly. For example:

base64(outputs('Get_file_content')?['body'])

Screenshot 2020-10-22 152547.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (7,466)