How to invoke a REST API on FORM submission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2019 02:34 PM
Hi ,
I am new to ServiceNow. I trying to learn on how to invoke a REST API on submit.
We have a REST API to POST the contents of a form in ServiceNow.
How can i build the a simple onboarding form that invokes an API when submitted.
Any references will be helpful.
Thank you
Abhilash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 12:54 PM
Hi Abhilash
First Collect End Point!
Navigate to > Rest Outbound > Rest Message
Provide the details, Authentication type of request you are accessing ( POST/GET/..)
Then utilize the script to invoke in scripts ( Business Rule / Script Include)
https://www.youtube.com/watch?v=tVxyRmS3flA
https://www.youtube.com/watch?v=HmuCXNT7YKE
https://www.youtube.com/watch?v=LGAUq8KSxnA
Thanks and Regards
Dilip Puligilla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2019 03:55 PM
Thank you Dilip. I will try that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2019 10:51 AM
Dilip,
The reference videos your pointing to references to the Service Now built in APIs. But, what i am looking for is to call a third party API from Service Now via web form built inside Service Now and on clicking SUBMIT button i need to call that third party API.
Thank you
Abhilash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2022 05:35 AM
Hi, I have a similar requirement! Did you find a solution to this?