Hi
I am using Interactive Case Form to auto populate CustomerId on load of case form.Below is the Js code
function setParentAccount()
{
if(Xrm.Page.ui.getFormType()==1)
{
setUser("parentaccountid");
}
}
function setUser(LookupField)
{
var setUservalue = new Array();
setUservalue[0] = new Object();
setUservalue[0].id = "a16b3f4b-1be7-e611-8101-e0071b6af231";
setUservalue[0].entityType = 'account';
setUservalue[0].name = "A Datum Corporation";
Xrm.Page.getAttribute(LookupField).setValue(setUservalue)
}
I am getting below error
This error is coming on the Customer service Hub only. In Normal form it is working as expected.
Can anybody facing the same issue / Please help me to resolve this issue.