How to invoke a REST API on FORM submission

Abhilash9
Kilo Explorer

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

5 REPLIES 5

Dilip Puligilla
Giga Guru

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 

 

 

Thank you Dilip.  I will try that.

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

Mudit4
Kilo Expert

Hi, I have a similar requirement! Did you find a solution to this?