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

# NSPluginResponse

> To be able to respond with more than just a true/false, but also an explanation. Such an explanation can be displayed on for instance a disabled Place Order button.

To be able to respond with more than just a true/false, but also an explanation. Such an explanation can be displayed on for instance a disabled Place Order button.

## Constructors

### NSPluginResponse()

```crmscript theme={null}
NSPluginResponse
```

Initializes a new instance of the NSPluginResponse class.

## Methods

## GetChanges()

```crmscript theme={null}
NSChangedData GetChanges()
```

**Returns:** [CRMScript.NetServer.NSChangedData](CRMScript.NetServer.NSChangedData) - Table name/record ID of data changed by this method, that the client may need to reload.

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
NSChangedData changes = thing.GetChanges();
```

## GetErrorCode()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - An error code, if available.

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
String errorCode = thing.GetErrorCode();
```

## GetIsOk()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Answer to the question / An indication if the operation went well.

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
Bool isOk = thing.GetIsOk();
```

## GetTechExplanation()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Always in English.

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
String techExplanation = thing.GetTechExplanation();
```

## GetUserExplanation()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - A localized explanation to the answer.

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
String userExplanation = thing.GetUserExplanation();
```

## SetChanges(NSChangedData)

```crmscript theme={null}
Void SetChanges(NSChangedData changes)
```

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

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
NSChangedData changes;
thing.SetChanges(changes);
```

## SetErrorCode(String)

```crmscript theme={null}
Void SetErrorCode(String errorCode)
```

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

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
String errorCode;
thing.SetErrorCode(errorCode);
```

## SetIsOk(Bool)

```crmscript theme={null}
Void SetIsOk(Bool isOk)
```

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

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
Bool isOk;
thing.SetIsOk(isOk);
```

## SetTechExplanation(String)

```crmscript theme={null}
Void SetTechExplanation(String techExplanation)
```

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

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
String techExplanation;
thing.SetTechExplanation(techExplanation);
```

## SetUserExplanation(String)

```crmscript theme={null}
Void SetUserExplanation(String userExplanation)
```

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

**Example:**

```crmscript theme={null}
NSPluginResponse thing;
String userExplanation;
thing.SetUserExplanation(userExplanation);
```


## Related topics

- [NSApproveRejectResponse](/en/automation/crmscript/reference/CRMScript.NetServer.NSApproveRejectResponse.md)
- [NSQuoteAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteAgent.md)
- [NSQuoteConnection](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteConnection.md)
- [NSPluginUrlResponse](/en/automation/crmscript/reference/CRMScript.NetServer.NSPluginUrlResponse.md)
- [PluginResponseInfo](/en/api/plugins/erp-connectors/api/pluginresponseinfo.md)
