Hello, I am trying to open a new form for a custom entity in CRM 2011. Was following the MSDN url "http://msdn.microsoft.com/en-us/library/gg334375.aspx" and changed the code there with the below one.
var parameters = {}; parameters["regardingobjectid"] = <GUID Value here>; parameters["regardingobjectidname"] = <Record Name>; parameters["regardingobjectidtype"] = <Entity Name here>; Xrm.Utility.openEntityForm(<customentityname>, null, parameters);
When the page gets loaded its redirected to an error page. Without the parameters its all working fine. I have checked the GUID value, Record Name and Entity Name all are as expected.
I am still not understanding where I am doing it wrong. Can anyone of you please help me to figure this out?
Thanks in advance.