Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Passing regardingobjectidtype to Xrm.Utility.openEntityForm

$
0
0

I've been having troubles sending the typename to the openEntity form. Is this a problem with my system or is there another way I should be setting the typename?

Here is the code I am trying to use.

//set the parameters to pass to the new form
var Regarding = Xrm.Page.getAttribute("regardingobjectid").getValue();
var parameters = {};
parameters["regardingobjectid"] = Regarding[0].id;
parameters["regardingobjectidname"] = Regarding[0].name;
parameters["regardingobjectidtype"] = Regarding[0].typename;

//Open the new form
Xrm.Utility.openEntityForm("appointment",null,parameters);

I've been able to send owneridtype and customeridtype without a problem, but regardingobjecttype does not seem to be working for me.

Thanks!


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>