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

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,663)