Hello,
Trying to get past something that I expected to be easy:
If Y/N field 1-HR Complete is set to true AND the value of text field Progress is set to Step 1, my condition should return as TRUE
It does not, and have verified that the data actually meets the condition. This is the code in advanced mode:
@and(equals(items()?['1-HR Complete']?['Value], True), equals(item()?['Progress']?['Value'], 'Step 1'))
Can someone point me in the right direction?
Thank you!
Solved! Go to Solution.
The following formula worked for me:
and(equals(triggerBody()?['OData__x0031__x002d_HR_x0020_Complete'], true), equals(triggerBody()?['Progress'], 'Step 1'))
The field names were entered in the formula by selecting the via Dynamic data.
I successfully tested the following Flow:
The following formula worked for me:
and(equals(triggerBody()?['OData__x0031__x002d_HR_x0020_Complete'], true), equals(triggerBody()?['Progress'], 'Step 1'))
The field names were entered in the formula by selecting the via Dynamic data.
I successfully tested the following Flow:
Hi @Pandra801,
Could you please show more details about your SharePoint list?
I think there is something wrong with the formula that you specified within the Condition box of your flow. I have created a SharePoint list on my side and the data structure of it as below:
Note: The 1-HR Complete column is a Yes/No type column in my SharePoint list and the Progress column and the TaskName column are both Single line of text type column.
Please take a try with the following workaround:
@and(equals(triggerBody()?['OData__x0031__x002d_HR_x0020_Complete'], true),equals(triggerBody()?['Progress'], 'Step 1'))
Note: Within Condition box, you could select 1-HR Complete dynamic content of the trigger within left input box and type true within right input box as below:
Then when you click "Edit in advanced mode", the formula would be changed as below:
Image reference:
The flow works successfully as below:
More details about using expression in flow actions, please check the following article:
Using expression in flow actions
Best regards,
Kris
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
25 | |
23 | |
23 | |
23 | |
17 |
User | Count |
---|---|
57 | |
39 | |
37 | |
29 | |
28 |