web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Triggering a flow when...
Power Automate
Answered

Triggering a flow when a Salesforce object is updated

(0) ShareShare
ReportReport
Posted on by 14

I am struggling to create a flow when I edit an Account in Salesforce. I want to trigger a flow whenever a 'checkbox' field in Account object is set to Yes (checked) and another field is blank. I have no knowledge of the format used in OData filter and OData query and have already spent several hours trying to get this to work but no luck so far.

 

Any help will be greatly appreciated!

 

Many thanks

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @KMLNN,

     

    Could you please show a bit more about the “Checkbox” field and another field?

    Further, could you please share a screenshot of your flow’s configuration?

     

    There is no way to check if a field is empty within Filter Query field of “When a record is modified” action of Salesforce connector in Microsoft Flow currently, so I afraid that there is no way to achieve your needs within Filter Query field of “When a record is modified” action.

     

    You could consider take a try to add a Condition to achieve your needs:

    • Add a “When a record is modified” trigger.
    • Add a Condition, click ‘Edit in advanced mode”, type the following formula:

     

    @and(equals(triggerBody()?['Active__c'], 'Yes'),empty(triggerBody()?['NumberofLocations__c']))

     

    • Within “If/yes” branch of Condition, add “Send me an email notification” action.

    Image reference:5.JPG

    The flow works successfully as below:6.JPG

    Please check and see if the following article would help you understand the usage of OData query:

    https://powerusers.microsoft.com/t5/General-Flow-Discussion/SQL-OData-UTC-Now/m-p/71005/highlight/true#M9871

     

    More details about OData Query in Salesforce, please check the following article:

    https://help.salesforce.com/articleView?id=odata_query_string_options.htm&language=en_US&r=https%3A%2F%2Fwww.google.com.sg%2F&type=5

     

     

    Best regards,

    Kris

  • KMLNN Profile Picture
    14 on at

     

    Screen Shot 2017-12-19 at 13.27.21.pngHello, thanks for the reply. The fields that I have in Salesforce are marked in the attached screenshot.

     

    I also tried the formula you provided, replaced your variables with the ones that I wanted to use, but my expression is being evaluated to 'false' and therefore the required steps are not working.

    Screen Shot 2017-12-19 at 13.43.56.png

     

     

  • KMLNN Profile Picture
    14 on at

    Hi, any thoughts?

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @KMLNN,

     

    I think there is something wrong with your formula within Condition box, please take a try with the following formula within your Condition box:

    @and(equals(triggerBody()?['Create_x0020_Numex_x0020_Site__c'], 'Yes'),empty(triggerBody()?['Numex_x0020_ID__c']))

     

    Please take a try with the above formula and check if the issue is solved.

     

    Best regards,

    Kris

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard