RE: javascript - dynamics 365 - refresh form
                     
                    
                      
                        Hello Andrew good morning,
Thanks for the feedback.
I put the code you gave me, it did not present any kind of error, but did not update the page.
Theoretically every time the form is saved, reload the page because I have a javascript that calculates and updates Opportunity's estimated revenue.
Follows code:
function test (executionContext)
{
debugger;
try
{
var formContext = executionContext.getFormContext ();
formContext.data.refresh (true);
}
catch (e)
{
alert ("Error in test function:" + e.message);
}
}
Thank you