Good Morning,
I have built out a Flow process that would submit an email after a form is completed. About a month ago, I started getting errors. This is the error I receive with running the test on the last one that failed. I'm using switch to complete this process. Please assist.
The execution of template action 'Switch' failed: The result of the evaluation of 'scope' action expression '@outputs('Get_response_details')?['body/r9a0e1648d10541618714b40373a6d224']' is not valid. It is of type 'Null' but is expected to be a value of type 'String, Integer'.
YOu should use a Coalesce() function around the response details for that question in the switch. I assume you made that question optional in the form and people are leaving it blank. So when you try to use the response you get an error because its null. Coalesce can replace that null value with some default that you specify. Here's a link to the documentation on how to use Coalesce. Reference guide for expression functions - Azure Logic Apps | Microsoft Learn
WarrenBelz
146,653
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional