Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

What is Process Execution Time?

Posted on by

I have a Workflow that has this logic:

If Process-Execution Time is > Begin Date (Date Only), then Stop Workflow and display error:  Your Begin Date cannot be before Today.

My question is, what value is in Process-Execution Time; does it include the Date and Time?  And does it compare to the Begin Date? 

This workflow keeps failing if the Begin Date = Today, so I'm thinking I'm not understanding the Process Execution TIme.

My need is to ensure the user hasn't accidentally selected a date before today.

Thanks!

  • Suggested answer
    Wendel Profile Picture
    Wendel 105 on at
    RE: What is Process Execution Time?

    The first option is correct. Process Execution Time is the "current time" at the moment that it is applied. So if you start a Workflow on May 1st and wait for 25 days to update a datefield with the Process Execution Time then the value of the field will become May 26th.

  • RZP Profile Picture
    RZP 85 on at
    RE: What is Process Execution Time?

    What if the process has a wait 25 days statement.  Does the Process Execution time change or does it contain the date of when the process was initiated?

  • Verified answer
    tpeschat Profile Picture
    tpeschat 4,926 on at
    RE: What is Process Execution Time?

    Hi,

    process execution time contains date and time when the process has been executed.

    See e.g. Hosks blog post to set a field to current date and time using process execution time:

    crmbusiness.wordpress.com/.../crm-2013-workflow-to-set-the-current-date-and-time

    In your case, have you already tried to define your process the opposite way?

    If begin date is smaller then process execution time then display error.

    Hth Thomas

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: What is Process Execution Time?

    as far as I know, the process execution time is 'Now', so if you are comparing it with only the date of 'Begin Date' it will compare to '00:00' hour of today, so it will always be 'higher'.

    I hope it helps.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,513 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans