cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
smorley
Post Patron
Post Patron

Trigger conditions for SharePoint Choice fields

Hi everyone,

 

I have a relatively simple flow, but it runs on Create and Modify.  I'd like a trigger condition to prevent looping.

 

The trigger should be: "session lookup" not equal to "session calculated".

 

triggercondition.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

The trigger condition would be the following.

@not(equals(triggerOutputs()?['body/Sessionlookup/Value'], 'session calculated'))


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

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

The trigger condition would be the following.

@not(equals(triggerOutputs()?['body/Sessionlookup/Value'], 'session calculated'))


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

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

That was a big help.  I have two more conditions.  The next one is Status, another choice field.  I hate syntax.

triggerconditionstatus.jpg

@Pstork1 I think I have it now.

 

@or(

not(equals(triggerOutputs()?['body/Session_x0020_Lookup'], 'Session_x0020_calculated')),

not(equals(triggerOutputs()?['body/Status/Value'], 'body/Status/Value')),
not(equals(triggerOutputs()?['body/OSCE_x0020_Phase_x0020_lookup'], 'body/OSCE_x0020_Phase/Value'))
)

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

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.

Users online (2,082)