GET method in inboud REST API

SNOW39
Tera Expert

How can i create a scripted REST API that Retrieve incident state and send back to POSTMAN(or any third party) based on received incident number from third party. Can someone hepl with exact steps to follow

1 ACCEPTED SOLUTION

Vishakha
Mega Guru

Hi,

Refer below links:

Using POSTMAN to debug & create REST APIs (EX: Creating & searching new incidents)

https://community.servicenow.com/community?id=community_blog&sys_id=0f5de629dbd0dbc01dcaf3231f9619ca

ServiceNow Scripted Rest API (Web Services)/ Rest API Explorer / POSTMAN Tool

https://www.youtube.com/watch?v=HmuCXNT7YKE

 

Please Mark ✅ Correct and  Helpful based on the impact.

Thanks,

Vishakha Pradhan

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use http GET method

Define the url parameter

refer below links on getting started with Scripted REST API

Scripted REST API example - script samples

Scripted REST API example - script samples

Scripted REST API with XML Response

Scripted rest api

Scripted Rest API "PUT" method application.

Regards
Ankur

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

Vishakha
Mega Guru

Hi,

Refer below links:

Using POSTMAN to debug & create REST APIs (EX: Creating & searching new incidents)

https://community.servicenow.com/community?id=community_blog&sys_id=0f5de629dbd0dbc01dcaf3231f9619ca

ServiceNow Scripted Rest API (Web Services)/ Rest API Explorer / POSTMAN Tool

https://www.youtube.com/watch?v=HmuCXNT7YKE

 

Please Mark ✅ Correct and  Helpful based on the impact.

Thanks,

Vishakha Pradhan

asifnoor
Kilo Patron

Hi,

Refer to this link which shows how you can fetch the value from third party using GET.

Ref: https://docs.servicenow.com/bundle/paris-application-development/page/integrate/custom-web-services/...

Once you get the value, then use SN REST API Explorer and can build the API with the data that you want to post to 3rd party.

Mark the comment as a correct answer and helpful if it helps.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@SNOW

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

If not, please let us know if you need some more assistance.

Regards
Ankur

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