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

# NSQuoteContext

> The context a quote is created in.

The context a quote is created in.

## Constructors

### NSQuoteContext()

```crmscript theme={null}
NSQuoteContext
```

Initializes a new instance of the NSQuoteContext class.

## Methods

## GetCRMAssociate()

```crmscript theme={null}
NSAssociate GetCRMAssociate()
```

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The associate (salesman) that is logged into the CRM system.

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSAssociate cRMAssociate = thing.GetCRMAssociate();
```

## GetCRMQuoteAlternative()

```crmscript theme={null}
NSQuoteAlternative GetCRMQuoteAlternative()
```

**Returns:** [CRMScript.NetServer.NSQuoteAlternative](CRMScript.NetServer.NSQuoteAlternative) - The relevant or current alternative of the quote in the CRM system, if applicable.

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSQuoteAlternative cRMQuoteAlternative = thing.GetCRMQuoteAlternative();
```

## GetCRMQuoteLine()

```crmscript theme={null}
NSQuoteLine GetCRMQuoteLine()
```

**Returns:** [CRMScript.NetServer.NSQuoteLine](CRMScript.NetServer.NSQuoteLine) - The relevant or current quote line of the quote in the CRM system, if applicable.

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSQuoteLine cRMQuoteLine = thing.GetCRMQuoteLine();
```

## GetCRMQuoteVersion()

```crmscript theme={null}
NSQuoteVersion GetCRMQuoteVersion()
```

**Returns:** [CRMScript.NetServer.NSQuoteVersion](CRMScript.NetServer.NSQuoteVersion) - The relevant or current revision of the quote in the CRM system, if applicable.

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSQuoteVersion cRMQuoteVersion = thing.GetCRMQuoteVersion();
```

## GetCRMSale()

```crmscript theme={null}
NSSale GetCRMSale()
```

**Returns:** [CRMScript.NetServer.NSSale](CRMScript.NetServer.NSSale) - The sale the quote is registered in the CRM system.

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSSale cRMSale = thing.GetCRMSale();
```

## GetUserLanguageCode()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The iso language code of the language the user is using in the crm system. Use this language when replying, if possible.

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
String userLanguageCode = thing.GetUserLanguageCode();
```

## SetCRMAssociate(NSAssociate)

```crmscript theme={null}
Void SetCRMAssociate(NSAssociate cRMAssociate)
```

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

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSAssociate cRMAssociate;
thing.SetCRMAssociate(cRMAssociate);
```

## SetCRMQuoteAlternative(NSQuoteAlternative)

```crmscript theme={null}
Void SetCRMQuoteAlternative(NSQuoteAlternative cRMQuoteAlternative)
```

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

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSQuoteAlternative cRMQuoteAlternative;
thing.SetCRMQuoteAlternative(cRMQuoteAlternative);
```

## SetCRMQuoteLine(NSQuoteLine)

```crmscript theme={null}
Void SetCRMQuoteLine(NSQuoteLine cRMQuoteLine)
```

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

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSQuoteLine cRMQuoteLine;
thing.SetCRMQuoteLine(cRMQuoteLine);
```

## SetCRMQuoteVersion(NSQuoteVersion)

```crmscript theme={null}
Void SetCRMQuoteVersion(NSQuoteVersion cRMQuoteVersion)
```

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

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSQuoteVersion cRMQuoteVersion;
thing.SetCRMQuoteVersion(cRMQuoteVersion);
```

## SetCRMSale(NSSale)

```crmscript theme={null}
Void SetCRMSale(NSSale cRMSale)
```

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

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
NSSale cRMSale;
thing.SetCRMSale(cRMSale);
```

## SetUserLanguageCode(String)

```crmscript theme={null}
Void SetUserLanguageCode(String userLanguageCode)
```

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

**Example:**

```crmscript theme={null}
NSQuoteContext thing;
String userLanguageCode;
thing.SetUserLanguageCode(userLanguageCode);
```


## Related topics

- [QuoteAlternativeContextInfo](/en/api/plugins/quote-connectors/api/data-carriers/quotealternativecontextinfo.md)
- [QuoteVersionContextInfo](/en/api/plugins/quote-connectors/api/data-carriers/quoteversioncontextinfo.md)
- [Approving the quote](/en/api/plugins/quote-connectors/approve-quote.md)
- [IQuoteConnector](/en/api/plugins/quote-connectors/api/iquoteconnector.md)
- [SuperOffice.WebApi.Data.QuoteContext](/en/api/reference/webapi/SuperOffice.WebApi.Data.QuoteContext.md)
- [IQuoteConnector2](/en/api/plugins/quote-connectors/api/iquoteconnector2.md)
