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
Solved! Go to Solution.
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
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:
@and(equals(triggerBody()?['Active__c'], 'Yes'),empty(triggerBody()?['NumberofLocations__c']))
Image reference:
The flow works successfully as below:
Please check and see if the following article would help you understand the usage of OData query:
More details about OData Query in Salesforce, please check the following article:
Best regards,
Kris
Hello, 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.
Hi, any thoughts?
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
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
User | Count |
---|---|
76 | |
20 | |
17 | |
14 | |
13 |
User | Count |
---|---|
128 | |
35 | |
29 | |
28 | |
25 |