8000 Update servicenow-integration.md · Code-unik/docs.hackerone.com@93f770a · GitHub
[go: up one dir, main page]

Skip to content

Commit 93f770a

Browse files
authored
Update servicenow-integration.md
Add using correct headers for closing report on installation
1 parent cac141a commit 93f770a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

docs/programs/servicenow-integration.md

Lines changed: 11 additions & 4 deletions
< 8000 td data-grid-cell-id="diff-3e162acc5f1772de63846c82ed18987ff43b7765dc53e81e0f651ad4ea2619ec-205-204-0" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-deletionNum-bgColor, var(--diffBlob-deletion-bgColor-num));text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative left-side">205
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,16 @@ Endpoint | The Public ServiceNow URL visible in configuration wizard on the Hack
202202
Authentication Type | No authentication
203203
Content | `{"event_name":"close_report","element_id":"${sys_id}"}`
204204

-
4. Navigate to **System Definition > Business Rules**.
206-
5. Click **New** to create a new business rule.
207-
6. Enter these values for these fields on the **When to run** tab:
205+
4. Add these two HTTP Headers on the same HTTP Request tab:
206+
207+
Name | Value
208+
----- | -----
209+
Accept | application/json
210+
Content-Type | application/json
211+
212+
5. Navigate to **System Definition > Business Rules**.
213+
6. Click **New** to create a new business rule.
214+
7. Enter these values for these fields on the **When to run** tab:
208215

209216
Field | Value
210217
----- | -----
@@ -214,7 +221,7 @@ When | Async
214221
Update | Make sure the box is checked
215222
Filter Conditions | State: changes to : Closed
216223

217-
7. Enter this script on the **Advanced** tab:
224+
8. Enter this script on the **Advanced** tab:
218225

219226
```
220227
(function executeRule(current, previous /*null when async*/) {

0 commit comments

Comments
 (0)
0