Skip to content

Instantly share code, notes, and snippets.

@DynCon365
Last active April 4, 2018 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DynCon365/2d12759ce67c76b4ec26e847690b56f5 to your computer and use it in GitHub Desktop.
Save DynCon365/2d12759ce67c76b4ec26e847690b56f5 to your computer and use it in GitHub Desktop.
Dynamics 365/CRM | Get the text of a Lookup field
// Get the Parent Company name of a Contact
var companyName = Xrm.Page.data.entity.attributes.get("parentcustomerid").getValue()[0].name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment