How to create service account to call API.

niveditakumari
Mega Sage

Hi, 

 

How to create service account to call API. I need to create service account to call API an read all records from catalog item. 

There is catalog item called 'ABC' and I need to read all records from that table and that record are stored in one table. 

I need to call create service account and call API to retrieve all RITM and then we need to call API to retrieve table that stored User Registration data. 

Can you please help me with step. 

 

Regards, 

Nivedita 

 

 

 

1 ACCEPTED SOLUTION

@niveditakumari 

correct the scripted REST API resource needs to be given in postman

Also ensure you add prefix with the instance name etc in the URL

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

22 REPLIES 22

Hi @Ankur Bawiskar

 

Need to show all variable value that is available in user registration catalog item. 

Do I need to use above table, yesterday I saw that table but didn't able to get how to link and get RITM for user registration and with their corressponding value. 

RITM - their field value 

RITM - their field value 

Please find attached screenshot : 

niveditakumari_0-1745231092287.png  

 

Can you please help how to get RITM and their data. 

 

Regards, 

Nivedita 

 

 

 

@niveditakumari 

check this link which talks about scripted rest api and how 3rd party can get variable value

Scripted REST APIs & Retrieving RITM Variables via SRAPI 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar

 

I have gone through above link and with that we are manually entering RITM and I need to get for dynamic RITM which are for user registration. 

How I can get it RITM for user registration and their all variable value. 

 

Regards, 

Nivedita 

 

 

Hi @Ankur Bawiskar

 

I have created all step as per above link but getting error. 

Please find attached screenshot : 

niveditakumari_0-1745235985317.png

 

Can you please help to fix that and when it will work I can add filter on that to get dynamic RITM for user registration all variable value. 

 

Regards, 

Nivedita 

 

 

 

Hi @Ankur Bawiskar

 

niveditakumari_1-1745236293963.png

 

I'm getting above error. 

I have created each step followed by link. 

Can you please help me to fix that. 

 

Regards, 

Nivedita