Skip to content

Commit 58b3398

Browse files
Merge pull request #276751 from batamig/no-incident-id
Sentinel no incident ID
2 parents 73a1a88 + b9de3f0 commit 58b3398

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

articles/sentinel/automation/create-playbooks.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to create and manage Microsoft Sentinel playbooks to auto
44
author: batamig
55
ms.author: bagol
66
ms.topic: how-to
7-
ms.date: 04/17/2024
7+
ms.date: 05/30/2024
88
appliesto:
99
- Microsoft Sentinel in the Azure portal
1010
- Microsoft Sentinel in the Microsoft Defender portal
@@ -211,23 +211,17 @@ Do the following steps:
211211

212212
1. Before the first action that refers to the **Incident ARM ID** field, add a **Condition** step.
213213

214-
1. Select the **Choose a value** field and enter the **Add dynamic content** dialog.
214+
1. On the side, select the **Choose a value** field to enter the **Add dynamic content** dialog.
215215

216-
1. Select the **Expression** tab and the **length(collection)** function.
216+
1. Select **Incident ARM ID (Optional)**, and the **is not equal to** operator.
217217

218-
1. Select the **Dynamic content** tab and the **Incident ARM ID** field.
218+
1. Select **Choose a value** again to enter the **Add dynamic content** dialog.
219219

220-
1. Verify the resulting expression is `length(triggerBody()?['IncidentArmID'])` and select **OK**. For example:
220+
1. Select the **Expression** tab and **null** function.
221221

222-
:::image type="content" source="../media/playbook-triggers-actions/condition-incident-id.png" alt-text="Screenshot of dynamic content dialog to select fields for a playbook condition.":::
223-
224-
1. Set the **operator** and **value** in the condition to **is greater than** and **0**. For example:
225-
226-
:::image type="content" source="../media/playbook-triggers-actions/condition-length.png" alt-text="Screenshot of final definition of condition described in the previous screenshot.":::
227-
228-
1. In the **True** frame, add the actions to be taken if the playbook is run from an incident context.
222+
For example:
229223

230-
In the **False** frame, add the actions to be taken if the playbook is run from a nonincident context.
224+
:::image type="content" source="../media/create-playbooks/no-incident-id.png" alt-text="Screenshot of the extra condition to add before the Incident ARM ID field.":::
231225

232226
### Dynamic content: Work with custom details
233227

44.9 KB
Loading

0 commit comments

Comments
 (0)