Servicenow api to get catalog tasks based on short_description
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 11:25 PM
Hi team,
I have catalog tasks and need to filter the SC task based on short_description. Please suggest the api.
I have tried the api below to get sc task which have shot desc,there are may sc tasks available in servicenow based on my shot_desc ,but in api it was returning only one sc task.
\
- Labels:
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 11:43 PM
Perhaps you can try with a different query in your URL. The below should return up to 10 test records:
https://devXXX.service-now.com/api/now/table/sc_task?sysparm_query=short_descriptionLIKEshop&sysparm_limit=10
I am able to retrieve multiple tasks that way. It could also be that somewhere in postman you have set a limit of records returned?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 11:56 PM
Hi,
check in the header if any sysparm_limit is set as 1 and hence it's returning 1 record only
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader