UrbanPro
true

Learn MS Dynamics CRM from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Architecture of Business Process Flow in Dynamics 365

Sumit Gupta
21/09/2017 0 0

Business Process Flows till CRM 2016

Every record with Business process flow till Microsoft Dynamics 2016 , used to have two attributes specific to them:-  Process ID : Process Stage ID.

To set a desired Business Process Flow, on a record based on some input from the Quick Create form in CRM as follows :-

  1. Let’s say over the “Quick Create” form, we have a Business Stream “O” and Sub Business Stream “Renovation”, the selected value will be available to us in the plugin registered over “Pre-Operation”.
  2. Based on the value, available to us we need to fetch the GUID of the desired business process flow from the processes entity along with the process id using the retrieve operation in MS CRM
  3. We can now, set the values of the Process ID and Process Stage ID based upon the retrieved values from the CRM, using the same plugin registered over “Pre-Operation”, and thus when the form will be loaded after creation, it will have the desired business process flow over the same.

Entity.Attributes [ProcessId] = workFlowId



Business Process Flow in Dynamics 365

There has been a change in the architecture of the “Business Process Flow” entity in the Dynamics 365, earlier till 2016 whenever we used to switch the business process flow over a record, then the stage of the switched business process flow used to set to default stage over the entity form.

To overcome the same, in Dynamics 365 the architecture has been changed and now though we switch the business process flow the stage is not set to default.

For the same a new message has been introduced in Dynamics 365 – SetProcessRequest

Contains the data that is needed to set another business process flow instance as the active process instance for the target entity. If there isn't any active business process flow instance for the target entity record and the specified business process flow definition, a new business process flow instance will be created and set as the active instance.

 

SetProcessRequest setProcessRequest = newSetProcessRequest ()

{

Target = Entity.ToEntityReference (),

NewProcess = entBusinessProcessFlow.ToEntityReference ()

};

 

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

MS Dynamic CRM Client Side Scripts
Get the value from a CRM field: var value = Xrm.Page.getAttribute(“CRMFieldLogicalName”).getValue(); Set the value of a CRM field:Xrm.Page.getAttribute(“CRMFieldLogicalName”).setValue(“New...

OAuth Authentication (without using ADAL) to Dynamics 365 using Azure Apps
Here I am going to show without using ADAL(active directory authentication library) how to get the authentication token and how to connect to CRM from a standalone HTML Page using the web-API. I will...

How to use FetchXml in CRM Web API
Here I am going to show how to use FetxhXML query to get the results from CRM Web API. below example shows how to get logged in user Security roles. function getRoles(token) {var req = new XMLHttpRequest();var...

What is M.S.Project ?
MICROSOFT PROJECT contains project work and project groups, schedules and finances.Microsoft Project permits its users to line realistic goals for project groups and customers by making schedules, distributing...

CREATE a record using Web API, MS CRM 2016
Here is a link to my blog post with an example of using Web API to create a record: https://mscrmcodesamples.wordpress.com/2016/04/11/create-record-using-web-api-ms-crm-2016/

Looking for MS Dynamics CRM Training?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for MS Dynamics CRM Classes?

The best tutors for MS Dynamics CRM Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn MS Dynamics CRM with the Best Tutors

The best Tutors for MS Dynamics CRM Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more