Hello guys,
Im trying to build a flow, where a new item added in a sharepoint list eventually results in an automatic e-mail.
However, I'm getting this error when testing the flow. Does anyone know how to solve this challenge?:
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/Trainer']' is of type 'Object'. The result must be a valid array.
Trying to fix this for a few hours now.. Your help would be amazing and I would be very grateful.
Kind regards,
Mathijs
Solved! Go to Solution.
Check to be sure that the Trainer column is set to allow for multiple selections. The error you see will be generated if it is set to allow for only one account to be selected.
Please post a screen shot of your Flow in edit/design mode.
What type of column is Trainer?
@ScottShearer Thanks for your reply!
Here two screenshots of the full flow and the apply to each activity.
The Column type of Trainer is Person/Group.
Check to be sure that the Trainer column is set to allow for multiple selections. The error you see will be generated if it is set to allow for only one account to be selected.
Hi @ScottShearer Thanks for your answer! I did what you advised me to do, but unfortunately I'm getting the same error. You mean this right:?
Hi @ScottShearer , now it works!!
Don't know what I did after, but it seems like your solution is the proper one! Thanks a lot 😁
User | Count |
---|---|
89 | |
37 | |
26 | |
13 | |
12 |
User | Count |
---|---|
127 | |
54 | |
38 | |
26 | |
21 |