Notifications
Announcements
This may be something simple, but I can't update a string var using "Set Var".
First I initialized the var:
Then I try to set the var:
And I get a non-descriptive error:
I also tried wrapping my string in "double" or 'single' quotes. Did not help.
Hi @marmot777
Pls try replacing input of switch action with an expression mentioned below:
Below expression needs to be added in the expression box as highlighted in the above screenshot:
int(variables('Delta Due Date Text'))
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks Manish for taking a look. When I entered the expression in the Switch function, I got the following error upon running.
I felt the switch was working before. I observed the flow running through Case 2 or Case 3 as expected (and then erroring).
This example shows it successfully switching on a value of 7, and then erroring.
After looking closer, your solution works. I just had to change
to
int(variables('Delta Due Date'))
in order to reference the right variable.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 538 Super User 2025 Season 2
Tomac 405 Moderator
abm abm 252 Most Valuable Professional