web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Verified answer
    Rajkumar Rajaraman Profile Picture
    on at

    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.

  • Suggested answer
    Karsten Wirl Profile Picture
    4,477 on at

    Hi there.

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

    Kind regards,

    Karsten

  • Verified answer
    David Jennaway Profile Picture
    14,065 on at

    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

  • Karsten Wirl Profile Picture
    4,477 on at

    Thanks for the remarks, David.

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

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans