cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ravinder_Leo
Frequent Visitor

Flow Error

I get the below error while running an approval flow -

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()?['resourceData']?['responseId']' is of type 'Integer'. The result must be a valid array.

 

Screenshot 2022-08-12 163405.jpg

 

Could you guide me in the right direction.

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Super User
Super User

Hi @Ravinder_Leo ,

 

A better way to create the flow is as follows:

ekarim2020_0-1660310516211.png

 

I think think some of the older Microsoft templates still use an Apply to Each loop.

 


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
ekarim2020
Super User
Super User

Hi @Ravinder_Leo ,

 

A better way to create the flow is as follows:

ekarim2020_0-1660310516211.png

 

I think think some of the older Microsoft templates still use an Apply to Each loop.

 


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

Ravinder_Leo
Frequent Visitor

Thanks Ellis. I did the flow again as you suggested and it worked.

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,170)