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

steffy1
Tera Contributor

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

7 REPLIES 7

Jon Barnes
Kilo Sage

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.


Abhinandan Pati
Giga Guru

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


JamesEcoStratus
Mega Guru

Re: How can we get the xml of request item raised along with the variable values filled in for that ...



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?


jacebenson


  • 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!


steffy1
Tera Contributor

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.