Notifications
Announcements
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/Status/Value']' is of type 'String'. The result must be a valid array.
this is the error
What is the Status? Is that a multichoice column? Or a single choice?
Multichoice column like this
In the apply to each, you need to use your Status field without the one with Value afterward. The one without Value is the array, which is required by an Apply to each action.
it didn't work either
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/Status']' is of type 'Object'. The result must be a valid array.
In that case, it sounds like your choice field accepts just one option. If so, I don't think you need an apply to each. Is the status also being used to control the switch? If so, move the switch outside of the apply to each and delete the apply to each. What is the reason for the apply to each when you have a switch?
Thank you fro your help. I took the loop out and it did work. thanks again
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 538 Super User 2025 Season 2
Tomac 405 Moderator
abm abm 252 Most Valuable Professional