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

# NSQuoteConnection

> Information about a connection to the ERP system.

Information about a connection to the ERP system.

## Constructors

### NSQuoteConnection()

```crmscript theme={null}
NSQuoteConnection
```

Initializes a new instance of the NSQuoteConnection class.

## Methods

## GetAllAccess()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Is this connection accessible to everyone?  If not, then the QuoteConnectionAccess table tells us who can access it.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Bool allAccess = thing.GetAllAccess();
```

## GetAssociateAccessIds()

```crmscript theme={null}
Integer[] GetAssociateAccessIds()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer)\[] - Array of IDs containing associates that will have access to this connection.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer[] associateAccessIds = thing.GetAssociateAccessIds();
```

## GetConnectorName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Programmatic name of the Connector plugin that implements this kind of connection.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String connectorName = thing.GetConnectorName();
```

## GetDeleted()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - If set, then this is a row that has been 'deleted'; we do not physically delete rows to avoid disaster.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Bool deleted = thing.GetDeleted();
```

## GetDisplayDescription()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Tooltip/description shown to user; multi-language support. Any other info available that would make an uncertain user chose the right connector. Typically, used for tooltip.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String displayDescription = thing.GetDisplayDescription();
```

## GetDisplayName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Connection name shown to user; multi-language support. The name of the connector to display in a list so that the users can choose between them. Typically the name of the client, with maybe the ERP system in parenthesis.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String displayName = thing.GetDisplayName();
```

## GetErpConnectionId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The ERP Connection that this Quote connection is an extension of.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer erpConnectionId = thing.GetErpConnectionId();
```

## GetERPName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Name of the ERP system (programmatic).

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String eRPName = thing.GetERPName();
```

## GetExtraData()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Optional extra data, in XML format, for configuring the connector. Connector-specific!

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String extraData = thing.GetExtraData();
```

## GetInitializeResponse()

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

**Returns:** [CRMScript.NetServer.NSPluginResponse](CRMScript.NetServer.NSPluginResponse) - Status and Error message when the system called the connector Initialize method. Null if the connector has not been initialized yet.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
NSPluginResponse initializeResponse = thing.GetInitializeResponse();
```

## GetIsAvailable()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Whether or not the specified connection is available. Typically, without network access the availability is false.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Bool isAvailable = thing.GetIsAvailable();
```

## GetPriceLists()

```crmscript theme={null}
NSPriceList[] GetPriceLists()
```

**Returns:** [CRMScript.NetServer.NSPriceList](CRMScript.NetServer.NSPriceList)\[] - The PriceLists that this connection offers.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
NSPriceList[] priceLists = thing.GetPriceLists();
```

## GetQuoteConnectionId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer quoteConnectionId = thing.GetQuoteConnectionId();
```

## GetRank()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Rank order.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer rank = thing.GetRank();
```

## GetUserGroupAccessIds()

```crmscript theme={null}
Integer[] GetUserGroupAccessIds()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer)\[] - Array of ids containing user groups that will have access to this connection.

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer[] userGroupAccessIds = thing.GetUserGroupAccessIds();
```

## SetAllAccess(Bool)

```crmscript theme={null}
Void SetAllAccess(Bool allAccess)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Bool allAccess;
thing.SetAllAccess(allAccess);
```

## SetAssociateAccessIds(Integer\[])

```crmscript theme={null}
Void SetAssociateAccessIds(Integer[] associateAccessIds)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer[] associateAccessIds;
thing.SetAssociateAccessIds(associateAccessIds);
```

## SetConnectorName(String)

```crmscript theme={null}
Void SetConnectorName(String connectorName)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String connectorName;
thing.SetConnectorName(connectorName);
```

## SetDeleted(Bool)

```crmscript theme={null}
Void SetDeleted(Bool deleted)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Bool deleted;
thing.SetDeleted(deleted);
```

## SetDisplayDescription(String)

```crmscript theme={null}
Void SetDisplayDescription(String displayDescription)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String displayDescription;
thing.SetDisplayDescription(displayDescription);
```

## SetDisplayName(String)

```crmscript theme={null}
Void SetDisplayName(String displayName)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String displayName;
thing.SetDisplayName(displayName);
```

## SetErpConnectionId(Integer)

```crmscript theme={null}
Void SetErpConnectionId(Integer erpConnectionId)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer erpConnectionId;
thing.SetErpConnectionId(erpConnectionId);
```

## SetERPName(String)

```crmscript theme={null}
Void SetERPName(String eRPName)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String eRPName;
thing.SetERPName(eRPName);
```

## SetExtraData(String)

```crmscript theme={null}
Void SetExtraData(String extraData)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
String extraData;
thing.SetExtraData(extraData);
```

## SetInitializeResponse(NSPluginResponse)

```crmscript theme={null}
Void SetInitializeResponse(NSPluginResponse initializeResponse)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
NSPluginResponse initializeResponse;
thing.SetInitializeResponse(initializeResponse);
```

## SetIsAvailable(Bool)

Whether or not the specified connection is available. Typically, without network access the availability is false.

```crmscript theme={null}
Void SetIsAvailable(Bool isAvailable)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Bool isAvailable;
thing.SetIsAvailable(isAvailable);
```

## SetPriceLists(NSPriceList\[])

```crmscript theme={null}
Void SetPriceLists(NSPriceList[] priceLists)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
NSPriceList[] priceLists;
thing.SetPriceLists(priceLists);
```

## SetQuoteConnectionId(Integer)

```crmscript theme={null}
Void SetQuoteConnectionId(Integer quoteConnectionId)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer quoteConnectionId;
thing.SetQuoteConnectionId(quoteConnectionId);
```

## SetRank(Integer)

```crmscript theme={null}
Void SetRank(Integer rank)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer rank;
thing.SetRank(rank);
```

## SetUserGroupAccessIds(Integer\[])

```crmscript theme={null}
Void SetUserGroupAccessIds(Integer[] userGroupAccessIds)
```

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

**Example:**

```crmscript theme={null}
NSQuoteConnection thing;
Integer[] userGroupAccessIds;
thing.SetUserGroupAccessIds(userGroupAccessIds);
```


## Related topics

- [NSQuoteAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteAgent.md)
- [QuoteConnection](/en/api/archive-providers/reference/quoteconnection.md)
- [QuoteConnection table](/en/database/tables/quoteconnection.md)
- [QuoteConnectionInfo](/en/api/plugins/quote-connectors/api/data-carriers/quoteconnectioninfo.md)
- [Get All Available Quote Connections](/en/api/reference/restful/agent/quote_agent/get-all-available-quote-connections.md)
- [NSQuote](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuote.md)
