Skip to main content

Notifications

Community site session details

Community site session details

Session Id : M1X3eVZ5xZOzQNy1OdE1rI
Power Automate - General Discussion
Answered

Trigger conditions

Like (0) ShareShare
ReportReport
Posted on 2 May 2024 01:27:55 by 183

Hi all,

 

I have a flow that is triggered when a SharePoint list item is edited.

 

The current condition is when a Yes/No column called "Added to SQL" is set to yes then the flow should trigger.

 

@equals(triggerBody()?['AddedtoSQL'], true)


I would like to add a second condition to avoid the flow to trigger again. This is an extract of my trigger output:

 

 "body": {
 "@odata.etag": "\"7\"",
 "ItemInternalId": "67",
 "ID": 67,
 "AddedtoSQL": true,
 "SQL": "No",
 "SharePoint": "Yes",

 

So I would like the trigger to execute when:

1) Added to SQL is true

2) SQL is No

 

I had this but its not working:

 

@And(equals(triggerBody()?['AddedtoSQL'], true), equals(triggerBody()?['SQL'], false))

 

Does the condition need to be of value No or false?

 

Thanks,
David

 

 

 

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on 02 May 2024 at 01:54:50
    Re: Trigger conditions

    Hi David,

     

    The column 'SQL' looks like a single line of text so pls modify the trigger condition as shown below:

    @and(equals(triggerBody()?['AddedtoSQL'], true), not(equals(triggerBody()?['SQL'], 'Yes')))

    If 'SQL' is not single line of text then pls share its data type.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,318 Most Valuable Professional on 02 May 2024 at 01:52:15
    Re: Trigger conditions

    Try

     

    @And(equals(triggerBody()?['AddedtoSQL'], true), equals(triggerBody()?['SQL'], 'No'))

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started