cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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.
Highlighted
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

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

Re: set the richt time

Then i have this.

 

Flow7.png

Highlighted
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.
Highlighted
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

Highlighted
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

Highlighted
Post Prodigy
Post Prodigy

Re: set the richt time

Thanks, this is resolved.

Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (7,022)