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

# NSCompetitor

> Carrier object for Competitor.

Carrier object for Competitor.

## Constructors

### NSCompetitor()

```crmscript theme={null}
NSCompetitor
```

Initializes a new instance of the NSCompetitor class.

## Methods

## GetId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Gets the primary key (ID) for the NSCompetitor.

**Example:**

```crmscript theme={null}
NSCompetitor thing;
Integer id = thing.GetId();
```

## GetTooltip()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Gets the tooltip description for the NSCompetitor list item.

**Example:**

```crmscript theme={null}
NSCompetitor thing;
String descr = thing.GetTooltip();
```

## GetValue()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Gets the name of the NSCompetitor.

**Example:**

```crmscript theme={null}
NSCompetitor thing;
String name = thing.GetValue();
```

## SetId(Integer)

Sets the primary key (ID) for the NSCompetitor.

```crmscript theme={null}
Void SetId(Integer id)
```

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

**Example:**

```crmscript theme={null}
NSCompetitor thing;
thing.SetId(123);
```

## SetTooltip(String)

Sets the tooltip description for the NSCompetitor list item.

```crmscript theme={null}
Void SetTooltip(String tooltip)
```

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

**Example:**

```crmscript theme={null}
NSCompetitor thing;
String descr = "something new";
thing.SetTooltip(descr);
```

## SetValue(String)

Sets the name of the NSCompetitor item.

```crmscript theme={null}
Void SetValue(String value)
```

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

**Example:**

```crmscript theme={null}
NSCompetitor thing;
thing.SetValue("frotz");
```


## Related topics

- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [NSSaleEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSSaleEntity.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [Delete Competitor](/en/api/reference/restful/rest/list_competitor/delete-competitor.md)
- [Post Competitor](/en/api/reference/restful/rest/list_competitor/post-competitor.md)
- [Put Competitor](/en/api/reference/restful/rest/list_competitor/put-competitor.md)
