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)

How to add business process flow for custom entity in managed solution?

(0) ShareShare
ReportReport
Posted on by

I have a managed solution where I have added a custom entity. I want to add a process for this custom entity. I am able to manage it in unmanaged solution but I don't know how to achieve it in managed solution. 

Can anybody suggest me what is the approach to do it?

Thanks in advanced.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Flydancer Profile Picture
    1,332 on at

    Hi Shahriat, please have a look at crmbook.powerobjects.com/.../solutions to understand the different types of CRM Solutions.

  • Community Member Profile Picture
    on at

    Hi  Flydancer, Thanks a lot for your response. I know about them but just wanted to know has any approach to achieve this requirement or not. Please suggest what I can do to achieve this goal.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi ,

    When you customize managed solution entity you just need to add the entity in another unmanged solution. Once you add the entity in unmanaged solution you can do what ever changes . But make sure you need to maintain both the version when you will move the changes to another environment you should deploy first your old managed solution and then your customize solution.

    This is how CRM works , as an example dynamics CRM provide OOB entity called contact, account and we are changing on top of those managed entity. And while moving the changes you should have vanilla environment where you get all managed entities like account, contact to import your customize solution.

    Hope this helps.

  • Community Member Profile Picture
    on at

    Hi Goutam, Thank you so much for your reply. Is it possible to setup the process flow through entity form by JavaScript coding on un managed solution and if so could you please suggest some example so that I can follow it to achieve the same as my expectation?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Shahriat,

    Did you create BPF in your custom entity?

    You can deactivate the BPF which you don't need.

    Also If you have multiple BPF  for an entity (record type), you’ll need to set which process is automatically assigned to new records. In the command bar of BPF ,select Order of BPF which will assigned BPF at the time of load.

    In addition if you want to force change BPF using javascript based on certain field value  or without condition you can have a look below reference.

    rajeevpentyala.com/.../switch-business-process-flow-using-jscript-based-on-crm-forms-field-value

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    You don't add components to managed solution, you add it to the unmanaged solution and then export that unmanaged solution as managed. You can add any component (which is solution aware) including the BPF. Also, please note that for BPF, you need to add the BPF process as well as the BPF entity.

    Hope this helps.

  • Suggested answer
    BadrinathB Profile Picture
    970 on at

    Hi Shahriat, Always prefer to add your components to an unmanaged solution in lower environments and then move them using managed solution to upper environments. Adding an unmanaged component to your managed solution will be pain in future releases.

  • Community Member Profile Picture
    on at

    Hi Ravi,

    Thank you so much for your reply. Yes I use to customize the crm in unmanaged solution but the situation is different here. For example if I provide the managed solution to client and if they create custom entity in their managed solution and want to add BPF there then they can't do this. So what is the solution in this use case? I don't want to send the unmanaged solution to them because of code privacy for my custom solution. Please suggest.

  • Suggested answer
    BadrinathB Profile Picture
    970 on at

    Hi Shahiriat, I don't think you will be able to add any component to your managed solution. You can only add components to your unmanaged solution and export them as mananged.

    As per your requirements the only solution which I can think of is 1. create an unmanaged solution in your client environment 2. add all the components from your managed solution to unmanaged solution 3. Create your custom entity and BPF in your new unmanaged solution and export it as managed solution. 4. Import to your higher environments.

  • Community Member Profile Picture
    on at

    Hi Goutam, Thank you so much for sharing your idea. I have got another idea after checking your given javascript example for BPF switch. My idea is: Is it possible to create a BPF and assign that BPF for each custom entity using javascript attaching on custom entity save event? So that it works for both managed and unmanaged.

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