Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Move opportunity record creation button in contact related view

Posted on by 5

Hey Everyone,

On the contact record we can go to related dropdown and go to opportunities tab and from there create a related opportunity record that auto populates some fields through its 1:N relationship.

I wanted to know if we can move that "New Opportunity" button to the contact main form's command bar.

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: Move opportunity record creation button in contact related view

    Hi,

    On the ribbon workbench of contact or any entity, buttons are only related to that entity.


    Ideally, you should not add buttons that are related to child entity on the parent entity ribbon.


    However, if you still want it then you can add a new button on main contact form and on click of that button register one javascript where you need to call a function inside which you would need to use the openform function to open a new opportunity form and set the lookup value of contact so that the opportunity and the contact records would be related, you can refer this link to know more on openform function.

    Hope this helps.

    Thanks!

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Move opportunity record creation button in contact related view

    Hi kuzog,

    Ways of extension are: On the click of a button open

    1. HTML
    2. Custom Page
    3. Canvas Ap

    Perfil values by using your code. Add similar controls. Create records record using the button...

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Move opportunity record creation button in contact related view

    Hi kuzog,

    This is not possible out of the box. You need to extend the command bar of the contact.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

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