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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Trigger a workflow based on TIME

(0) ShareShare
ReportReport
Posted on by 97

Hi team,

So I have 2 Entities: Event and Event Schedule

Event has a Start Date and End Date

Event Schedule has Service Start Date/Time and Service End Date/Time.

Event (1) : Event Schedule (N) relationship

I want a workflow to fire off a notification to a user if the Event Schedule Service End TIME is past 8:01 PM. 

How do I get that to work?

Thanks!

I have the same question (0)
  • eSBe Profile Picture
    97 on at
    Trigger workflow based on Time

    Hi team,

    So I have 2 Entities: Event and Event Schedule

    Event has a Start Date and End Date

    Event Schedule has Service Start Date/Time and Service End Date/Time.

    Event (1) : Event Schedule (N) relationship

    I want a workflow to fire off a notification to a user if the Event Schedule Service End TIME is past 8:01 PM. 

    How do I get that to work?

    Thanks!

  • LuHao Profile Picture
    40,892 on at
    RE: Trigger a workflow based on TIME

    Hi partner,

    It seems that the Event entity does not play any role in this request.

    Also, what's the trigger for this workflow? 

    Generally, workflow triggers have records being created, updated, and deleted.

    pastedimage1616053538979v1.png

  • Suggested answer
    Inogic Profile Picture
    682 on at
    RE: Trigger a workflow based on TIME

    Hi,

    In workflow, there is no OOB way to set a condition on the time part of date time field.

    You can use a trick here,

    Create a new flag field (two option), suppose “Is Time Past” on “Event Schedule” entity.

    Now write a JavaScript that will trigger on change of “Service End Date/Time”.

    Follow JavaScript logic as:

    Set “Is Time Past” to 1 if “Service End Date/Time” > Service End Date with time as 8:01 PM.

    Build a workflow or Power Automate FLOW which triggers on change of “Is Time Past” and your first condition in workflow/FLOW would be “Is Time Past” = 1, if true then fire off a notification to a user.

    Hope this help!

  • eSBe Profile Picture
    97 on at
    RE: Trigger a workflow based on TIME

    Hi Lu,

    The trigger is when the Event Schedule record is created.

    And yes, you're right - the Event entity doesn't have much to do with this.

    So the Event Schedule TIME is what needs to be checked once the record is created.

  • eSBe Profile Picture
    97 on at
    RE: Trigger a workflow based on TIME

    Hi Roohi,

    I was hoping there was a way OOTB to do this. Your suggestion is a good one and I'll give it a shot and update this request.

    Thanks,

    Cheerz!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans