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

What to use instead of parent.xrm.page.getControl(args).refresh()

(0) ShareShare
ReportReport
Posted on by 161
Hi,
 
We are migrating v 8.2 to v.9.1 . 
We need to refactor old JS scripts to be compatible with v.9.1
My question is the following:
What should we use instead of  parent.Xrm.Page.getControl(args).rerfresh()?
This is for subgrids.
 
Thanks you.
I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    Hi Kahspot,
    Please refer to the following documentation:
    --Although Xrm.Page is deprecated, parent.Xrm.Page will continue to work in case of HTML web resources embedded in forms as this is the only way to access the form context from the HTML web resource.
    Or you should plan to use the new client APIs mentioned in the Replacement Client API column:
     

    I hope you can mark my answer verified if it is helpful! If you have any questions, please feel free to contact me.
    Regards,
    Leah
     
  • Suggested answer
    Ethan_009 Profile Picture
    17 on at
    Hi @Kahspot,
     
    You can trigger grid context or get the subgrid control with the Context
    You can trigger the refresh action

    For Refresh - gridContext.refresh();

     
    Hope this helps

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 151 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 134

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 55 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans