cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
skong
Helper II
Helper II

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.
 
Thanks
3 REPLIES 3
ChristianAbata
Super User II
Super User II

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 www.christianabata.com 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

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (44,797)