Created
April 18, 2012 17:05
-
-
Save 4E71/2415069 to your computer and use it in GitHub Desktop.
crm: js snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Used to set text field with the value of a Lookup entity. | |
function Replace() | |
{ | |
var lookupItem = new Array(); | |
lookupItem = Xrm.Page.getAttribute("schema_field_name").getValue(); | |
if (lookupItem != null) | |
{ | |
var name = lookupItem[0].name; | |
} | |
Xrm.Page.getAttribute("schema_field_name").setValue( name ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment