//get values base fetch or ODATA
http://mscrm201x.blogspot.co.il/2015/05/full-example-get-contact-details-base_20.html
var lookupData = new Array();
var lookupItem = new Object();
lookupItem.id = result[0].accountid.Value; // SET ID
lookupItem.name = result[0].name.Value; //SET NAME
lookupItem.typename = "account"; //ENTITY NAME
lookupData[0] = lookupItem;
Xrm.Page.getAttribute('customerid').setValue(lookupData);
No comments:
Post a Comment