Hello all-
I am connecting to a dataverse table and parsing the rows using the ParseJson data operation action. I am outputting this to an SMS (via appending it to a string variable) and when trying to format a specific column that is of Data Type 'Date Only', I am using the formatDateTime('<timestamp>', '<format>'?) function like this:
items('Apply_to_each')[formatDateTime(string('cr16f_paymentdate'),'d')]
and it errors out with the following error:
Unable to process template language expressions in action 'Append_to_string_variable' inputs at line '1' and column '20518': 'In function 'formatDateTime', the value provided for date time string 'cr16f_paymentdate' was not valid. The datetime string must match ISO 8601 format.'.
I get that it's telling me that the timestamp is wrong, but here is the output from the parseJson operation:
"cr16f_paymentdate": "2021-11-04T04:00:00Z",
which as far as I can tell DOES match the ISO 8601 format. My flow works, but I get ugly output which will confuse my poor helpless users.
Can anyone shove me in the right direction on this?
(I also tried this using the convertFromUtc('<timestamp>', '<destinationTimeZone>', '<format>'?) function with the same result)
Thanks in advance for any assistance!!
-SCM