This is a simple requirement that is failing on the final step when I try and add 'n' days to the DueDate variable. The Flow is simple:
All this logic works fine, but I get this error when I try and add either 2 or 1 days to DueDate:
Flow save failed with code 'WorkflowRunActionInputsInvalidProperty' and message 'The inputs of workflow run action 'Set_variable_4' of type 'SetVariable' are not valid. Self reference is not supported when updating the value of variable 'DueDate'.'.
I am using this expression to update DueDate in a Set Variable action:
Solved! Go to Solution.
Hi @MrNigel
Believe you are doing the format expression 'formatDateTime(addDays(variables('DueDate'),1),'dd-MMMM-yyyy')' under the variables('DueDate'). Flow won't support this.
What you could do is use a compose action set and use the output value for the next flow step. Another way to do is declare another variable and use the format expression.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsHi @MrNigel
Believe you are doing the format expression 'formatDateTime(addDays(variables('DueDate'),1),'dd-MMMM-yyyy')' under the variables('DueDate'). Flow won't support this.
What you could do is use a compose action set and use the output value for the next flow step. Another way to do is declare another variable and use the format expression.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogPower Automate Video TutorialsHi @MrNigel
use expressions
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 | |
28 |
User | Count |
---|---|
39 | |
37 | |
31 | |
28 | |
23 |