I created a flow with a set of multi level approvers. The date/time stamp is added to the following approvers email but the formatting is off after my first approver. How can I get the date/time format to look as the first one?
Thank you in advance!
Please try to use expression "formatDateTime" to format the datetime.
For more details:
In this scenario, you may try to create a flow and configure the code to format the datetime using the following function:
formatDateTime(body('Start_an_approval')?['responseDate'],'MMMM dd,yyyy hh:mm tt')
If I have answered your question, please mark your post as Solved.
Thanks for your response @tingtingluo. This is all very new to me and I need a little bit more direction.
The function/expression you provided, would I create a Compose action with this expression or do I use this in place of where the date should be in the approval email?
I have several approval emails throughout my workflow.
Thanks for the instant reply.
The Compose action is like a static variable. It can be placed anywhere within your flow, and its value can be accessed from anywhere within the flow. The value is persistent – once it is set it cannot be changed.
It's convenient to convert the format of several Date fields. To make the Compose card easier to find later, rename it by selecting the text Compose on the title bar of the card and entering a name that's easy to remember.
Thank you When I try to add to my flow, I get the following errors when saving.
The template validation failed: 'The action(s) 'Start_an_approval' referenced by 'inputs' in action 'Compose_4' are not defined in the template.'
Correct to include a valid reference to 'Start_an_approval' for the input parameter(s) of action 'Compose_4'.
Many congratulations to the Season 1 2021 Flownaut Crew!
Check out our new profile badges recognizing authored solutions!
Check out the community blog page where you can find valuable learning material from community and product team members!