WSDL URL with query parameters

xiaix
Tera Guru

Instead of using:

https://mycompany.service-now.com/incident_list.do?WSDL

To get XML format of ALL incidents, I would like to use something like this:

https://mycompany.service-now.com/incident_list.do?sysparm_query=assignment_group%3Da97cea9c2bfa1500...

I need a "targeted" WSDL URL.

How can I do this?

1 REPLY 1

akzm
ServiceNow Employee
ServiceNow Employee

Hi David,



If you look at the XML closely that is returned from the url:



https://mycompany.service-now.com/incident_list.do?WSDL



You will notice that it is not XML representation of the incidents themselves. It is only a WSDL, a Web API, to get incidents (in XML format).



You can use any SOAP Client to use this WSDL to get incidents with the query that you have specified e.g. assignment_group=abc&assigned_to=xyz.



If you use Chrome browser, Wizdler is a nice extension to play with SOAP API easily. You can specify any query you like using SOAP API.



However, you don't have to use SOAP API to get incidents in XML format. You can also use the following url to do this:



https://mycompany.service-now.com/incident_list.do?XML&sysparm_query=assignment_group=abc&assigned_t...



See this: Exporting Data - ServiceNow Wiki



Hope this helps.



Azfar