Hi,
I am working on a flow that creates and updates planner task details with a list of information. One piece of information is a date. I initialized the variable as a string and set the variable. See attached. When I update the task details, I use the FormatDateTime expression and use the variable. formatDateTime(variables('xlsxHireDate'),'yyyy-MM-dd') When I test the flow, it fails.
Additional details: I use scope control to combine my steps for error handling. It appears I cannot initiate a variable within a scope.
Thanks for the help!Initialize variable
Set variable
Expression
Error