Skip to main content

Notifications

Service | Customer Service, Contact Center, Fie...
Suggested answer

Power Automate Trigger For When 'To Date' Field Equals Today

Posted on by 30

Hi All, 

I am hoping someone can help me. 

I have a flow which I want to trigger when a record is modified (on the Resource Requirement entity). 

I want the flow to only trigger if the 'To Date' field equals today. 

The below is the field that I am looking to filter on and how the data shows from D365. 
pastedimage1665605245745v3.png

I have tried: 
@equals(triggerBody()?['msdyn_todate'],utcNow('dd-mm-yyyy')) 
@equals(triggerBody()?['msdyn_todate'],utcNow('yyyy-mm-dd'))
@equals(triggerBody()?['body/msdyn_todate'],utcNow('dd-mm-yyyy')) 
@equals(triggerBody()?['body/msdyn_todate'],utcNow('yyyy-mm-dd'))
@equals(triggerBody()?['msdyn_todate'],startOfDay) - this expression isn't accepted when I try to save the flow. 

But none of these make the flow trigger. 

Can anyone help and tell me what I am doing wrong? 


  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Power Automate Trigger For When 'To Date' Field Equals Today

    Hi nisar542,

    mm need to be uppercase. Please try @equals(triggerBody()?['body/msdyn_todate'],utcNow('yyyy-MM-dd')).

    I tested this and it can work:

    pastedimage1665629988344v1.png

    Result:

    pastedimage1665630048793v2.png

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,297 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans