Hi,
I have an iframe which needs to be refreshed when form gets saved.
I am doing something like this: calling this script on OnChange of 'modifiedOn' field
function formRefresh()
{
debugger;
Xrm.Page.data.save().then(
function () {
Xrm.Page.data.entity.attributes.forEach(function (attribute, index) {
attribute.setSubmitMode("never");
});
Xrm.Utility.openEntityForm(Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId());
},
function (errorCode, message) {
}
);
}
This seems to be working but a duplicate record gets created everytime this script runs. How to avoid it?
How to just refresh the iframe ?
Thanks
*This post is locked for comments
I have the same question (0)