Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to Refresh the formContext in unified interface after closing a popup window

Posted on by 35

Hi All,

I am using the unified interface.

After closing the popup window successfully I am refreshing the formContext

formContext.data.refresh(true);

It is working in web client Ui but not in UCI.

Is there any way to do refresh form in UCI.

Thanks in Advance.

  • Suggested answer
    Kathan Profile Picture
    Kathan 20 on at
    RE: How to Refresh the formContext in unified interface after closing a popup window

    try using formContext.ui.refresh(); in the function

  • Suggested answer
    Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: How to Refresh the formContext in unified interface after closing a popup window

    Hello,

    The refresh client API should work in Unified Interface.

    Can you describe what's not working in more details?
    How is your pop up opened and closed?
    Are you sure the on-close event of your pop up triggers a refresh on your record form?

    Have you tried to compare the behavior you are experiencing with the injection of a refresh using the F12 console?
    Xrm.Page.data.refresh(true);

    If you have issues troubleshooting, consider opening a case with Microsoft Support: https://admin.powerplatform.microsoft.com/support

    Henry

  • Ria roy Profile Picture
    Ria roy 35 on at
    RE: How to Refresh the formContext in unified interface after closing a popup window

    With that approach only some fields of the form got refreshed but not all the fields.

  • Ics_rthompsoneu Profile Picture
    Ics_rthompsoneu 70 on at
    RE: How to Refresh the formContext in unified interface after closing a popup window

    Give this a try

    var caseid = StandardFunctions.FormatGuid(formContext.data.entity.getId());
    
    var entityFormOptions = {};
    entityFormOptions["entityName"] = "incident";
    entityFormOptions["entityId"] = caseid;
    
    // Open the form.
    Xrm.Navigation.openForm(entityFormOptions);

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans