Notifications
Announcements
No record found.
What is the use of window.parent.location.reload(true) and how it works?
Window.location.reload(true); is not working.
Hi partner,
This method is uesd to feresh the parent form and it is a normal JS menthod, we do not recommend you to use normal js in D365 form.
If you want to refresh form in D365 form, you could use the following ways.
1. formContext.data.refresh(save).then(successCallback, errorCallback);
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-data/refresh
2.Xrm.Navigation.openForm
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-navigation/openform
Hope it helps.
Best Regards,
Leo
Hi,
I used openForm to relaod the page but the BPF is not displaying.
var formContext = executionContext.getFormContext(); var entityFormOptions = {}; entityFormOptions["entityName"] = "knowledgearticle"; entityFormOptions["entityId"] = formContext.data.entity.getId();
// Open the form. Xrm.Navigation.openForm(entityFormOptions).then( function (success) { console.log(success); }, function (error) { console.log(error);
Thanks.
I tried the same code in my instance and it worked well.
Please confirm that did you add the BPF to your app first? Could you share more details about your situation?
Did you resolve your problem? If so, please mark the answer as verified to close this thread to help other users with similar issues.
I don't see how this answers the question. This formcontext method is for the current form not a quick create form's parent, right?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 75 Super User 2025 Season 2
Siv Sagar 52 Super User 2025 Season 2
Daniyal Khaleel 42 Most Valuable Professional