REST API Outbound Integration (Post & Get)

ashwanikumar
Tera Expert

Hi All,

i am able to connect to third party tool using the end point. I can POST data by putting data on content and can create a new request on third party. I can read request again by using GET.

Now as per the requirement I need to use workflow script to create a request on third party tool. how can I use POST functionality by writing a script? I am new on REST integration and I don't know how to proceed further.

Thanks in advance for your help.

Kumar

2 REPLIES 2

sndangibbard
Mega Guru

Kumar



Go to System Web Services > REST API Explorer and build out a request that is similar to what you will be using. At the bottom of the screen are several links titled Code Samples. These will show you exactly how to make a REST call with script (the one you will use in a Workflow is [ServiceNow Script]!



I hope this helps


Chandu Telu
Tera Guru
Tera Guru