Showing results for 
Search instead for 
Did you mean: 
Resolver I
Resolver I

Update SharePoint item and send email based on SharePoint item status field.

I have a flow trigger by item change in a SharePoint list. I use status field to determine what action I take which is sending different kind of email and on condition approved I send email and update the status field. This is working flow using condition control. email_update_with_condition.JPG


But when I change the condition control to switch control I can't save the flow. And the error message is 

Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Send_an_email_notification_(V3)_2' at line '1 and column '2831' cannot reference action 'Update_item'. Action 'Update_item' must either be in 'runAfter' path or within a scope action on the 'runAfter' path of action 'Send_an_email_notification_(V3)_2', or be a Trigger.'.'. update_send_email_using_switch.png
Please help me to fix the flow.
Super User
Super User

Hi @skong  thats because the property from Update_item needs to be added again. What I recommend you is delete all the properties and add it from scratch again.

Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!

If you want you can follow me at Quieres contenido en español? Síguenos en Power Automate LA

I tried by removing the condition control and replace with a switch control and update item re-enter all the parameters I got the same error. 

If I removed the update item action then the flow works.

Helpful resources

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,671)