cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

Using utcnow() and convertfromutc gives yesterday's date on the date field in Dynamics instead of today's

Hi,

 

I've come across an unusual issue in multiple flows I have where I'm using utcNow() and convertfromutc to set today's date for a date field in Dynamics. This has worked great until recently when I've noticed that the actual date in Dynamics is getting set as yesterday's date instead of today's like it should. I've confirmed that in the Flow it really is setting the date in the output as today but something happens when it goes to update the field in Dynamics. Dynamics is set to the EST time zone but that still doesn't explain why it's a day behind. For example, I just ran a test where it's 7am EST and it still set it to yesterday's date. Here are some screenshots of the issue. What am I missing?:

Flow expression:

 

convertfromutc-expression.png

 

Flow output:

 

flowoutput.png

 

Dynamics field update:

 

dynamicsfieldupdate.png

2 ACCEPTED SOLUTIONS

Accepted Solutions

yes @phildrake198  is true, pleasee see that in your convert date time action you can select Universal time UTC to transform tou your local see

universa.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

Hi @phildrake198 ,

 

I agree with @ChristianAbata 's suggestion that you should sue the convert time zone action to convert the utc() time to your local time:

1.png

 

Best regards,

Alice   

Community Support Team _ Alice Zhang
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

4 REPLIES 4
Super User II
Super User II

oh @phildrake198  this is probably your dynamics time zone, pleasee the this post and follow the steps to configured it 

 

 

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/fin-ops/organization-administration/tasks/...



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Hi Christian,

 

I don't have Dynamics Finance and Operations, it's Dynamics CE which doesn't seem to have the same navigation option referenced by that article. Here's what I already set though:

 

personaloptions.png

 

Also the date field is set to "User Local" which I believe means it should check the time zone set for the local user viewing that record. Is this not true?

yes @phildrake198  is true, pleasee see that in your convert date time action you can select Universal time UTC to transform tou your local see

universa.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

Hi @phildrake198 ,

 

I agree with @ChristianAbata 's suggestion that you should sue the convert time zone action to convert the utc() time to your local time:

1.png

 

Best regards,

Alice   

Community Support Team _ Alice Zhang
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

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

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 (86,954)