Hi guys!
I have an automation that sends an approval request.
This approval uses in its text a date in a sharepoint list, however, in sharepoint the date is in the correct format but in the approval it is not.
Example:
On sharepoint:
On powerautomate:
I would like in powerautomate to be the same in sharepoint.
There are two possibilities.
1) If you hover over the existing entry (or look in peek code on the context menu) you can see the JSON representation of the field. That's what needs to be added at this point. You can type it in the expressions tab manually.
2) If you add a Compose action just before you do the approval and add the date to that, that Compose value will normally continue showing up in the dynamic content picker even if the date itself doesn't.
When trying to do this, I cannot find my sharepoint field.
Is there another way to write?
Instead of inserting the date field directly in the body use the expressions tab to add the formatDateTime() function around the date and insert that.
Hi!
My approval action looks like this, where can I use this "FormatDateTime" formula?
You can use the formatDateTime() function in the flow to format the date to whatever output you want.
formatDateTime(<<date>>, 'dd/MM/yyyy')
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1