ServiceNow Remote instance spoke implementation process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2023 03:55 AM - edited 05-11-2023 05:23 AM
Integrate your local and remote ServiceNow instances to export, import,Create and manage records from your local instance.
This spoke requires an Integration Hub subscription.
Supported versions.
This spoke was built for the Orlando version and later.
Use case: Copy incident along with attachment from local instance to remote instance.
Terms to be used in this article.
- Local instance: This is the ServiceNow instance from which the communication is initiated and established.
- Remote instance: This is the ServiceNow instance with which the local instance communicates.
Step 1:
Install the ServiceNow remote instance spoke plugin sn_now_remote_spk in local and remote instance.
Step 2: On Remote instance
- Create OAuth application registry entry.
- Application Registry -> New -> OAuth API endpoint for external clients.
- In Redirect URL, specify the URL of the local instance. e.g., https://<local-instance-name>.service-now.com/oauth_redirect.do
- Default Grant Type: Authorization Code
- Make a note of Client ID, Client Secret and Redirect URL
Step 3: On Local instance
- Register remote ServiceNow instance as OAuth Provider
- Navigate to System OAuth > Application Registry.
- Open for the record, "RemoteSpoke".
- On the form, fill the noted values.
- Client ID: Client Id created in the remote instance.
- Client Secret: Client secret created in the remote instance.
- Authorization URL: URL of the remote instance. e.g., https://<remote-instance-name>.service-now.com/oauth_auth.do
- Token URL: URL of the remote instance. e.g., https://<remote-instance-name>.service-now.com/oauth_token.do
- Redirect URL: URL of the local instance. e.g., https://<local-instance-name>.service-now.com/oauth_redirect.do
- Default Grant Type: Grant type used to establish the token. Select Authorization Code.
Step 4: On Local instance
- Create credential record.
- Navigate to Connections & Credentials > Credentials.
- Click New.
- Select OAuth 2.0 Credentials.
- On the form, fill in the fields.
- Name - Name to uniquely identify the record.
- OAuth Entity Profile - Profile that got created in the step [3].
- To generate the OAuth token, click the Get OAuth Token related link. Here during the Authorization Code flow enter the remote instance username/password (user needs to be created in remote instance). An OAuth token will be generated which will be to read/write data into the remote instance table. So please make sure that this user has enough permission to read/write into tables.
Step 5: On Local instance
- Create a connection record.
- Navigate to Connections & Credentials > Connections & Credentials Aliases.
- Open the alias record, ServiceNowRemoteInstance.
- From the Connections tab, click New.
- Give a name and associate the credential record created in step [4].
- Connection URL: URL of the remote instance. e.g., https://<remote-instance-name>service-now.com
Step 6: On Remote instance
- Create a Credential record.
- Navigate to Connections & Credentials > Credentials.
- Click New
- Select Basic Auth Credentials.
- Name: Name to uniquely identify the record.
- Create one user in local instance and give the required permission.
- Username: Username of the user created in local instance.
- Password: Password of the user created in local instance.
Step 7: On Remote instance
- Create Connection record.
- Navigate to Connections & Credentials > Connections & Credentials Aliases.
- Open the alias record, ServiceNowRemoteInstanceLocalAlias.
- From the Connections tab, click New.
- Credential: Credential record created from step [6].
- Connection URL: URL of the local instance. e.g., https://<local-instance-name>service-now.com/.
Step 8: On Local instance
Create a flow to create incident and copy attachment from local to remote instance.
Flow to update attachment from local to remote instance.
Note:
- For domain separated instance configuration needs to be created in global domain.
- It is very important that the user with which you authenticate to generate the token has the necessary roles and access. It needs to have access to read from sys_db_object to retrieve the tables, read access to be able to retrieve Import Set Tables and it needs to have access to read/write on the table you are going to insert/update/delete a record.
- I was facing an issue with the flow. After saving the flow values were getting vanished. For this, ServiceNow team has updated the OOB code in our instance and problem has been created for this issue which will be taken care in further release.
- 4,960 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 08:45 AM
Can I have configured more then one remote instance? So flow is running on prod but is quering dev and test?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2025 07:25 PM
Im trying to pull from tables like stories and location. Can I not do this with the remote instance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 08:40 AM
Thank you for providing this flow. I tried this and it worked perfectly for moving Incident records to our remote instance. I am wondering if you have been able to come up with a flow that can move knowledge article records with their attachments?