Integrate ServiceNow with any third-party application

PK42
Tera Contributor

Hello,
Build an integration with any third-party application and based on the incident state changes trigger that integration and fetch the status and response body and populate in incident form.
Let met me know step by step process to meet this requirement

7 REPLIES 7

PK42
Tera Contributor

I would like to integrate ServiceNow with salesforce  

AdusumalliK
Tera Contributor

I would recommend to take the integration hub approach. 

1. Create Connections and Credential Alias

2. Create a Spoke

3. Create a custom REST Action.

4. Create the flow. 

 

Please mark as helpful if this works.

m_srinivas_2011
Tera Contributor

Here's a short step-by-step guide to build the integration in ServiceNow:

  1. Create a REST Message

    Go to System Web Services > Outbound > REST Message.Define the endpoint, HTTP methods, and authentication for the third-party app.
  2. Create Scripted REST API (if needed)

    If the third-party app also needs to call ServiceNow, create an inbound REST API under System Web Services > Scripted REST APIs.
  3. Use Business Rule for Triggering

    Create a Business Rule on the Incident table with a condition for specific state changes.In the script, call the REST Message using RESTMessageV2().
  4. Parse Response

    Parse the response using response.getBody() and JSON.parse().
  5. Update Incident Form

    Populate custom fields on the Incident form with the response data using current.<field_name> = value;.
  6. Test the Integration

    Change incident state and verify the integration is triggered, and response fields are populated.