Skip to main content

Notifications

Dynamics 365 general forum
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.

Categories:
  • 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,235 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);

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,115 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans