Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

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!

*This post is locked for comments

  • 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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans