cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cjohnson20
Helper I
Helper I

File becoming corrupted in flow

Hi,

 

I have built a flow that when a button is hit in power apps sends all information about a project including attachments to the specified user.  The issue I am currently having is in the email where this information is sent file are coming over corrupted.

 

Any ideas on how to correct this.  The section of my flow where i get attachments is shown below.  The items are then attached in the email as a variable.

 

Cjohnson20_0-1659810696063.png

 

Cjohnson20_1-1659810748038.png

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Normally it should look like the below image

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

7 REPLIES 7
Pstork1
Dual Super User
Dual Super User

I have a flow that does the same thing and everything in yours looks right.  One thing to check is what the actual value being passed to ContentBytes is in the array.  It should be an object that contains a content type and content.  I've seen cases where it only has the Content and not the content type.  That will make it look like the file is corrupt.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi,

 

What should it look like if it is passing through correctly?  This is what i am currently seeing.

 

Cjohnson20_0-1659961244296.png

 

Normally it should look like the below image

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Any suggestions on what could be driving this difference?

Double check what "Body" you are using for the ContentBytes.  It doesn't look like you are using the right dynamic content.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Cjohnson20
Helper I
Helper I

@Pstork1 That was the issue i was able to get it to work yesterday.  Thanks for the help

check box or whatever in there to auto-detect file type automatically too

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,260)