cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
davidtheilman
Frequent Visitor

Trigger Condition Not Working as expected

Hello:

 

I have a SharePoint List created and in one of the fields you are asked to select "job location"

 

You have six options to choose from

 

I am trying to create a Power Automate that starts with "When an item is created"

 

Site Address and List Name are correct

 

I want the flow to look and determine which "job location" is selected to determine if the flow process starts or not

 

In my testing, I am entering "Education Services" as the entry that will start the process and I am using the "Trigger Condition" in the "When an item is created" settings, however it is not working

 

Can you please take a look at this and let me know what you think is wrong? Also, if you need more information, just let me know

 

davidtheilman_0-1599683114347.png

Thanks in Advance!

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
yashkamdar
Super User II
Super User II

Hello Team,

 

No that does not look correct.

 

I believe you have a choice type column and therefore you should have the following expression as a Condition in the settings of the Trigger

 

@equals(triggerBody()?['Jon_x0020_Venue_x0020_Location']?['value'],'EducationServices')  

 

 

I have done this a zillion times in my environment and this expression has always worked, let me show you a for example-

 

yashkamdar_0-1599712120648.png

 

 

yashkamdar_1-1599712209996.png

 

If I click on CLICK TO DOWNLOAD for the outputs, you can see the expression worked when I wanted the trigger to go off only when the value is ONLINE

yashkamdar_2-1599712239811.png

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

4 REPLIES 4
ScottShearer
Super User III
Super User III

@davidtheilman 

Can you tell me the column type of the Location services column?

Also, this type of comparison is case sensitive.

 

 

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

Scott
yashkamdar
Super User II
Super User II

Hello Team,

 

No that does not look correct.

 

I believe you have a choice type column and therefore you should have the following expression as a Condition in the settings of the Trigger

 

@equals(triggerBody()?['Jon_x0020_Venue_x0020_Location']?['value'],'EducationServices')  

 

 

I have done this a zillion times in my environment and this expression has always worked, let me show you a for example-

 

yashkamdar_0-1599712120648.png

 

 

yashkamdar_1-1599712209996.png

 

If I click on CLICK TO DOWNLOAD for the outputs, you can see the expression worked when I wanted the trigger to go off only when the value is ONLINE

yashkamdar_2-1599712239811.png

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

@yashkamdar 

 

That worked PERFECT.....Thank you so much!

Hello Team,

 

So glad that I could help you out in this !!

 

Thank you.

 

Keep exploring the community, by asking interesting questions, by answering questions, we are all here to help each other out.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,454)