> ## 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.

# Query Custom Graph

Run a Graph Query Language (GQL) query against a custom graph in Microsoft Sentinel data lake.

<Note>
  External Documentation

  To learn more, visit the [Microsoft Sentinel Data Lake documentation](https://learn.microsoft.com/en-us/azure/sentinel/datalake/graph-rest-api#query-a-graph).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter        | Description                             |
  | ---------------- | --------------------------------------- |
  | Graph Name       | The name of the custom graph to query.  |
  | Query            | The GQL query to execute.               |
  | Response Formats | Select the format of the query results. |
</div>

## Example Output

```json theme={"dark"}
{
	"status": 200,
	"result": {
		"rawData": {
			"tables": [
				{
					"tableName": "PrimaryResult",
					"columns": [
						{
							"columnName": "u",
							"dataType": "dynamic"
						}
					],
					"rows": [
						[
							{
								"oid": "node-user-001",
								"labels": [
									"User"
								],
								"properties": {
									"name": "Aino Rebane",
									"email": "aino.rebane@contoso.com",
									"department": "Engineering"
								}
							}
						]
					]
				}
			]
		},
		"graph": {
			"nodes": [
				{
					"id": "node-user-001",
					"labels": [
						"User"
					],
					"properties": {
						"name": "Aino Rebane",
						"email": "aino.rebane@contoso.com",
						"department": "Engineering"
					}
				}
			],
			"edges": [
				{
					"id": "edge-001",
					"sourceId": "node-user-001",
					"targetId": "node-group-001",
					"labels": [
						"HasRole"
					],
					"properties": {
						"assignedDate": "2024-01-15T10:30:00Z",
						"assignedBy": "admin@contoso.com"
					}
				}
			]
		}
	},
	"correlationId": "aaaa0000-bb11-2222-33cc-444444dddddd"
}
```

## Workflow Library Example

[Query Custom Graph with Microsoft Sentinel Data Lake and Send Results Via Email](https://library.blinkops.com/workflows/query-custom-graph-with-microsoft-sentinel-data-lake-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/query-custom-graph-with-microsoft-sentinel-data-lake-and-send-results-via-email/canvas" />
</div>
