The CreatorCon Call for Content is officially open! Get started here.

use python script in service now

prakharsinha
Kilo Explorer

I need to now if python scripts can be used in service now.

I need to achieve multiple task using python scripts on service now.

If that is possible how the scripts can be implemented ?

Also if python is not applicable what is the recommended alternative

12 REPLIES 12

Nate Aiken
Tera Expert

Prakhar:



The platform is heavily Javascript/Jelly/AngularJS based.   I can't think of a scenario where Python could/would be used within the platform.   Depending on what you are trying to do, you may have to write the same logic in JS.   It may be helpful to elaborate on what you are trying to accomplish with the Python code within the platform.



Regards,


Nate Aiken


We want to run a script on the middle server which receive the data from some external source and insert into the cmdb table. Python is preferred because we've some prebuild libraries which helps us to integrate the mid server to the external source or the saltmaster .


Patrick Fedigan
Giga Guru

Hello Prakhar,



I have used python with ServiceNow by using the requests module and the ServiceNow API to GET/POST tasks. It all depends on what you are trying to accomplish.



Cheers,


We want to run a script on the mid server which receive the data from some external source and insert into the cmdb table. Python is preferred because we've some prebuild libraries which helps us to integrate the mid server to the external source or the saltmaster .