A Connection is a property of an Integration. You must have a Connection set up to allow messages to be sent and received for your Integration.
The Connection stores all the authentication details of the Integration specific to a single environment. You can setup many Connections so you can easily switch between environments as necessary.
The Integration is controlled by the Connections. Making a Connection active will make it’s Integration active (and vice versa).
You can assign a Connection to a specific environment to make it easy to see what you are connecting to.
Available environment choices are:
The Connection is the link between the ServiceNow endpoint that is receiving messages and the Integration that is used to process them. If you want to receive messages from a remote system, you must specify an Inbound user which the remote system will use to authenticate with.
In order for a Connection to send messages to remote systems, you must provide an Endpoint URL and the method of authentication.
Connections support several types of authentication: Basic, Mutual and OAuth.
Basic authentication is achieved by providing a username and password.
Mutual Authentication (MAuth) using SSL certificates is available by selecting the Mutual auth checkbox and configuring certificates on a ServiceNow Protocol Profile record.
You can connect using OAuth by configuring a ServiceNow OAuth Entity Profile.
If the system you are connecting to is behind a firewall (such as an internal service) you can specify a MID Server for the integration to communicate over.
The following table is a summary of the fields to be configured for the Connection record:
The environment this connection applies to.
The integration this record belongs to.
The application containing this record.
Use this connection for the integration when true.
Document variable usage, connection nuances etc. Used in auto documentation generation.
The user profile used by the external system for authentication. An active connection must be found for the user to gain access.
The external system’s access URL.
The authentication method to use for this connection.
The username used in basic authentication.
The password used in basic authentication.
The OAuth Entity Profile to authenticate with.
The MID server this connection will use to send messages.
Use mutual authentication with each request sent to this connection when true.
The protocol profile to use with this connection.
A Connection Variable is simply a key-value pair. If you have multiple connection environments (e.g. Dev, Test, Prod) - each containing different data, or information that needs to be passed between environments but changes - then use Connection Variables to provide a consistent entry point in the code.
They are accessed via the
variables object and can be used in most scripts. See the Variables page for details.
They can be used to define static data as variables that can change between endpoints. The following example is from the Outbound Settings for a Message:
They could also be used instead of scripting data values directly into the code of Poll Processor scripts. See the following Guides for examples: