REST API Outbound Integration (Post & Get)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2017 08:36 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2017 08:47 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2017 10:35 AM
Hi Ashwani kumar,
IStarting workflow by a REST Message
Calling external webhook/API from service now
Outbound REST for Workflow/Integration - ServiceNow Express Support
you need add the an script activity