Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Created May 4, 2018 19:07
Show Gist options
  • Select an option

  • Save cmcdevitt/f13376f18efae29ff916a8f68d5f6995 to your computer and use it in GitHub Desktop.

Select an option

Save cmcdevitt/f13376f18efae29ff916a8f68d5f6995 to your computer and use it in GitHub Desktop.
Service Portal / Service Catalog GlideAjax lookup errors catalog client scripts
ga.getXML(parseResponse);
// old (DOM Method)
var result = response.responseXML.getElementsByTagName("result");
//New (JSON Parse Technique)
//Use with Asynchronous GlideAjax calls with "getXMLAnswer" (not "getXML")
var result = JSON.parse(answer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment