cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
frixel
Level: Powered On

set the richt time

I created a Flow to count emails that received in the inbox and that works well.
Only the time received from the email does not correspond to the actual time that the email was received.

How can I get that in the flow like as 06-05-2019 08:18:12?

 

Flow1.png

Flow2.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: set the richt time

Hi @frixel ,

 

Please try this Expression:

addHours(triggerBody()?['DateTimeReceived'],2,'dd-MM-yyyy HH:mm:ss')

 

Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
9 REPLIES 9
Community Support Team
Community Support Team

Re: set the richt time

Hi @frixel ,

 

You could use formatDateTime() function to change Received Time into the expected format.

 

If Received Time you inserted in the Excel table is from Get emails, use the following Expression:

formatDateTime(items('Apply_to_each')['DateTimeReceived'],'dd-MM-yyyy HH:mm:ss')

If Received Time you inserted in the Excel table is from the trigger-When a new email arrives, use this Expression:

formatDateTime(triggerBody()?['DateTimeReceived'],'dd-MM-yyyy HH:mm:ss')

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
frixel
Level: Powered On

Re: set the richt time

Hi @v-bacao-msft 

 

Thanks for your reply.

When i do what you sugested then the time is 2 hours after the realy mail was received.

 

 

Flow5.png

 

Flow6.png

Community Support Team
Community Support Team

Re: set the richt time

Hi @frixel ,

 

It is recommended to set this field to the text type.

Excel will automatically change the field type according to the data, so it is best to set the type of the field in advance.

68.PNG

 

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
frixel
Level: Powered On

Re: set the richt time

Then i have this.

 

Flow7.png

Community Support Team
Community Support Team

Re: set the richt time

Hi @frixel ,

 

Yes, this is normal because Excel file stores Date with number.

 

You can delete this line and retest your Flow.

 

Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
frixel
Level: Powered On

Re: set the richt time

Hi @v-bacao-msft 

 

See i have set as Text and empty al the rows and set the power og flow off and on.

The new row is again a time of 2 hours earlyer then the mail received.

 

Flow8.png

Community Support Team
Community Support Team

Re: set the richt time

Hi @frixel ,

 

Please try this Expression:

addHours(triggerBody()?['DateTimeReceived'],2,'dd-MM-yyyy HH:mm:ss')

 

Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
frixel
Level: Powered On

Re: set the richt time

Thanks, this is resolved.

Community Support Team
Community Support Team

Re: set the richt time

Hi @frixel ,

 

If your problem has been resolved, please click "Accept as Solution" and mark the post as solved.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 27 members 4,255 guests
Please welcome our newest community members: