Skip to main content

Notifications

Community site session details

Community site session details

Session Id : QmpGgDpXbD/v1Ok76+2CBi
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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Automate - General Discussion

#1
stampcoin Profile Picture

stampcoin 23

#2
Pstork1 Profile Picture

Pstork1 20 Most Valuable Professional

#3
Gprior Profile Picture

Gprior 19

Overall leaderboard
Loading started
Loading complete