Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM 365 Business Process Flow Stage ID Change Doesn't Trigger Workflow

Posted on by Microsoft Employee

Hi experts,

In CRM 2016 (ver 8.00), I have a workflow that is ran when after stageid of a custom entity is modified through move stage buttons, this work perfectly, but after upgrading to 365 it no longer work. Looks like the stageid of the custom entity doesn't fire when its value is changed.

So I opened SSMS and run a select statement to query the record that I am working, mark down the stageid, switch back to CRM web app, move stage of the record, rerun the previous query and the stageid changes to new one. But why doesn't it trigger the workflow? is it by design or a bug?

I also have a post update plugin that captures PreUpdateImage and PostUpdateImage then compare the 2 stageid values and they are the same and storing the old values which PostUpdateImage supposes to have a new value. However running the query above, I can see the value is changed

If this is a bug, is there a fix or work around? This is breaking our process.

Sam

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 365 Business Process Flow Stage ID Change Doesn't Trigger Workflow

    Thank Wei Jie Fun! I'm aware of the new BPF process and already used it for 365 project, but, I want to maintain both 2016 and 365 in the same code base without changing too much logic, and I managed to handle the incompatible issue at this moment. As long as we don't update our CRM to latest version, it should be fine for at least a year :D

    Sound like I have lot of work soon :)

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: CRM 365 Business Process Flow Stage ID Change Doesn't Trigger Workflow

    Hi,


    Please spend some time to read about below post.

    https://community.dynamics.com/crm/f/117/p/272877/775161#775161

    Summary

    stageid and processid are deprecated soon, you should stop to using it. Try the suggestion from the above post, the concept is already there.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 365 Business Process Flow Stage ID Change Doesn't Trigger Workflow

    I confirmed that PostUpdateImage DO NOT capture the modified stage id value in CRM 365 but it did in 2016, however the modified value is captured in InputParameters["Target"] object

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans