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)

Selecting a business process workflow

(0) ShareShare
ReportReport
Posted on by

Noob 'developer' using CRM 2015 on premise:

If we have multiple business process flows with the same primary entity, how do we enable choosing between these flows at entity creation time?

Using 'Order Process Flows' I can move a bpf to the top of the list and then, on creation of the new primary entity the flow is displayed at the top of the form, but I cannot work out how to allow the user to choose an alternative flow.

Sorry if its a basic question - I'm new to this CRM thing.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Jason M. Cosman Profile Picture
    5,234 Moderator on at

    Hello!

    No not a noob question at all! Take a read here and it talks about how to order the business process flows and how to select them after creation using the switch flow command. technet.microsoft.com/.../dn531164.aspx

    I hope this helps!

  • Community Member Profile Picture
    on at

    That's how I thought it should work.  The problem is I'm not getting the switch flow button.  

    I've created the process, and enabled a Security Role to have access to it.  I login as a user with that security role, and when I click the '+ NEW' link/button/thing it kicks off the regular process.  There is no 'switch process' option.

    If I change the order of the processes (as system administrator), when I log in as the user I get the customised process when I click the '+ NEW' button, but again, no 'switch process' choice to use the standard process.

  • Suggested answer
    nghieppham Profile Picture
    4,755 on at

    Hi crmISApain,

    You can use javascript to set the processid at OnSave event when new record is created.

    The processid & stageid are default at form if entity is activated business process flow.

    xrm.page.getAttribute("processid") = "Guid of business process".

    If you are using CRM 2016, CRM support for many method to interact with business process flow. please check this link msdn.microsoft.com/.../dn817878.aspx

    Xrm.Page.data.process

    You also can use workflow to do that, please refer this link for more information

    develop1.net/.../How-to-change-process-and-stage-programmatically.aspx

    Regards

  • Community Member Profile Picture
    on at

    >> You can ... set the processid at OnSave event when new record is created.

    Does this mean you cannot switch the process until the record has been saved?

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