Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Order of Process Execution

(0) ShareShare
ReportReport
Posted on by

Hello,

Any idea what is the order of execution if I have the following in a single entity:

1) Business Rules

2) Roll-up / Calculated Fields

3) Synchronous Workflow

4) (I don't have) a Plugin

is it safe to refer a calculated field from the Synchronous Workflow? Will I get the correct result?

AbD

*This post is locked for comments

  • Karsten Wirl Profile Picture
    Karsten Wirl 4,477 on at
    RE: Order of Process Execution

    Thanks for the remarks, David.

    The points listed by you bring the necessary complexity to answer the question correctly.

  • Verified answer
    David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Order of Process Execution

    It's not quite that simple

    Rollup and calculated fields are handled differently from each other:

    • Calculated fields don't store a value, but are calculated when you retrieve the data, so are always up-to-date
    • Rollups are calculated on a schedule (by default every hour), but the calculation can be forced (by the user, or from code)

    Also, plugins (and workflows) can run on a pre or post stage, which makes a difference. For example, a plugin on a post stage that reference a calculated field would get the value based on any data changes, whereas if it were on a pre stage the calculated field would be based on the previous values

  • Suggested answer
    Karsten Wirl Profile Picture
    Karsten Wirl 4,477 on at
    RE: Order of Process Execution

    Hi there.

    1. Java Script
    2. Roll-up / Calculated (On Save)
    3. Business Rules
    4. Workflow
    5. Plug-In

    Kind regards,

    Karsten

  • Verified answer
    RE: Order of Process Execution

    You can check below link what is the execution order of sync/async workflow and sync/async plugin.

    community.dynamics.com/.../workflow-or-plugin-which-one-will-run-first

    If it resolve your query, please mark my answer as verified.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans