Im trying to create a flow that will take attachments from emails placed in a folder and place them in a onedrive folder based on the first 5 characters of the subject of the email that the attachment arrived in. Based on the split, the flow will select the folder in onedrive to place the attachment in.
To test the collection process, I was making the flow send me a message in teams when it detected the attachment and return the outputs of the flow.
Instead this is what I got.
Error message received: The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@{triggerOutputs()?['body/attachments']}@{triggerOutputs()?['body/subject']}' is of type 'String'. The result must be a valid array.
Im close, but not quite there.
Any ideas where I went wrong? Be gentle, I'm new to this 🙂
Solved! Go to Solution.
Hi @damianjyates_DG ,
From the screenshot you have mentioned in Apply to each you should be only having Attachments and remove subject from there.
Thanks
Hi @damianjyates_DG ,
From the screenshot you have mentioned in Apply to each you should be only having Attachments and remove subject from there.
Thanks
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 |
---|---|
90 | |
57 | |
40 | |
39 | |
35 |
User | Count |
---|---|
79 | |
66 | |
57 | |
52 | |
42 |