Enable Add New(+) Connection Button On Opportunity

Out of the box on opportunity form, we have a connection sub grid named “stakeholders”. You can add new connections of type stakeholder from this subgrid which is amazing , however what if we need ability to create any other type connections from opportunity. 

Connections ofcourse has inbuilt functionality for opportunity to behave this way.
The subgrid uses a default view “All Stakeholders” hence it will let you add only stakeholder connections. 

Let’s change this view to “All Active Connections” :

Select this view, save changes & publish the form. Lets see what happens now:

Strangely, we dont have a plus button , so person will have to click on see all records/see associated record and then add the connections from.


I have found a workaround by playing around the ribbon workbench. 
1. To do this, create a temporary solution and add “connections” entity to it. 

2. Next step is to install ribbon workbench if you dont have already. You can get it from here:

3. Once you have download the solution, install the solution to your dynamics 365 instance.


4. Click on the ribbon workbench button from your solutions are and select the newly create solution in the popup ( which we create for connection entity):

We are now going to make some ribbon changes, i would recommend to take a backup of the newly solution we have created so if anything goes wrong we can always import it back.

5. Right click on the +New button the subgrid ribbon and right on it. 
 Select “customize button” then again right click and select “Customize command”:

6. Now move to the enable rule “Mscrm.ShowOnHomeGridAndOnSalesCustomSubGrids” under command “Mscrm.SubGrid.connection.NewRecord” & scroll down to the “Custom rule” as shown below.

7. In this rule make “Default” field to “true” as well as Invert rule to true as well:

8. Now click on publish button from the ribbon workbench which will take some time.

9. Navigate to your opportunity now and you will the + button from subgrid now:

I hope this helps, here are some final notes:

  1. Connections entity doesnt support quick create form hence do not expect it open a quick create on the right side when you click on this button.  It will open a new window , you have fill details and click on save & close.
  2. When new connection screen opens it will have opportunity in both connected to and connected from fields. You will have to apply basic javascript to clear one of the field so that user can select the customer /account in connected to field.
  3. Connections do not support business rule.



9 thoughts on “Enable Add New(+) Connection Button On Opportunity

      • Hi Rawish, Actually before implementing this changes -> I was having a subgrid connection in Opp Entity(All Slaes Team Members View), Which I was able to add connections without doing any ribbon customisations. which was fine. But I added the same connection subgrid in Account Entity and it didn’t show up the +New Connection. So I implement the above Ribbon workbench customisation, And it worked very well in Account Entity. But it’s not working in “Opp Entity Sugbird Connection(Unable to add New Connections)”, which was working fine before I do the Ribbon Customisation Changes. Even I tried to add New Subgrid connection in opp Enity. But that doesn’t work(Unable to add New Connections). But its working fine in Account entity ? Simply saying am able to add new connnections from opp Subgird, but after ribbon customisations, Am unable to do that in Opp entity


  1. Hi Rawish, I sorted out by removing the “Custom Rule” – with this below Library JS “CrmService.ConnectionRibbon.CommandBarActions.isStakeHolderOrSalesTeamView”
    And enabled the “orEnableRule” – Default to True – Invert Result – True. And it worked fine in all the “connections Subgrid” in all the entities. Thanks


    • Hi Blueice, I also found the same issue and when applied for your workaround it does work for all entities. However, I noticed that the Connected To field which is normally blank is now populated with the record the connection is created from. Do you know of a way around this?

      Many thanks to Rawish for making this solution available


  2. Great article! However, while I can now add new connections to custom subgrids, this as taken away the ability to add new stakeholders in subgrid on opportunities. Every encountered this and a way to fix?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.