Skip to content

Instantly share code, notes, and snippets.

@DynCon365
Last active April 4, 2018 17:51
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/64488c9526ded7b017874190c083c742 to your computer and use it in GitHub Desktop.
Save DynCon365/64488c9526ded7b017874190c083c742 to your computer and use it in GitHub Desktop.
Dynamics 365/CRM | Set the value of a Text field
// Set the Contact's first name to Joe
Xrm.Page.data.entity.attributes.get("firstname").setValue("Joe");
// Set the Contact's first name to a variable
var firstName = "Joe";
Xrm.Page.data.entity.attributes.get("firstname").setValue(firstName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment