Dynamics CRM get extension attribute -


i have created custom field system entity. how access attribute value through xrm web services through late binding?

i'm using code gives me entityreference object:

entity objcase = service.retrieve("incident", new guid(request.querystring["entityid"]), attributes); string strvalue = objcase.attributes["new_papid"]).tostring(); 

you retrieving lookup value, in case need cast first entity reference

entity objcase = service.retrieve("incident", new guid(request.querystring["entityid"]), attributes); entityreference pap = (entityreference)objcase.attributes["new_papid"]; guid papid = pap.id; // id of record; string papname = pap.name; // primary attribute of entity; 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -