- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 05:26 AM - edited 07-21-2023 05:28 AM
Hello,
Is there a way to filter the response using sysparm_query, i want the role to be itil & the provided user id.
I tried the below query but it doesn't work. could you please help.
role.display_value=itil^user.value=
Response :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 07:17 AM - edited 07-24-2023 07:29 AM
No need to use role.display_value and user.value.
you can filter by
sysparm_query: role=(sys_id of itil role)^user=(sys_id of user).
It's working as desired
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2023 10:16 PM - edited 07-23-2023 10:19 PM
yeah i understood, for single key value pair i am able to query.
API Response :
}}
Key : sysparm_query
Value : user_password=74R17ry2kM
How to query for the nested object ? (what value should be passed )
API Response : ( I want to get the result of role that has display value = "knowledge manager")
"result": [
key : sysparm_query
value : ?????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 05:51 AM
Team, Could anyone provide update on this please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 05:53 AM
Hi @Adithya Khurana ,
Do you want to acheive this in Postman ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 05:58 AM
yes like external API Call