Hi,
i am retrieving a record using fetchxml based on a guid. The fetch works perfectly but i cannot get the values of lookup attribute.
here is my code
var _oService; var _sOrgName = "CRMTEST"; var _sServerUrl =Xrm.Page.context.getServerUrl(); var sFetch = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"+"<entity name='new_mbasession'>"+"<attribute name='new_mbasessionid' />" +"<attribute name='new_name' />" +"<attribute name='new_university'/>"+"<order attribute='new_name' descending='false' />"+"<filter type='and'>"+"<condition attribute='new_mbasessionid' operator='eq' value='" + id2 + "' />"+"</filter>"+"</entity>"+"</fetch>"; _oService = new FetchUtil(_sOrgName, _sServerUrl); _oService.Fetch(sFetch, myCallBack); } function myCallBack(results) { var university = results[0].attributes["new_university"].value; }
how do I get the guid of the lookup attribute new_university?? It shows undefined in this case.
and if I read any other attribute it shows the desired value.
Plz Help
Thanks
HARIS ADIL
e-Biz