sysparm_view not returning expected response in REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 08:46 AM
Hi team,
Started working with REST API and trying to retrive some data from Event table using encoded query along with custom view.
Encoded query worked fine and got the response.Howver when I include the custom view then also it returned whole columns.
UI view has section and has certain elements in it but not returning expected response.
Below is the syntax i have used
Am i missing anything here or any syntax change required?
Appreciate any guidance here.
Regards,
Mahesh.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 07:14 AM
Hello Maheswara,
There is a typo in your request, it should be:
https://instance.service-now.com/api/now/table/u_event?sysparm_query=active=true^short_descriptionLI...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 07:23 AM
It worked like a charm.Curious to know the reason for that.
Regards,
Mahesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 07:39 AM
I got that.Thanks for the quick tip.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2015 04:20 AM
Hi All,
Is there a way I can share the API without exposing the actual query?
Example:
AlertsQuery: sysparm_query=active=true^short_descriptionLIKEAlert&sysparm_view=nameofview
https://instance.service-now.com/api/now/table/u_event?AlertsQuery
I though of using dynamic filter and they work only on reference fields.Any thoughts on this?
Regards,
Mahesh.