> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Incident Comments

Get all comments for a given incident.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Microsoft Sentinel documentation](https://learn.microsoft.com/en-us/rest/api/securityinsights/incident-comments/list?view=rest-securityinsights-2023-02-01\&tabs=HTTP).

## Basic Parameters

| Parameter | Description |
| - | - |
| Incident ID | The ID of the incident, can be obtained by using the `List Incidents` action. |
| Resource Group Name | The name of the resource group. The name is case insensitive. |
| Return All Pages | Automatically fetch all resources, page by page. |
| Subscription ID | The ID of the target subscription. |
| Workspace Name | The name of the workspace. |

## Advanced Parameters

| Parameter | Description |
| - | - |
| Filter | Filter the results by inserting a query. **Note:** You can filter only based on properties attributes. **Example:** `properties/message eq 'messageContent'` |
| Order By | Sort the results by inserting a query. **Example:** `properties/createdTimeUtc desc`. |
| Skip Token | Specifies a starting point to show results from, this token is received in case that the previous request returned a partial result. |
| Top | Return Only the first `n` results. |

## Example Output

```json theme={"dark"}
{
	"results": [
		{
			"etag": "0300bf09-0000-0000-0000-5c37296e0000",
			"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/73e01a99-5cd7-4139-a149-9f2736ff2ab5/comments/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
			"name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
			"properties": {
				"author": {
					"email": "john.doe@contoso.com",
					"name": "john doe",
					"objectId": "2046feea-040d-4a46-9e2b-91c2941bfa70",
					"userPrincipalName": "john@contoso.com"
				},
				"createdTimeUtc": "2019-01-01T13:15:30Z",
				"lastModifiedTimeUtc": "2019-01-01T13:15:30Z",
				"message": "Some message"
			},
			"type": "Microsoft.SecurityInsights/incidents/comments"
		}
	]
}
```

## Workflow Library Example

[List Incident Comments with Microsoft Sentinel and Send Results Via Email](https://library.blinkops.com/workflows/list-incident-comments-with-microsoft-sentinel-and-send-results-via-email)

![Workflow Library](https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max\&auto=format\&n=ojHYuDeYX5FWuN8a\&q=85\&s=b8af968e71438a9499c3223c9bd29fb2)

Preview this Workflow on desktop

[https://library.blinkops.com/workflows/list-incident-comments-with-microsoft-sentinel-and-send-results-via-email/canvas](https://library.blinkops.com/workflows/list-incident-comments-with-microsoft-sentinel-and-send-results-via-email/canvas)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.