Is Scripted REST API used only for Inbound communications in to ServiceNow ?

Gopi22
Giga Guru

HI,

We are building multiple integrations for our client.

We had this query, are Scripted REST APIs used only for inbound communication in to ServiceNow. Can we use Scripted REST API for Outbound integrations from ServiceNow on to different third party systems ?

Thanks,

Gopi

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Gopi,

Scripted REST APIs are being used in ServiceNow so that an endpoint can be given to 3rd party team.

This endpoint when consumed by 3rd party would perform some operation as defined in the scripted rest API.

It is used for inbound communication to ServiceNow only.

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

View solution in original post

8 REPLIES 8

Gowrisankar Sat
Tera Guru

You need to create a REST Message for Outbound Communications from ServiceNow.

https://docs.servicenow.com/bundle/orlando-application-development/page/integrate/outbound-rest/task...

You can trigger this REST Message from any server side scripts like business rules/ script includes/ workflows etc. Scripting for outbound REST is here:

https://docs.servicenow.com/bundle/orlando-application-development/page/integrate/outbound-rest/conc...

More details here:

https://docs.servicenow.com/bundle/orlando-application-development/page/integrate/outbound-rest/conc...

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Gopi,

Scripted REST APIs are being used in ServiceNow so that an endpoint can be given to 3rd party team.

This endpoint when consumed by 3rd party would perform some operation as defined in the scripted rest API.

It is used for inbound communication to ServiceNow only.

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

HI Ankur,

 

Thank you for the suggestion. This has improved my understanding. 

 

Thanks,

Gopi

Hi Ankur,

 

After creating the scripted REST API, we get the end point to be provided to the other team through REST API explorer right ?

 

Thanks,

Gopi