Hi!
I'm creating a flow to automatically trigger when a specific response is selected in an MS form, it will create a specific PDF based on the responses to send as an attachment via email to the respondent and specific individuals. I've successfully done this using the condition action and this was the flow I created that works!
Successful flow using the Condition action.
I wanted to create the same flow but for a different form but instead of 2 cases where I used the condition action, I would like it for 5 cases and I am attempting to use the switch action. I built the form essentially the same exact way expect for swapping out the condition for the switch action for the 5 different cases. However, when executing the flow, case 1 is successful but case 2 isn't.
Case #1 is successful!
Case #2 fails.
The error displayed in Case #2 is when it goes to create a file, it doesn't read the compose outputs so it fails.
Unable to process template language expressions in action '2._Create_file_as_html' inputs at line '0' and column '0': 'The template language expression 'outputs('2._Compose_filename')?['$']' cannot be evaluated because property '$' cannot be selected. Property selection is not supported on values of type 'String'. Please see https://aka.ms/logicexpressions for usage details.'.
What is weird to me is that it worked for Case #1 and they are built exactly the same. I haven't tested the other cases yet to see if they are successful or if they fail as I figured that they might fail similarly to Case #2.
My knowledge of coding is very limited and I've spent a few hours trying to troubleshoot this myself without any success! If anyone could help a girl out - I would very much appreciate it 🙂