Hello!
I have a lookup field that is related to contact in the call entity. How I can get all fields (mobilephone, address, etc.) from lookup value in js-script? My code:
var myresult;
var contact = parent.Xrm.Page.getAttribute("iw_contact").getValue();
XrmServiceToolkit.Rest.Retrieve(
contact[0].id,
"ContactSet",
"",
null,
function (result)
{
myresult = result;
},
function (error)
{
alert(error.message);
},
false
);
alert(myresult.length);
Could somebody help me?
*This post is locked for comments