cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
frixel Post Prodigy
Post Prodigy

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
Community Support

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.

View solution in original post

9 REPLIES 9
Community Support
Community Support

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 Post Prodigy
Post Prodigy

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
Community Support

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 Post Prodigy
Post Prodigy

Re: set the richt time

Then i have this.

 

Flow7.png

Community Support
Community Support

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 Post Prodigy
Post Prodigy

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
Community Support

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.

View solution in original post

frixel Post Prodigy
Post Prodigy

Re: set the richt time

Thanks, this is resolved.

Community Support
Community Support

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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,529)