Hi Experts,
I am facing an issue. I have a lookup and I am populating the lookup when some other field is changed.
I am able to populate the lookup. But When I tried to save the case after the field is populated I am getting error.
Here is the error:
Record Is Unavailable
The requested record was not found or you do not have sufficient permissions to view it.
I am using below JS
var lookupValue = new Array();
lookupValue[0] = new Object();
lookupValue[0].id = "{52bae268-fa74-ea11-a811-000d3a3be5cf}";
lookupValue[0].name = "Ingham";
lookupValue[0].entityType = "county";
Xrm.Page.getAttribute("reportedbyorganizationid").setValue(lookupValue);
Any help would be appreciated.
Regards