CRM 2013 – Refresh Associated Grid of an Entity

27 Dec


Today I got a requirement to add a custom Ribbon Button in the SubGrid of Marketing List Entity and execute some logic and refresh the Grid. Last point was the trickiest one for me and that is why I decided to share the approach how to do it.


To achieve this, let’s go step by step.

Step-1: Create a JavaScript library that will be executed when Button is Clicked

function OpenLookUp(grid){
    //your logic

    //code that will refresh the grid

Step-2: Add Custom Button using Ribbon Workbench and follow the Screen Shots


Select WebResource

Add the Selected Control as parameter.

Step-3: Publish Solutions using Ribbon Workbench

Now the view will refresh after the Button is clicked.

By Puja Jain
Senior Software Engineer @Team DynamicsCRM.
Mindfire Solutions


Posted by on December 27, 2013 in WebResources


Tags: , , , , , , , , , , , , , , , , , , , , , , , ,

2 responses to “CRM 2013 – Refresh Associated Grid of an Entity

  1. Scott Durow (@ScottDurow)

    December 30, 2013 at 1:55 pm

    Thanks for a great post.

    Just one thing to add – when referencing the javascript web resource it is best to add it to the solution that you load into the ribbon workbench and select it using the search dialog rather than typing in the url manually as your screen shot appears to show.

    Hope this helps and thanks again!

    • DynamicsCRM@MindfireSolutions

      January 3, 2014 at 7:35 am

      Hi Scott Durow,

      Thanks for reading the Blog. 🙂

      Yes, you are right, that to reference the JavaScript WebResource, we should add it to the Solution loaded to the Ribbon Workbench.

      So, we have updated that screenshot. 🙂 You can take a look.

      Keep following us for new Blogs related to MS Dynamics CRM.



Leave a Reply

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

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

Google+ photo

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

Twitter picture

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

Facebook photo

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


Connecting to %s

%d bloggers like this: