cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhunsicker
New Member

formatDateTime function combined with item function

Hello,

 

I am a beginner with Power Automate and I try to create an Approval flow. I use an SharePoint Excel file as central document to start Approvals and collect approval status, timestamp and comment, too. Power Automate help me pretty much and the communication between Excel and Approval flow is given.

 

I experienced a constraint with the Timestamp inormation: In the referring Excel list the timestamp information was in the following format (example):

 

2022-05-31T08:36:28Z

 

I do need need "T" and "Z" but finally format analog Excel:  "dd/MM/yyyy hh:mm:ss"

 

Therefore I used Expression in the Excel- updating a row- tool by follows:

 

formatDateTime(item('body/requestDate'),'dd/MM/yyyy hh:mm:tt')
 
Unfortunately it is not working and Error Message is saying that there is something wrong with my dynamic item content.
 
Anybody an idea how to solve this problem?
 
Thanks a lot in advance. 😀
 
BR, Bernd

 

0 REPLIES 0

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (1,808)