Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Getting wrong date value from Microsoft Dynamics 365 CRM

(0) ShareShare
ReportReport
Posted on by 41

Hi,

 

I have a flow that runs everyday to check if there are any task with due date today to send a reminder email to the user. The flow works fine. The only issue which I am facing and have no idea why it happening. The issue is if the due date of the task in Dynamics 365 CRM is April 24, 2020, when I get the data in Microsoft Flow, this date value will turn into April 23, 2020 which is quite strange. I have no idea why it is subtracting one day automatically from the date field while getting the data from Dynamics 365 CRM.

 

Please help. 

 

Thanks,

Waleed.

  • JeganathanG Profile Picture
    50 on at
    Re: Getting wrong date value from Microsoft Dynamics 365 CRM

    Hi @WaleedBinAfzal ,

    I also have the problem that the date I work on will be one day off from the actual date,I'm using a document update remainder flow that sends an email once a week.

    The main reason is that the system local time and the login email time zone are different.

    1. This is my System Time0101

     

     

     

    2. This is my Login Email Time Zone

     

     

    0202

     

     

    3. Changed Login email time zone

     

     

    image.png

     

    After changing the time zone on both the system and the login email, the problem was resolved, and the date now updates correctly.

     

    Thanks,

    Jegan

  • MJain Profile Picture
    2,450 on at
    Re: Getting wrong date value from Microsoft Dynamics 365 CRM

    Hi @WaleedBinAfzal ,

     

    Additionally you have to make sure that the timezone which you are running your recurring job matches with your user when you query data in CRM

     

    Capture.JPG

     

    Thanks

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on at
    Re: Getting wrong date value from Microsoft Dynamics 365 CRM

    @WaleedBinAfzal 

    The date you are seeing through your D365 front-end is corrected for your local timezone based on your personal settings.  It is stored, however, in UTC.  If you add a step after it fetches the date called "Conver time zone" to change from UTC to your local, the dates should match.

     

    Please keep us posted.

    -Ed

     

     

    If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow