URL help needed - Obtain RITM number that corresponds to an SC Task number

Amy Lamb
Kilo Contributor

Hi Guys - I'm spinnin' my wheels here.  It's my first time developing with Service now.  I am a SAS developer trying to make an API.

I have an SC Task number.

I want to obtain the corresponding RITM number.

This is my current URL query, which does not work:

https://mysite.service-now.com/retrieveRequestItem.do&sysparm_query=&task_effective_number=SCTASK2642133
 
Please help, I am a total noob and have been struggling for WAY too long on this.
 

 

1 ACCEPTED SOLUTION

Sai Kumar B
Mega Sage
Mega Sage

@Amy Lamb 

1.) Go to REST API Explorer from Application navigator in ServiceNow

2.) Do the below, to get the API and also you can verify the result.

You can use the below API 

https://[your instance name]/api/now/table/sc_task?sysparm_query=numer%[Pass the sc_task number dynamically]&sysparm_display_value=true&sysparm_fields=parent&sysparm_limit=1

find_real_file.png

 

find_real_file.png

find_real_file.png

find_real_file.png

View solution in original post

3 REPLIES 3

Sai Kumar B
Mega Sage
Mega Sage

@Amy Lamb 

1.) Go to REST API Explorer from Application navigator in ServiceNow

2.) Do the below, to get the API and also you can verify the result.

You can use the below API 

https://[your instance name]/api/now/table/sc_task?sysparm_query=numer%[Pass the sc_task number dynamically]&sysparm_display_value=true&sysparm_fields=parent&sysparm_limit=1

find_real_file.png

 

find_real_file.png

find_real_file.png

find_real_file.png

Bless you, friend. Thanks to your precise instructions, I was finally able to achieve this. Grateful to you.

Cheers !!