Servicenow integration with python

Samhitha_1
Tera Contributor

Hi Team,

 

I have a requirement to integrate our application with ServiceNow. We have an sdk for our product. Can we import our package and write our script in python and build our application? If yes please provide me an example to follow the procedure.

 

Thanks and regards,

Samhitha.

8 REPLIES 8

newhand
Mega Sage

HI @Samhitha_1 

Maybe using mid-server is a way.

You can use mid-server files  to drive you sdk.

 

 

 

 

Please mark my answer as correct and helpful based on Impact.

Samhitha_1
Tera Contributor

Thanks @newhand ! Could you please share the process or any link for this?... Actually I was watching one video (https://www.youtube.com/watch?v=soqVfhi4ptM) here they were using powershell whereas in our case while creating actions there is no option for integrations...Any idea?

 

Samhitha_1_0-1670248666080.png

 

Join us and our special guest, Ashutosh Munot as we show you how to create a spoke that triggers Python scripts via PowerShell stored on a MID Server.

HI @Samhitha_1 

You can read this doc first。

It's about ecc_queue,servicenow instance use ecc_queue to commicate with mid-server。

Mid-server reads the queue to get the command in the queue and run the command,finally return the resut .

So , you can use the command to run any scripts or applications in the mid-server.

By the way,we call the scripts "mid server file", you can write it anywhere and just don't forget to put it in to the mid server。But i suggest to  write it in the instance ,it can get managed and will be deployed to mid-server automatically 。

 

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/mid-server/concept/ecc-que...

Please mark my answer as correct and helpful based on Impact.

jaheerhattiwale
Mega Sage
Mega Sage

@Samhitha_1 In ServiceNow you can write python script. You can write it out side servicenow and send an API call from servicenow to trigger the python code

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023