Connecting
Connecting with the cdata.servicenow Module:
The connector's module is used directly to establish a connection with the data source. It does this by using a connection string as its argument. For example:import cdata.servicenow as mod conn = mod.connect("InitiateOAuth=GETANDREFRESH;OAuthClientId=MyClientId;OAuthClientSecret=MyClientSecret;User=MyUser;Password=MyPassword;Url=https://MyInstance12345.service-now.com/;")
Once the connection is created, you can use it to execute subsequent SQL queries.