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

# NSApproveRejectResponse

> Contains a PluginResponse and an appointment ID if the operation created one.

Contains a PluginResponse and an appointment ID if the operation created one.

## Constructors

### NSApproveRejectResponse()

```crmscript theme={null}
NSApproveRejectResponse
```

Initializes a new instance of the NSApproveRejectResponse class.

## Methods

## GetCreatedAppointmentId()

```crmscript theme={null}
Integer GetCreatedAppointmentId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - ID of the created follow up.

**Example:**

```crmscript theme={null}
NSApproveRejectResponse thing;
Integer createdAppointmentId = thing.GetCreatedAppointmentId();
```

## GetPluginResponse()

```crmscript theme={null}
NSPluginResponse GetPluginResponse()
```

**Returns:** [CRMScript.NetServer.NSPluginResponse](CRMScript.NetServer.NSPluginResponse) - The response from the operation.

**Example:**

```crmscript theme={null}
NSApproveRejectResponse thing;
NSPluginResponse pluginResponse = thing.GetPluginResponse();
```

## SetCreatedAppointmentId(Integer)

```crmscript theme={null}
Void SetCreatedAppointmentId(Integer createdAppointmentId)
```

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

**Example:**

```crmscript theme={null}
NSApproveRejectResponse thing;
Integer createdAppointmentId;
thing.SetCreatedAppointmentId(createdAppointmentId);
```

## SetPluginResponse(NSPluginResponse)

```crmscript theme={null}
Void SetPluginResponse(NSPluginResponse pluginResponse)
```

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

**Example:**

```crmscript theme={null}
NSApproveRejectResponse thing;
NSPluginResponse pluginResponse;
thing.SetPluginResponse(pluginResponse);
```


## Related topics

- [NSQuoteAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [SuperOffice.WebApi.Data.ApproveRejectResponse](/en/api/reference/webapi/SuperOffice.WebApi.Data.ApproveRejectResponse.md)
- [Approve sale](/en/mobile/sale/approve-quote.md)
- [Reject](/en/api/reference/restful/agent/appointment_agent/reject.md)
- [SuperOffice.WebApi.Agents.QuoteAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.QuoteAgent.md)
