Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Customize Convert to Opportunity dialog?

Posted on by 45

Hi Guys,

Can we customize the Convert to Opportunity dialog, so that the customer field can only be account rather showing contacts?

Thanks & Regards

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Customize Convert to Opportunity dialog?

    Hi Abdul,

    There is an Example of custom convert to opportunity dialog here. You can download the solution, modify it and install it.

    powerplatformprofessor.com/.../

  • Abdul Raziq Profile Picture
    Abdul Raziq 45 on at
    RE: Customize Convert to Opportunity dialog?

    Hi Clofly,

    Thank you for the possible solutions for writing the custom dialogs or using button with action, or custom html webresource,

    most probably we are going to develop an custom dialog approach.

    my only question now is, can this dialog be made available for all the activities? or need to call this on individual activity like (task, email, phonecall, appointment) by suppressing the existing convert to dialog?

    Kind Regards,

    Abdul Raziq

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Customize Convert to Opportunity dialog?

    Hi Abdul,

    Please let me know if you had any doubt toward these methods, thanks.

    Regards,

    Clofly

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Customize Convert to Opportunity dialog?

    Hi Abdul,

    We couldn't customize OOB dialog and only work with alternative.

    There are 3 mehods in my thought:

    Method 1:

    1. Create a web resource with similar lookup to Convert to Opportunity dialog.

    2.1  Collect data from form with client API.

    2.2. Add Web API request for creating a new opportunity record in the web resource.

    2.3 Add valid data check function.

    3. Add another js code to make regarding field to show only account type records.(*)

    4. Disable default button with Ribbon Workbench and create a custom button to show our own web resource dialog.

    5. Submit data to create a new opportunity record with data.

    (*): We do pre-select customer on form because lookup is not available in custom web resource.

    Method 2:

    1. Make a custom dialog in solution xml file.

    https://blog.thenetw.org/2019/06/10/dynamics-365-custom-dialogs-in-uci-part-3/

    2. Create a custom button with Ribbon Workbench and run both openDialog and create record function in same function.

    (Finally we still make a Web API request to create record)

    Method 3:

    Replacing a Dynamics 365 Dialog with an Embedded Canvas PowerApp:

    https://readyxrm.blog/2019/02/24/replacing-a-dynamics-365-dialog-with-an-embedded-canvas-powerapp/

    Regards,

    Clofly

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans