Announcements
Hi,
I have a Choice field named 'Application Type', and when that field is modified, I want to trigger an action. So for that I used the trigger 'When a row is modified', and then I Initialized Variable for that choice field as follows (please refer screenshots)...
Then I applied a condition on that Initialized Variable...
So if the value of the Choice field is a particular value, I want to trigger an action, but whether the value is equal to my chosen value or not, the result of the condition is always returning 'false', and the 'If no' action is the one that is always being triggered.
Can someone please tell me what is wrong with my condition?
Thanks!
You are right, I put quotes around the number value in the Condition and now my flow is working!
Thanks a lot, Leah!!
Hi Partner,
Yes, the values are all correct, it is only the type inconsistency that causes this.
@ Leah Ju
Thank you for your response. The actual options in the 'Application Type' field are strings, i.e., 'New', 'Renewal', 'Resubmission', 'Extension', etc. So the actual options are strings, but the number I have used is the number value of these choice labels. This number represents the option 'Extension'. The flow run shows that the Trigger of my flow has captured both the values correctly. This is what is shown in the output...
{
"new_applicationtype": 248870003,
"_new_applicationtype_label": "Extension"
}
Even the output of my action branch that ran after the condition returned false has captured the value and label correctly..
{
"aparnasw_applicationtype@OData.Community.Display.V1.FormattedValue": "Extension",
"aparnasw_applicationtype": 248870003
}
So I am not able to figure out where the problem lies. Thank you for your help.
Hi Partner,
In your example, Application Type is number but AppType is string. If you are trying to compare number type to string than the condition will never satisfied.
Now, you can choose to modify the type of either of them to match:
(1)Change Application Type value to string:
--a. Using expression: string(24887003)
--b. Adding double quotes to static value(24887003) directly
(2)Change AppType variable:
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156