Scripting - Can Java or Python be used for scripting in business rules and other objects in the platform?

If yes, please share some documentation / tutorials on the same.


  • The ServiceNow server-side platform uses the Rhino JavaScript engine, which is managed by the Mozilla Foundation, the maintainers of Firefox.
  • All direct scripting within the platform should follow this standard.
  • However using inbound web service you will be able to access java client and phyton client from within the platform.

Inbound web service examples

  • More examples of this can be found here:
  • In the past, it used to be possible to call native java classes in servicenow but this has been replaced since Fuji with GlideScriptable object. Here is a documentation on the GlideScriptable object replacement list.

Glide object replacement list

Additional Information:

  • Some helpful documents related to scripting and creating Business rules.

Now Platform Custom Business Applications

Available script types

Scripting in ServiceNow


Example script: A default before-query business rule 

Create a business rule

Article Information

Last Updated:2019-08-02 20:56:43