Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

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

Posted on by 159
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.
  • Suggested answer
    Ethan_009 Profile Picture
    Ethan_009 17 on at
    What to use instead of parent.xrm.page.getControl(args).refresh()
    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
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    What to use instead of parent.xrm.page.getControl(args).refresh()
    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
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans