I have a flow where a Switch block sends an approval request to a user, based on a form question selection.
The form question is being properly read, as per prior steps are working ok.
However, when the switch block is activated, it skips (marks as false) all of the given conditions, even the one that is true:
Here's my entire flow:
Sorry for the misunderstanding! I initially thought your switch was evaluating the Approval result.
My suggestion is, to add a 'Compose' action block just before the Switch ad assign as its input the same dynamic content you assigned as the Switch input. THis way you can reexecute the flow and inspect its results.
A usual problem is a extra space in your data ,so no matter it looks the same, since Switch requests exact match it will fail. Assuming you stored the data to be evaluated in a string variable called 'myInputData', you can use replace() to remove all spaces by means of the following expression:
...and now compare it against
You can also use toUpper() to avoid mismatches between capital letters and small letters
Hope this helps
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.