Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Using database view in REST APIs

rajranbhare
Kilo Contributor

Hello,

I am using database view in servicenow REST API. I want to retrieve particular record from the view results.

Like for table api, we have the GET call (GET /api/now/table/<tablename>/<sys_id>). Can there be something like this for database view?

1 ACCEPTED SOLUTION

To Filter using OR conditions, you can add value for the sysparm_query = value=Service Desk^ORvalue=Software



The best way to get your query is to apply the filter on the table and Copy query by right clicking the filter and paste it on sysparm_query



find_real_file.png



The URL will be displayed in the API



find_real_file.png





Thanks


Please Hit like, Helpful or Correct depending on the impact of the response



View solution in original post

5 REPLIES 5

You are welcome!



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response