How can I get all RITMs and SCTASKs related to Request through API?

Tomasz15
Kilo Contributor

Hello,

Is there any way to get all RITMs and SCTASKs related to Request through API?

Lets say I only know what the REQ number is and I need to check its RITMs and SCATSKs. It is easy to get REQ number knowing RITM number, but it is hard to do in opposite way.

1 ACCEPTED SOLUTION

Hi Tomasz,

You will have to make 2 API calls since information for that is in different tables

1) for RITM table - request.number=REQ001

2) for SCTASK table - request.number=REQ001

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

sachin_namjoshi
Kilo Patron
Kilo Patron

You need to use REST Table API to get RITM and SCTASK related to request

 

find_real_file.png

 

Regards,

Sachin

I am not sure whether you understood my question (or maybe I do not understand your advice).

I know how to get RITM and SCTASK details through API, but like I have described it in the question - I need to know how to get RITMs and SCTASK numbers if I only know request number related to them.

Hi Tomasz,

You will have to make 2 API calls since information for that is in different tables

1) for RITM table - request.number=REQ001

2) for SCTASK table - request.number=REQ001

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Oh, of course... I do not know why I did not figure it out, probably my brain stopped working for a while 😄

Thank you.