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

@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

Hi @Ankur Bawiskar

 

I'm getting same error. 

niveditakumari_0-1745305775422.png

 

Can you please correct that. 

 

Regards, 

Nivedita 

 

 

@niveditakumari 

share your scripted REST API and rest api resource screenshots.

you are using wrong 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

Hi @Ankur Bawiskar

 

niveditakumari_0-1745307165576.png

 

niveditakumari_1-1745307344721.png

 

Regards, 

Nivedita 

 

 

 

 

Hi @Ankur Bawiskar

 

niveditakumari_0-1745306628263.png

 

I'm using above and getting error to define header. 

I have already defined header with value. 

Please find attached screenshot : 

niveditakumari_1-1745306733719.png

 

Can you please help to correct that. 

 

Regards, 

Nivedita