logo

NJP

URL parameter &XML

Import · Feb 12, 2020 · article

Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

Hi there,

Saw the nice video and knowledge sharing of Robert Fedoruk, "Show XML: The Admin's XRay Specs (NOW IN VIDEO!)"? A feature that has been around for a while, and I use it a lot, really awesome!

Upon choosing the "Show XML" option, a nice readable pop-up appears. Though did you notice, that when you click outside of the pop-up, it automatically closes? Arrggg, annoying!

There's a workaround to this, without using an external editor or something, just ServiceNow image.

URL parameters

ServiceNow offers some URL parameters with which you can view or download a list or a record in a different format. Formats like CSV, XML, PDF and UNL (Unload).

Applying &XML

So the workaround for the automatically closure of the pop-up? Just because it's annoying. Or because you might want to have multiple windows open, to compare XMLs?

When you open a list or a record in a new tab (open in a new tab, CTRL+left mouse click, etcetera), the URL will start with something like "/incident.do". If this is the case…

Add at the end of the URL:

&XML

Note: If your URL starts with something like "/navpage.do", then this will not work!

Result

To show also an example of multiple windows open, for example to compare XML's:

image

---

And that's it. Hope you like it. If any questions or remarks, let me know!

Kind regards,

Mark Roethof

ServiceNow Technical Consultant @ Quint Technology

1x ServiceNow Developer MVP

1x ServiceNow Community MVP

---

LinkedIn

image

View original source

https://www.servicenow.com/community/developer-articles/url-parameter-amp-xml/ta-p/2323553