cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RohitRaj
New Member

Trigger Conditions to start a flow when a 'ProjectID' field CONTAINS a value like 'GA'

Trigger Conditions to start a flow when a 'ProjectID' field CONTAINS a value like 'GA', i have configured the trigger condition as below but no luck:

 

RohitRaj_0-1659944296283.png

 

Could you please help.

1 ACCEPTED SOLUTION

Accepted Solutions

ok @RohitRaj ,

so, since it's a lookup field, you should use this expression:

@contains(triggerOutputs()?['body/ProjectID/Value'], 'GA')

 

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

BR,

Marco

View solution in original post

6 REPLIES 6
MarconettiMarco
Super User
Super User

Hello @RohitRaj ,

please use:

@contains(triggerBody()?['ProjectID'], 'GA')

 

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

BR,

Marco

Rhiassuring
Super User
Super User

Based on what I'm seeing here (https://community.dynamics.com/crm/b/dynamics-365-blog-with-manish/posts/trigger-condition-expressio...e ) I think it needs to be @contains(triggerBody()?['ProjectID'],'GA')

edit: wow I've had this page open for too long and I got beat on the solution by 30 whole minutes, lol

Hi Marconetti,

 

Tried both inputs below still the same:

@contains(triggerbody()?['ProjectID'], 'GA')

@contains(triggerbody()?['ProjectID'],'GA')

 

Please see below screen reference of my trigger column which is a look up column and value examples:

RohitRaj_0-1659950270056.png

 

 

ok @RohitRaj ,

so, since it's a lookup field, you should use this expression:

@contains(triggerOutputs()?['body/ProjectID/Value'], 'GA')

 

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

BR,

Marco

Thank you Marconetti. That worked.

RohitRaj
New Member

Hi,

 

I can see the flow is still not working. Not sure what is wrong in settings of the trigger:

RohitRaj_1-1661331789810.png

 

Error i am getting as below:

 

RohitRaj_0-1661331766659.png

 

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 (4,149)