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()

(0) ShareShare
ReportReport
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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans