cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UluruRob
Helper III
Helper III

Corrupt Content when adding attachments to Approval Flow

I have an approval flow where I am trying to add the attachment from an external form (Cognito) to the 'Send and Wait for an Approval' step.

 

The file is actually attaching successfully however the content is corrupt and will not open correctly.

 

I have initialized and set variables for the File Name & the Content, file name works but Content obviously not, if I initialize content as a string it just sends random characters and corrupts the file If I initialize as array it errors out the flow expecting it to be a string?

 

It actually works if put the direct File Name and Content from the New Entry in the 'Send and Wait for an Approval' step, however that then puts that into an "Apply to Each' which has a knock on effect to the rest of the flow? Any help appreciated.

 

UluruRob_0-1634278452103.png

 

UluruRob_1-1634278466359.png

 

 

 

1 REPLY 1
ekarim2020
Super User
Super User

Attachments for Approvals requires an array variable format with the following format:

2021-10-15_09-37-29.png

The array variable will be able handle multiple file attachments.  The structure of the content (using the append to array action) should be as:

2021-10-15_09-35-58.png

 

2021-10-15_09-36-23.png

 


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

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,327)