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

How do you format the received date on an email?

I'm copying email from outlook to a sharepoint document list. I want the filename of the document to use the format "date : subject .eml" for example, "20190101 - this is the subject.eml" but I can't figure out how to format the ReceivedTime from the collection in the body. The job runs but does nothing. Here are the ways I've tried to use the formatdatetime function:

 

formatDateTime(body('Get_emails_(V3)')?['value']?['receivedTime'],'YYYYMMDD')

formatDateTime(body('Get_emails_(V3)')?['value']()['receivedTime'],'YYYYMMDD')

formatDateTime(body('Get_emails_(V3)')?['receivedTime'],'YYYYMMDD')

 

Any help would be appreciated. Thanks!

0 REPLIES 0

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (8,019)