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
Thank you fro your help. I took the loop out and it did work. thanks again
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?
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 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.
Multichoice column like this
What is the Status? Is that a multichoice column? Or a single choice?
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1