Michael Philip's Blog

Writing about MS Tech with strong focus on Azure & CRM

Get Lookup Value Using Java Script – MS CRM 2011

Leave a comment

: suppose you have a lookup on your form and you would like get information like ID,Name,Entity Type of the record(s) which the lookup is set to.


lookupItem = Xrm.Page.getAttribute(“LookypAttributeSchemaName“).getValue();
var name = lookupItem[0].name;
var guid = lookupItem[0].id;
var entitytype = lookupItem[0].entityType;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s