RE: Xrm.Page.data.refresh
Hi Marina,
err.message has been supported since CRM2013.
Did you also run the web resource in UCI?
I insert debugger and left Name field null to test,
in UCI, I could jump into break point and err object was available,
while in legacy web client, I just received an error from formcontrol.js, which said that cannot read property 'errorCode' of null.
Both test were based on main form.(Account -> Account form)
From your situation, it seems that you could create a new account record successfully with an action,
the issue is only that you can't get error callback,
so I suggest that you open the new record directly with window.parent.Xrm.Utility.openEntityForm("account",newEntityId) as alternative to window.parent.Xrm.Page.data.refresh(true).
My modified web resource, it will create a new account and then open the new record.
Create account manually
Regards,
Clofly