什么是Servicenow SOAP API getkeys通配符?

时间:2018-10-03 14:39:53

标签: soap servicenow

我想使用SOAP请求在servicenow表中获取具有以“ TEST”开头的描述的项目列表。

我能够发送一个简单的getKeys请求。例如,以下示例已成功向我返回单张票证的sys_id:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hr="http://www.service-now.com/hr_case">
   <soapenv:Header/>
   <soapenv:Body>
      <hr:getKeys>
         <short_description>TEST Soap 1</short_description>
      </hr:getKeys>
   </soapenv:Body>
</soapenv:Envelope>

我应该如何修改上述请求,以便它返回所有以“ TEST”开头的描述的项的键?

1 个答案:

答案 0 :(得分:0)

我改用了带有URI的REST Web服务:

https://???.service-now.com/api/now/table/hr_case?sysparm_query=short_descriptionSTARTSWITHTEST

在此之前,我尝试过这样的URI:

https://???.service-now.com/api/now/table/hr_case?&short_description=TEST Soap 1