I have a Flow that I want to run when an item is modified but only if 2 fields have values as they are important pieces that need to be included when a task is assigned to users. What I have in place now that isn't working is a condition that evaluates the two fields but that throws an error. Here is my formula:
Solved! Go to Solution.
Hi @JoeVolk,
Does the ProductFamily and the Customers field are both choice type column allow multiple selections?
I have made a test on my side, if the ProductFamily and the Customers field are both choice type column allow multiple selections, you couldn't get the single value from the ProductFamily array value and the Customers array value.
You could take a try to compare the length of the ProductFamily array or the Customers array with 0 to see if the ProductFamily array or the Customers array is null.
The screenshot of the flow should as below:
The expression in the Condition as below:
@and(equals(length(triggerBody()?['ProductFamily']), 0), equals(length(triggerBody()?['Customers']), 0))
When an item is created and the ProductFamily and the Customers field are both null, the flow would run successfully as below:
Best regards,
Alice
Hi @JoeVolk,
Does the ProductFamily and the Customers field are both choice type column allow multiple selections?
I have made a test on my side, if the ProductFamily and the Customers field are both choice type column allow multiple selections, you couldn't get the single value from the ProductFamily array value and the Customers array value.
You could take a try to compare the length of the ProductFamily array or the Customers array with 0 to see if the ProductFamily array or the Customers array is null.
The screenshot of the flow should as below:
The expression in the Condition as below:
@and(equals(length(triggerBody()?['ProductFamily']), 0), equals(length(triggerBody()?['Customers']), 0))
When an item is created and the ProductFamily and the Customers field are both null, the flow would run successfully as below:
Best regards,
Alice
Join digitally, March 2โ4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
89 | |
56 | |
39 | |
37 | |
29 |
User | Count |
---|---|
75 | |
66 | |
50 | |
47 | |
43 |