- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 12:38 AM
Hi All,
I am trying to retrieve all the SCTASKs under a given RITM using REST API. My RITM has 3 SCTASKs under it and I am unable to retrieve all the sctask numbers by providing the sys_id of ritm on sc_req_item table while I am able to get the request number using request.number.
My question is how can I get all the SCTASK numbers by providing the RITM details?
Thanks,
Akshaya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 12:49 AM
See below screenshot to get all tasks using REST API explorer:
If you are using REST API explorer you need to set sysparm_limit.
Please mark the answer correct/helpful accordingly.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 12:52 AM
Hi ,
Please use table sc_task for REST API and add filter/query parameter request item number/sys_id . This will return the related catalog tasks where the catalog tasks belong to the given RITM
Parent Field on catalog task i.e. Request item
Resi Api Explorer
Please mark correct if helpful.
Regards,
Brijesh Sahani
ServiceNow Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 12:49 AM
See below screenshot to get all tasks using REST API explorer:
If you are using REST API explorer you need to set sysparm_limit.
Please mark the answer correct/helpful accordingly.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 01:51 AM
Thank you for the quick response Raghav!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 12:52 AM
Hi ,
Please use table sc_task for REST API and add filter/query parameter request item number/sys_id . This will return the related catalog tasks where the catalog tasks belong to the given RITM
Parent Field on catalog task i.e. Request item
Resi Api Explorer
Please mark correct if helpful.
Regards,
Brijesh Sahani
ServiceNow Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 01:51 AM
Thank you for helping Brijesh!