I'm trying to create a flow with the dataverse connector. I want to give read access to a team if a connection is made to a property or account. So I want to find the id of the connected from and the type and based on that I have a switch on the type and inside the switch I do a get record by id. I have tried adding the connected from(value) in the row id or a string variable with the ID and I keep getting the unexpected exception error. If I run the get record by id outside of the switch statement it works without issue. Anyone have any idea of what could cause this. If not I will have to rewrite all the code with if statements.
Thanks,
Glenn
Thanks Ellis. Makes no sense, but it works!
Try converting the variable entitytype to integer:
It seems that the Switch actions can't distinguish between and integer and a string.
Don't try this: Enclosing the value in quotes - as this seems to be a bug:
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492