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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,191)