Does Servicenow has any escape character

PuneethK
Kilo Contributor

Referring to Servicenow doc: https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/use/common-ui-elements/...

 

We have Servicenow operators ^ and ^OR (AND, OR operators respectively). In my case I have the filter value containing ^,^OR.
How can I escape, while applying in sysparm_query parameter ?


Example: Fetch all records from incident resource, where field1 is service^now.
This corresponds to,
sysparm_query = field1=service^now

Which is unable to filter the records. Having ^ escaped with ^ works as expected (sysparm_query = field1=service^^now)

 

Final URL to fetch the records from incident resource, where field1 is service^now, looks below

https://your_instance.service-now.com/api/now/table/incident?sysparm_query = field1=service^^now

 

Can anyone confirm ^ is the escape character ?

0 REPLIES 0