Skip to content

Commit 88186a0

Browse files
authored
Merge pull request #480 from romannyschuk-a11y/romannyschuk-a11y-servicenow-connector
Romannyschuk a11y servicenow connector
2 parents e43494a + 7245dc7 commit 88186a0

File tree

4 files changed

+42
-35
lines changed

4 files changed

+42
-35
lines changed

docs/integration/external-integrations/device42-servicenow-connector.mdx

Lines changed: 42 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_position: 28
55

66
Use the Device42-ServiceNow connector (plugin) to sync your IT data from Device42 to your ServiceNow CMDB. Synchronization can be manual or automated on a schedule you set.
77

8-
The plugin supports the Xanadu, Washington DC, and Vancouver versions of ServiceNow.
8+
The plugin supports the three most recent releases of ServiceNow.
99

1010
![The ServiceNow logo](/assets/images/device42-servicenow-connector/servicenow-logo-50.png)
1111

@@ -30,7 +30,28 @@ The plugin supports the Xanadu, Washington DC, and Vancouver versions of Service
3030

3131
![ServiceNow search bar](/assets/images/device42-servicenow-connector/search-plugin-snow.png)
3232

33-
2. Add **Device42** to the data source choice list. Navigate to **System Definition > Scripts – Background** (search for it under **All**) and paste in the following script. Leave **in scope** as **global.
33+
2. To verify that the discovery source of “Device42” was created, navigate to **System Definition > Scripts – Background** (search for it under **All**) and paste in the following script. Leave **in scope** as **global**.
34+
35+
<details>
36+
<summary>Click to expand the code block</summary>
37+
```js
38+
var discoverySource = 'Device42';
39+
var gr = new GlideRecord('sys_choice');
40+
gr.addQuery('element', 'discovery_source');
41+
gr.addQuery('name', 'cmdb_ci');
42+
gr.addQuery('value', discoverySource);
43+
gr.query();
44+
45+
if (gr.hasNext()) {
46+
gs.info('Device42 found');
47+
} else {
48+
gs.info('Device42 not find');
49+
}
50+
```
51+
</details>
52+
![The JS script in ServiceNow](/assets/images/device42-servicenow-connector/the-script-find.png)
53+
54+
3. If not found "Device42", add **Device42** to the data source choice list. Navigate to **System Definition > Scripts – Background** (search for it under **All**) and paste in the following script. Leave **in scope** as **global**.
3455

