How servicenow call external rest api

Kimi Liu
Kilo Expert

Hello,

I plan to integrate snow with external system. When user submit an incident, I want to transfer snow incident to external system by calling rest api, what should I do?

I plan to use script includes and business rule to implement it, I'm not sure my solution is the best practice. And I didn't find some example code.

Anyone can give me some code example or suggestion, thanks?

1 ACCEPTED SOLUTION

Kimi Liu
Kilo Expert

Issue has been resolved. Rest Message and Business Rule combination can implement it.

View solution in original post

4 REPLIES 4

The SN Nerd
Giga Sage
Giga Sage

The "Best Practice" would be to use Integration Hub (Flow Designer).

  1. Validate your IntegrationHub entitlements
  2. Check if IntegrationHub spokes for the product you are integrating with
  3. Use spokes or create your own using REST Action in Flow Designer
  4. Write your logic in Flow Designer

The "Best Practice" always depends on your circumstance. Complex integrations may require a different solution, and you can't use Integration Hub if you are on an older licensing model.

 


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Hi Paul,

 

Thanks for your feedback. I read offical doucment, and try to create actions for new flow designer. But I couldn't find SPOKES to call third-party system. So it means I can't transfer snow incident data to third-party system by flow designer. If any other way to implement it?

 

My purpose is when an incident is created in snow, if incident states is new and assignement group is given to Group A, after incident update, I need to call external system rest api, and transfer snow data to third-party system.

 

Thanks,

Kimi

Shaikh Mzhar
Tera Guru

Hi Kimi,

You can go through with below article, hope it will help you with rest API intgration.

 

https://community.servicenow.com/community?id=community_article&sys_id=dd0c18b0dbb0a784fff8a345ca961...

 

Please mark my answer Correct Or Helpful if applicable.

Thank you
Mzhar

Kimi Liu
Kilo Expert

Issue has been resolved. Rest Message and Business Rule combination can implement it.