Hi all,
I'm having some issues with a flow. I have reached the boundaries of my flow capabilities. I have used too many nested if statements (9, whereas the maximum number is 8). So I'm looking to remove some redundant actions.
One of those actions is an if statement that says true when a certain field is empty (@null). When the field is not empty, I added a switch case that states all the possible values for that field.
Now I was wondering if I could just add a case to my switch case that is true when that field is empty. It is not possible to use dynamic content or expressions in the switch case, that's why I haven't been able to figure this out yet.
I tried something like:
But that doesn't seem to work.
Any other suggestions?
Thanks in advance.
Best regards,
AVH
Hi @AVH,
Do you want to check if a filed is blank using Switch case in the flow? I am afraid that it might be not possible to use a null value in the Switch, because value of type String, Integer are expected at here.
Please use the if statement in your flow, I assume it should be a good choice for your scenario.
Best regards,
Mabel Mao
Hi @v-yamao-msft,
Thanks for your reply.
That is indeed what I am trying to do.
I want to avoid using the if statement because I already have too many nested if statements in my flow.
Is there no other way to check if a field is blank other than with an if statement?
Best regards,
AVH
@AVH I know this is an older topic but incase this is still a need or anyone else is wondering the same thing...
I was able to add a Compose first where I converted the value to a string and then evaluated the output from the compose.
Hope that helps!
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
39 | |
37 | |
37 | |
32 | |
27 |
User | Count |
---|---|
39 | |
37 | |
31 | |
28 | |
23 |