3556
<details>
3657
<summary>Click to expand the code block</summary>
@@ -59,7 +80,7 @@ The plugin supports the Xanadu, Washington DC, and Vancouver versions of Service
5980
## Technical Overview
6081
6182
:::caution
62-
The following information is accurate for the Washington DC and Vancouver versions of ServiceNow and may not work completely as expected for Xanadu. The approach laid out below is still relevant, but some details may differ.
83+
The following information is accurate for the recent versions of ServiceNow.
6384
:::
6485
6586
Please contact our [support team](mailto:[email protected]) for technical assistance. We're working on improving and updating this documentation and you can leave feedback by using the **Page Feedback** button at the top of this page.
@@ -70,8 +91,6 @@ Each ServiceNow data source points to one data source endpoint. You need to crea
7091
7192
From ServiceNow, the URI endpoints look something like this:
7293
73-
**Version 3.0.0+**
74-
7594
- Cloud Connector Configuration:
7695
```
7796
sn/route_doql_csv/{DOQL Name}
@@ -82,12 +101,6 @@ From ServiceNow, the URI endpoints look something like this:
82101
/services/data/v1.0/query/?saved_query_name={DOQL Name}&delimiter=,&header=yes&output_type=csv
83102
```
84103
85-
**Version 2.0.1 (or previous)**
86-
87-
- Cloud Connector Configuration
88-
```
89-
sn/route_doql_csv/{VERIFICATION TOKEN}/{DOQL NAME}
90-
```
91104
92105
The general request flow is laid out in the sections below.
93106
@@ -129,8 +142,6 @@ Don't include the `?` symbol in your system property, as ServiceNow will percent
129142
/services/data/v1.0/query/?${name_of_your_system_property}
130143
```
131144
132-
**Version 3.0.0+**
133-
134145
Cloud Connection
135146
136147
- File Path:
@@ -141,9 +152,9 @@ Cloud Connection
141152
- Username: You may use any value here, but it is required.
142153
- Password : `${x_192652_device42.instance_key}`
143154
144-
Please note that all records will appear to be ignored in versions 3+, because we use the Identification and Reconciliation Engine (IRE).
155+
Please note that all records will appear to be ignored, because we use the Identification and Reconciliation Engine (IRE).
145156
146-
**Direct Connection (3.0.0+ Only)**
157+
Direct Connection
147158
148159
- File path:
149160
```
@@ -153,12 +164,6 @@ Please note that all records will appear to be ignored in versions 3+, because w
153164
- Username: You may use any value here, but it is required
154165
- Password: `${x_192652_device42.instance_key}`
155166
156-
**Version 2.0.1 (or previous)**
157-
158-
- Cloud Connection
159-
```
160-
sn/route_doql_csv/${x_192652_device42.instance_key}/SAVEDDOLQNAME
161-
```
162167
163168
To add a custom DOQL data source, head to **System Import Sets -> Administration -> Data sources** in ServiceNow:
164169
@@ -194,16 +199,14 @@ The Cloud Connector uses a WebSocket connection initiated by the Device42 applia
194199
195200
For a detailed rundown of the Cloud Connector communication and security architecture, see our [Cloud Connector documentation](integration/external-integrations/device42-cloud-connector-overview.mdx).
196201
197-
There is also a direct connection option available on version 3.0.0+ of the ServiceNow integration plugin for users who would like to keep their integrations in their private networks.
202+
There is also a direct connection option available on the ServiceNow integration plugin for users who would like to keep their integrations in their private networks.
198203
199204
## Integration Setup and Configuration Overview
200205
201206
Download the Device42-ServiceNow connector from the [ServiceNow Marketplace](https://store.servicenow.com/sn_appstore_store.do#!/store/application/42597533db201300a189622dca961964/4.2.0?sl=sh).
202207
203208
### Install and Configure the Integration
204209
205-
**Version 3.0.0+**
206-
207210
If you have the latest version of the ServiceNow integration plugin, you will be required to follow a few additional steps to configure the plugin and utilize ServiceNow's Identification and Reconciliation Engine (IRE).
208211
209212
Install needed dependencies on ServiceNow (New York only; Orlando+ has this dependency pre-installed).
@@ -243,7 +246,7 @@ Add Device42 as the data source choice list record (New York and Orlando+).
243246
```
244247
</details>
245248
246-
If you are not on version 3.0.0+ or have completed these steps, continue with the rest of the configuration.
249+
If you have completed these steps, continue with the rest of the configuration.
247250
248251
### Device42 Main Appliance Configuration
249252
@@ -259,8 +262,6 @@ If you are not on version 3.0.0+ or have completed these steps, continue with th
259262

260263
![](/assets/images/WEB-813_3.jpg)
261264

262-
**For version 3.0.0+:**
263-
264265
- Direct Connection
265266

266267
If you have the latest version of Device42, you will see an option on the ServiceNow external integration page that displays a **Direct Connect** option. If you would like to configure the integration to use a direct connection, ensure that this option is checked. You cannot go back and change this option (you will have to delete and set up a new configuration), so confirm your settings before creating the integration.
@@ -269,12 +270,6 @@ If you are not on version 3.0.0+ or have completed these steps, continue with th
269270

270271
Ensure that the **Direct Connect** option is unchecked.
271272

272-
**For version 2.0.1:**
273-
274-
- Cloud Connection
275-
276-
Create the integration by entering the URL of your ServiceNow instance. The token credential field is not utilized in the ServiceNow integration so you may use whatever you wish for this field.
277-
278273
Note the **Verification Token**, which you'll need to enter in ServiceNow:
279274

280275
![Select External integration to view](/assets/images/select_d42_external_integration_view.png)
@@ -302,11 +297,11 @@ Configure the data sync schedules as appropriate for your environment. Search Se
302297

303298
![](/assets/images/SN_Store_Download_4.png)
304299

305-
These can be scheduled to run at certain times and should be run in the highlighted order: Devices, IPs, Services, Software Details (version 2.0.1), and Software Instances. You can click on an individual schedule to edit it or to **Execute Now**.
300+
These can be scheduled to run at certain times and should be run in the highlighted order: Affinity Group, Application Components, Business Applications, Database, Database to Instances, D42-Web-Sites, Web Site, Devices, IPs, Services, and Software Instances. You can click on an individual schedule to change running order , period and time. And then you can **Execute Now**.
306301

307302
![](/assets/images/SN_Store_Download_5.png)
308303

309-
The scheduled imports first run the respective data source to collect and store data in the import set tables for a given data source. After this data has been imported into this table a transform script is run to map the data into ServiceNow's internal tables. Version 3.0.0+ of the ServiceNow integration plugin leverages ServiceNow's IRE module. For more information on this feature, please visit ServiceNow's documentation page:
304+
The scheduled imports first run the respective data source to collect and store data in the import set tables for a given data source. After this data has been imported into this table a transform script is run to map the data into ServiceNow's internal tables. ServiceNow integration plugin leverages ServiceNow's IRE module. For more information on this feature, please visit ServiceNow's documentation page:
310305

311306
[https://docs.servicenow.com/bundle/utah-servicenow-platform/page/product/configuration-management/concept/c_CMDBIdentifyandReconcile.html](https://docs.servicenow.com/bundle/utah-servicenow-platform/page/product/configuration-management/concept/c_CMDBIdentifyandReconcile.html)
312307

@@ -388,3 +383,15 @@ If you updated the ServiceNow app from version 4.0.0 or older, you should run a
388383
- Click the **Run Script** button.
389384

390385
![](/assets/images/Web-780_running-script-last-pic.png)
386+
387+
## Adding the Relationship
388+
389+
Check if the relationship exists and if it does not add it.
390+
391+
- Go to **Configuration > Relation Type Exclusion List**
392+
393+
![](/assets/images/device42-servicenow-connector/relation-list.png)
394+
395+
- Click **New** to add the Relation
396+
397+
![](/assets/images/device42-servicenow-connector/relation-add.png)
34.4 KB
Loading
113 KB
Loading
70.1 KB
Loading

0 commit comments

Comments
 (0)