How can we get the xml of request item raised along with the variable values filled in for that request item, currently show xml shows only the fields not the variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 05:15 AM
How can we get the xml of request item raised along with the variable values filled in for that request item, currently show xml shows only the fields not the variables

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 05:43 AM
If I am not mistaken, you would need to build this functionality yourself. It would be a combination of a "Processor" and a "UI Action"
The processor handles the actual logic of what to collect up and export. have a look at a current processor there called "ExportWorkflowVersion" for an example of how to do it.
The UI Action would go on the request item table ("Export Complete Request", or something like that, and would redirect the user to that processor path. have a look at a UI action called "Export Workflow" for an example of that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 05:45 AM
Hi Steffy,
I am not aware of any functionality available from ServiceNow to fetch XMLs of both variables & request item.I would suggest you to create database view by joining request item & variables tables.
http://wiki.servicenow.com/index.php?title=Database_Views#gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 04:25 PM
HI Steffy,
I'm not 100% on the requirements you have but these community posts may help your research efforts.
Re: Has anyone been able to create a catalog request using the REST APIs?
- I created a processor to handle the creation of requested items on share. It works with rest. That was actually it's purpose. Search share for catalog api
REST Table API to trigger a Catalog Item request
Please mark this post Helpful, Like it, or mark as the Correct Answer where applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2016 10:30 PM
Thanks for the response.
But my requirement is, as an end user if i raise say 4 request item, each have different set of variable values selected by me,so i want to get an xml for each item along with the filled in values by the user.
The above suggestions i suppose will get the xml along with the related list of the requested item, not with the filled in values on each request item.
Please suggest what ca be done.