Skip to main content

Notifications

Microsoft Dynamics CRM forum
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.

Categories:
  • Inogic Profile Picture
    Inogic 24,029 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 Moderator 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 Moderator 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans