cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
virakones
Resolver II
Resolver II

"Request approval in Microsoft Teams when a SharePoint item is created" template - Null expression error when flow hits Teams part

Hi,

 

I'm new to power automate/flows and I'm using the "Request approval in Microsoft Teams when a SharePoint item is created".


However, it seems to be getting an error when it hits the Teams "apply to each" portion of the flow where it gets the body dynamic content from the approval and I'm getting the below error during a test:

 

ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Create_an_approval')?['body']' is of type 'Null'. The result must be a valid array.


flow test capture.JPG

 

I'm not sure why it is Null, considering there is content in the approval portion of the flow that is entered correctly from a powerapps edit form to sharepoint list - maybe there is something else I've configured incorrectly?

 

flow capture.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
virakones
Resolver II
Resolver II

I think I resolved this.

 

I redid the flow template again and it seems I had some issues with a connection not being authorized that made me fiddle too much with the setup.

 

I redid it all and the template is working as originally designed 

View solution in original post

2 REPLIES 2
virakones
Resolver II
Resolver II

I think I resolved this.

 

I redid the flow template again and it seems I had some issues with a connection not being authorized that made me fiddle too much with the setup.

 

I redid it all and the template is working as originally designed 

View solution in original post

shu
Microsoft
Microsoft

@virakones  I have a test using the template and working fine from my side. Feel free to let me know if the issue happens again.

 

Best Regards,

 

Jessie Chen

 

Support Engineer

Asia Dynamics 365 Support

Customer Services and Support

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (26,116)