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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Move opportunity record creation button in contact related view

(0) ShareShare
ReportReport
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.

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi kuzog,

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

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    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...

  • Inogic Profile Picture
    766 on at

    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!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 103

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 83 Most Valuable Professional

#3
11manish Profile Picture

11manish 54 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans