web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Automation flow run before 7 days of a date parameter

(0) ShareShare
ReportReport
Posted on by 8

I create a new date field in Dynamic CRM Account.

 

I am trying to add a new flow that can run 7 days before date store in this field and send an email.

 

But I really dont know how to write condition?

Please help, TKX.

 

George

  • Power Platform Communities Profile Picture
    8 on at

    @ufgeorge 

    I would add another calculated field .. 

    Mira_Ghaly_0-1622373543415.png

    Then you create a Recurrence flow that runs daily and Retrieves all records where Calculated Field = Today

    You can use the List Rows Action with FetchXML

     

     

  • Power Platform Communities Profile Picture
    8 on at

    @Mira_Ghaly 

    This is a good way.

    But maybe a field to calculate how many days left...

    Then I can use this field = 30 to send a email, =7 send another...

     

    How to set calculate about this? utcNow() - datetime field?

  • Power Platform Communities Profile Picture
    8 on at

    @Mira_Ghaly 

    I found I can use:

    DiffInDays(NOW(), crb94_webschool_expire)

     

    But there is a question.

    now() shows date of my time zone.

    But date stored in CRM is UTC.

    How to correct it?

    TKX.

  • Power Platform Communities Profile Picture
    8 on at

    @ufgeorge are you using Diffindays in power automate or as a calculated field?

     

  • Power Platform Communities Profile Picture
    8 on at

    @Mira_Ghaly 

    I use Diffindays in calc field.

    It can only use utcNow() in Power Automate.

     

    I don't know if I was wrong!

    Can you tell me Now() returns utc time or local time?

    Then I can decide how I can use it.

     

    TKX.

     

    George

  • Power Platform Communities Profile Picture
    8 on at

    @ufgeorge 

    It will work as UTC Time

     

  • Power Platform Communities Profile Picture
    8 on at

    @Mira_Ghaly 

    I see.

    If result of Diffindays ()  is lower than 24hours, the result will show 0 because it is less than 1 day.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
ParthPatel249 Profile Picture

ParthPatel249 64

#2
11manish Profile Picture

11manish 52 Super User 2026 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 44 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans