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

# ResQ.Blockchain.MockNeoClient.ExtractIncidentId(string)

### [ResQ.Blockchain](./ResQ.Blockchain.md "ResQ.Blockchain").[MockNeoClient](./ResQ.Blockchain.MockNeoClient.md "ResQ.Blockchain.MockNeoClient")

## MockNeoClient.ExtractIncidentId(string) Method

Extracts an incident ID from a JSON payload string.

```csharp theme={null}
private static string? ExtractIncidentId(string? payload);
```

#### Parameters

<a name="ResQ.Blockchain.MockNeoClient.ExtractIncidentId(string).payload" />

`payload` [System.String](https://learn.microsoft.com/en-us/dotnet/api/system.string "System.String")

The JSON payload to parse.

#### Returns

[System.String](https://learn.microsoft.com/en-us/dotnet/api/system.string "System.String")\
The extracted incident ID from "incidentId" or "incident" fields, or null if not found.
