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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to refresh Home Grid ribbon?

(0) ShareShare
ReportReport
Posted on by 5

Hi Experts,

I have scenario where I want to refresh the Home Grid ribbon. 

I have added script on "New" button to hide the "New" button if there is already a one record is present. It is working fine on form. But when I delete the record from home grid the "New" button is not visible instantly and I have to reload the page to check the result. 

Tried the below code to refresh ribbon on form and working fine:

 formContext.ui.refreshRibbon();
But it is not working on Home Grid ribbon. 
Any help would be appreciated.
 
thanks in advance!
I have the same question (0)
  • Suggested answer
    Sergi Valero Profile Picture
    145 on at

    Hey VSB!

    I had a similar problem some time ago. There are multiple ways to refresh the Home Grid, here is the one I used:

    var parameters = {};
    parameters.entityType = “contact”; // You can add any entity type you wish
    Xrm.Utility.refreshParentGrid(parameters);

    Hope it helps! 

  • V_S_B Profile Picture
    5 on at

    Hi Sergi,

    Thanks for your response.

    I tried this but does not work for me.

    the "refreshParentGrid" function takes 2 parameters as type and id.

    Any other solution?

  • Verified answer
    Sergi Valero Profile Picture
    145 on at

    Hello VSB,

    I have just tested the solution and it worked fine for me. Here is the code I used to refresh the Contact Home Grid:

    Xrm.Utility.refreshParentGrid({
        entityType: "contact",
    });

    Here is the process with more detail.

  • V_S_B Profile Picture
    5 on at

    Hi Sergi,

    The above code will be able to refresh the ribbon of Home grid as well?

    Bcz I want to refresh the ribbon buttons.

  • Sergi Valero Profile Picture
    145 on at

    Yes, it will refresh the page and also the ribbon without refreshing the whole window

  • V_S_B Profile Picture
    5 on at

    Thanks Sergi,

    It worked.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans