Exact difference between the getXMLAnswer & getXML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2024 12:01 AM
"Hey community see what I have for you today, while working on GlideAjax from the client, the often seen method is using getXML (hopefully not getXMLWait, though that's another topic.) I'm actually wondering why?! I prefer using getXMLAnswer. you might ask yourself now, why?! The reason very simple: getXMLAnswer is slightly easier to write😀 and getXML returns a whole XML Document while getXMLAnswer only returns an Answer which is far more efficiently."
- 5,093 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2024 12:06 AM
Hi there,
Have a look at this older article of mine. Describes some differences clearly:
- 2019-12-23 - Article - getXMLAnswer vs getXML
- 2020-01-10 - Article - Client Side Scripting: Go for GlideAjax (with getXMLAnswer)!
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field