Created
November 12, 2015 15:18
-
-
Save anonymous/0a15a625583c5b68bc11 to your computer and use it in GitHub Desktop.
Affects method: `XrmServiceToolkit.Soap.BusinessEntity.prototype.deserialize()`
This file contains 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
//@Credit: Thanks for Tanguy92's code from CodePlex | |
else if (entCv.type === "AliasedValue") { | |
var currentNode = tempNode.childNodes[2]; | |
entCv.value = getNodeText(currentNode); | |
// In next line replace "a:EntityReference" with "EntityReference" | |
if (currentNode.attributes.getNamedItem("i:type").nodeValue.split(":")[1] === "a:EntityReference") { | |
entCv = new xrmEntityReference(); | |
entCv.type = "EntityReference"; | |
entCv.id = getNodeText(currentNode.childNodes[0]); | |
entCv.logicalName = getNodeText(currentNode.childNodes[1]); | |
entCv.name = getNodeText(currentNode.childNodes[2]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment