Hi,
I have a sharepoint folder that will receive two files. Each file I would like to send in an email. Screenshots are below, I am getting the error:
"The execution of template action 'Apply_to_each" failed: the result of the evaluation of "foreach" expression '@triggerOutputs()?['body'] is of type 'Object'. The result must be a valid array."
The outcome that I require is one run of the flow for both attachments and then added as an attachment to an email.
Screenshots below, thanks for your time in advance.
Solved! Go to Solution.
Hi @Jonnyphoto
The error is indicating that you don't have an "Array" in the "Apply to each," and it's true because you're passing the "File Content" that is not an array.
I found a tutorial on how you can add multiple attachments to an email. There are some steps for me to describe here.
https://www.tachytelic.net/2020/09/power-automate-add-multiple-attachments-approval-email/
The tutorial describes an approval Flow, but the concert is the same.
Can you please check if and let me know if you have any questions?
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Cheers
Manuel
Hi @Jonnyphoto
The error is indicating that you don't have an "Array" in the "Apply to each," and it's true because you're passing the "File Content" that is not an array.
I found a tutorial on how you can add multiple attachments to an email. There are some steps for me to describe here.
https://www.tachytelic.net/2020/09/power-automate-add-multiple-attachments-approval-email/
The tutorial describes an approval Flow, but the concert is the same.
Can you please check if and let me know if you have any questions?
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Cheers
Manuel
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
34 | |
16 | |
15 | |
9 | |
9 |
User | Count |
---|---|
36 | |
26 | |
17 | |
7 | |
7 |