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

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
ChristianAbata
Super User
Super User

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

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.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,653)