Edwin,
Thanks for the quick response. Now I understand your issue. unfortunately there is no supported way to access the onload event for those grids. I would suggest you open an idea here: experience.dynamics.com/.../
To refresh the page after do the webapi thing that I mentioned, you can use this:
formContext.data.refresh(save).then(
function () {
// success
}, function (error) {
// failure
// you get more information about why saving data failed in error argument:
var errorCode = error.errorCode;
var errorMessage= error.message;
alert(errorCode +" "+error.errorMessage)
}
);
docs.microsoft.com/.../refresh
this will retrieve to the form the newer data.
If this solved your question, please mark it as answered.
Let me know if you have any questions.