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)

Replacing business process flow on pre-existing entity records

(0) ShareShare
ReportReport
Posted on by

My company specializes in CRM customization and I'm building multiple demo environments to showcase to clients. This involves generating and importing thousands of records for various entities. The problem I'm experiencing is that we are often creating new business process flows for certain entities, and there is a requirement that we must be able to convert all or some pre-existing entity records to using a specific business process flow, rather than the one that was present when the record was created.

My question is: is it possible for me to bulk change which business process flow a record is using?

Things I've tried:
1. Exporting records and changing the process ID to match the GUID of the desired business process flow. This doesn't always work, and sometimes leaves me with a record that has no business process flow at all, and it sometimes leads to a loss of data, especially when certain flows carry across multiple entities.

2. Assigning the desired business process flow at the top of the Order list. This only works for newly created records. When dealing with BPFs that cross multiple entities, if I attempt to do method 1 on an entity that is not the first entity in the process flow, it will not assign the new record with the BPF that originates in a different record, and will instead default to the first BPF in the Order list for that particular entity.

I feel like there has to be a better way. What if a company had tens of thousands of records, and they all needed to have their BPF changed? It would be unrealistic to expect them to export everything, change one value, and reimport, especially since sometimes this method requires deletion of the original before reimporting. Does anyone have any ideas?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    hi there,

    did you try to enable business process flows for particular security role?

    in that if you need a business process flow for all the records to be a specific one - enable the roles for this BPF and also make sure other BPF which you dont need -make it unavailable for this BPF.

    hope it makes sense.

  • Community Member Profile Picture
    on at

    Due to the nature of the demos, we could potentially have several different clients to cater to, each with a different BPF. Constantly changing security roles would be chaotic and potentially carry unwanted consequences. I want to be able to change specific records to have a specific BPF, not all records carry whatever BPF is assigned based on security role.

    Example:

    I have 18000 Lead records.

    6000 of them are associated with client C1's demo

    12000 of them are associated with another client C2's demo

    I would like to be able to assign the 6000 records with BPF "A", and assign the other 12000 BPF "B". I will be using the same logged in user to interact with all records. I'm fine with new records utilizing the top of the Order BPF list, but I want to be able to change the assigned BPF whenever I want, and even in bulk if necessary. Due to the nature of demo development and showcasing demos, I may have to constantly switch back and forth between interacting with records for both clients. Based on my understanding of security roles, this would require me to go into settings and change my security roles every time I want to switch, which could be a dozen or more times within 20-30 minutes.

  • Verified answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi Trent,

    this issue here is business process flows are not record dependent - they are independent and belongs to an entity.

    would you mind writing a small javascript - so based on a field value on OnLoad form you can switch the business process flow to the required one automatically.

    but in order to do this - you have figure a value that you use in the javascirpt that separates one client from another on the record?

  • Suggested answer
    Community Member Profile Picture
    on at

    I could discuss the idea with our developers. I would likely have it check the process ID at load, and if it's blank, use the default from the order list, and if it's not blank, use the business process flow associated with the process ID value. This would allow me to change it whenever I want by exporting and reimporting with the new ID.

    Thanks!

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Cool, let me know if you need example javascripts.

    also would you mind closing this thread or you need to wait.

  • Community Member Profile Picture
    on at

    Thanks for the help. How do I close the thread? I'm having problems finding the option.

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