ITSM to CSM integration

B Ashok
Tera Guru

Hello Team, 

 

We trying to integration two serviceNow platforms one is customer ( CSM module ) to our's is ITSM. 

When incident is created and assigned to XYZ group, in our instance, then the case should be created in CSM module for the customer. 

 

We have collected all the field details, instance details. Now how to start ?

 

Thanks

Ashok

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @B Ashok 

 

There are plugins you need to activate.

 

AGLearnNGrow_0-1725451337653.png

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ravi Gaurav
Giga Sage
Giga Sage

Hi @B Ashok 

 

To integrate two ServiceNow platforms—where one instance uses the Customer Service Management (CSM) module and the other uses IT Service Management (ITSM)—and automate the creation of a case in the CSM module when an incident is assigned to a specific group in the ITSM instance, follow these steps:

 

1. Set Up the Integration

 
(function executeRule(current, previous /*null when async*/) { // Initialize the REST message var r = new sn_ws.RESTMessageV2('Create CSM Case', 'Default POST'); // Set request parameters r.setStringParameterNoEscape('short_description', current.short_description); r.setStringParameterNoEscape('description', current.description); r.setStringParameterNoEscape('incident_number', current.number); // Send the REST message var response = r.execute(); var responseBody = response.getBody(); var httpStatus = response.getStatusCode(); gs.info('Response from CSM: ' + responseBody); gs.info('HTTP Status: ' + httpStatus); })(current, previous);

 

Adjust the script to include any additional fields that need to be sent to the CSM instance.

4. Create an Inbound REST API to Receive Data (CSM Instance)

  • Navigate to: System Web Services > Inbound > REST API Explorer.
  • Create a New API:
    • Resource Path: /api/now/table/sn_customerservice_case.
    • HTTP Method: POST.
  • Scripted API: You might create a scripted REST API if you need custom logic, or use the standard table API.
  • Script to Handle Incoming Data: Ensure the incoming data is mapped to the correct fields in the case.

5. Test the Integration

  • Create a test incident in the ITSM instance and assign it to the XYZ group.
  • Verify that a case is automatically created in the CSM instance.
  • Review the logs and debug any issues that arise.

6. Error Handling and Logging

  • Add error handling in your scripts to log failures or unexpected responses.
  • Ensure proper authentication is set up, and sensitive information is securely handled.

7. Monitoring and Maintenance

  • Set up notifications or monitoring on both instances to ensure the integration works smoothly.
  • Regularly review logs and adjust the integration as needed to handle new requirements or issues.

https://www.youtube.com/watch?v=pcuP6HP8QpA
https://www.servicenow.com/community/developer-articles/pre-requisite-necessary-to-perform-any-integ...

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/
Hi Youtube Family, I am Ravi Gaurav. I am Expert in ServiceNow . Welcome to my youtube channel. If you guys enjoyed it, make sure to Like👍 , Comment💬 and Subscribe❤️ _________________________________________ Copyright Disclaimer : All Rights to VideoLabel Co. & No Copyright infringement intende...

will the above script works for Work notes and additional comments updates from CSM to ITSM or ITSM to CSM ?

 

Thanks 

Vishal36
Mega Guru

Hi @B Ashok

 

ServiceNow has plugins available which can help with the integration between CSM and ITSM modules. You can make use of ServiceNow's REST API and write scripts for each integration logic. 

Alternatively, you can try out OpsHub’s free Community Edition, which provides enterprise-scale integration without the need for any scripts. Please refer to the documentation and demo video to learn how OpsHub’s integration Manager (OIM) tool facilitates bidirectional integration between ServiceNow and Salesforce which is similar to CSM module.     

It takes care of:   

  • Rich data integration for comments, attachments, links, inline content, etc. 
  • History preservation 
  • Selective data sync 
  • Field-level conflict management 
  • Failure management, etc.  

ServiceNow has plugins available which can help with the integration between CSM and ITSM modules. You can make use of ServiceNow's REST API and write scripts for each integration logic. 

Alternatively, you can try out OpsHub’s free Community Edition, which provides enterprise-scale integration  without the need for any scripts. Please refer to the documentation and demo video to learn how OpsHub’s integration Manager (OIM) tool facilitates bidirectional integration between ServiceNow and Salesforce which is similar to CSM module. 

We are happy to assist in your integration planning. Schedule an initial complimentary consultation session with our solutions architects.   

 

Thanks,

Vishal