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

# NSWebhookResult

> Result of calling a webhook.

Result of calling a webhook.

## Constructors

### NSWebhookResult()

```crmscript theme={null}
NSWebhookResult
```

Initializes a new instance of the NSWebhookResult class.

## Methods

## GetMessage()

```crmscript theme={null}
String GetMessage()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Headers and body of response from webhook.

**Example:**

```crmscript theme={null}
NSWebhookResult thing;
String message = thing.GetMessage();
```

## GetSuccess()

```crmscript theme={null}
Bool GetSuccess()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Was call to webhook successful? (200 OK).

**Example:**

```crmscript theme={null}
NSWebhookResult thing;
Bool success = thing.GetSuccess();
```

## SetMessage(String)

```crmscript theme={null}
Void SetMessage(String message)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWebhookResult thing;
String message;
thing.SetMessage(message);
```

## SetSuccess(Bool)

```crmscript theme={null}
Void SetSuccess(Bool success)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSWebhookResult thing;
Bool success;
thing.SetSuccess(success);
```


## Related topics

- [NSWebhookAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSWebhookAgent.md)
- [SuperOffice.WebApi.Data.WebhookResult](/en/api/reference/webapi/SuperOffice.WebApi.Data.WebhookResult.md)
- [Webhook](/en/api/archive-providers/reference/webhook.md)
- [Webhooks](/en/automation/webhook/index.md)
- [Webhook secrets](/en/automation/webhook/dev/security.md)
- [SuperOffice.WebApi.Agents.WebhookAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.WebhookAgent.md)
