web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Different Opportunity Types in Dynamics 365 Sales

(2) ShareShare
ReportReport
Posted on by 14
Hi there,
 
As a Business we have now decided that we would like to categorise our opportunities into three buckets: New Business, Customer Retention, and Business Development. Each type has different fields and processes associated to it. Therefore, I am wanting to create three forms and three business process flows. Our end-users should be bale to select which type of opportunity they are wanting to create. I am wondering what the best way is to achieve this. 
 
Ideally, upon clicking "New Opportunity" anywhere in the system, a dialog box appears, asking the end-user to select the type of opportunity and click "Next". After that the corresponding form with business process flow will appear.

Does anyone have any experience with implementing this in Dynamics 365 Sales?
 
Thank you in advance!
I have the same question (0)
  • JT-26031500-0 Profile Picture
    14 on at
    Different Opportunity Types in Dynamics 365 Sales
    Thank you for both of the responses, that has been very helpful and pointed me into the right direction!
  • Verified answer
    Tom_Gioielli Profile Picture
    2,020 Super User 2025 Season 2 on at
    Different Opportunity Types in Dynamics 365 Sales
    Something this in-depth is a bit too complex for business rules, so you are going to need to write a bit of code and get your hands dirty. How you approach this depends on how different each of these Opportunity Types are. Folks who come from Salesforce sometimes expect this type of behavior to be easy in Dynamics CRM, but it's just not how the system is set up to operate.
     
    Option 1: Use a single form, and show or hide sections/tabs of the form depending on the Opportunity Type selected
    • Great if the fields between forms are not drastically different, or if there will be commonalities between each of the forms
    • Start the record with the "core" fields, and when the user selects the Opportunity Type it can show the relevant tab or sections
    Option 2: Use separate forms, and use JavaScript to switch based on the Opportunity Type
    • More complex, as you now have 3 forms to manage
    • You also have more flexibility, because you can create business rules or drastically change each form to fit
    ------------------------
    The Business Process Flow is actually a separate requirement, but the options closely match the forms. Important to note is that Business Process Flows are distinct records that are created in CRM and related to the sales record. As such, creating them through automation is much like creating any other type of record (and not something I would usually do through JavaScript).
     
    Option 1: Create a single Business Process Flow with branching logic
    • Good if core processes are similar, but there are some distinct differences in stages or the required fields in each step
    • Significantly easier to manage, and only having a single BPF means the system creates it for you automatically (which is awesome!)
     
    Option 2: Create three separate Business Process flows
    • Would require creating three entirely separate business process flows (6 if you go from Lead to Opportunity, as BPFs are distinct to the record they begin at)
    • Need to write some automation (workflow, cloud flow, plugin) to create the proper BPF and relate it to the Opportunity
     
    Personally, I would do whatever you can to standardize and streamline the sales process across your types. Try to keep as many fields in common as you can, and minimize the differences. Not only will it help with the current requirement, but everything else (reporting, system views, downstream automations) will be easier if you don't need to write essentially three versions of each.
     
    Hope this helps, and if it did please consider marking the answer as verified.
  • Suggested answer
    Daivat Vartak (v-9davar) Profile Picture
    7,827 Super User 2025 Season 2 on at
    Different Opportunity Types in Dynamics 365 Sales
    Hello JT-26031500-0,
     

    You've outlined a common and very valid requirement for Dynamics 365 Sales: creating distinct opportunity workflows based on opportunity type. Here's a breakdown of how to implement your desired solution, along with best practices:

    Understanding the Requirements:

    • Three Opportunity Types: New Business, Customer Retention, Business Development.
    • Distinct Forms and BPFs: Each type requires its own form and business process flow.
    • User Selection Dialog: Upon creating a new opportunity, users should be prompted to select the type.


    •  

    Implementation Steps:

    1. Create Opportunity Types (Option Set):

      • Add a custom option set field to the Opportunity entity (e.g., "Opportunity Type").
      • Define the three options: New Business, Customer Retention, Business Development.

    2. Create Three Opportunity Forms:

      • Create three separate Opportunity forms, each tailored to the specific fields and layout required for each opportunity type.
      • Name them clearly: "New Business Opportunity Form," "Customer Retention Opportunity Form," "Business Development Opportunity Form."

    3. Create Three Business Process Flows (BPFs):

      • Create three distinct BPFs, each aligned with the specific stages and processes of each opportunity type.
      • Name them appropriately: "New Business Opportunity BPF," "Customer Retention Opportunity BPF," "Business Development Opportunity BPF."

    4. JavaScript Dialog (Recommended):

       

      • Create a JavaScript Web Resource:

        • Write JavaScript code to display a custom dialog box when the "New Opportunity" button is clicked.
        • The dialog should present the three opportunity types as options.

        • Upon selection, the JavaScript should:

          • Set the "Opportunity Type" field on the new Opportunity record.
          • Navigate to the corresponding form.
          • Set the corresponding business process flow. 
           

      • Modify the "New" Button:

         

        • Modify the "New" button on the opportunity entity, so that it calls the Javascript web resource.

         


      •  

    5. Form and BPF Assignment:

       

      • Use JavaScript within the dialog to set the appropriate form and BPF based on the user's selection.
      • The Javascript code above, shows how to change the form, and the business process flow.


      •  

       

    Best Practices:

    • Clear Naming Conventions: Use clear and consistent naming for your forms and BPFs.
    • User-Friendly Dialog: Design a simple and intuitive dialog box.
    • Testing: Thoroughly test your solution in a development or test environment.
    • Security Roles: Ensure that users have appropriate security roles to access the forms and BPFs.

    Alternative (Less Ideal):

    • Business Rules: While you could use business rules to switch forms based on the "Opportunity Type" field, this approach is less user-friendly than a dialog box.

    Key Recommendation:

    • The JavaScript dialog approach provides the best user experience and flexibility for your requirement.

    By following these steps, you can implement a robust solution that allows users to select the opportunity type and work with the corresponding forms and BPFs.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 147

#2
DAnny3211 Profile Picture

DAnny3211 134

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans