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

# NSSuggestedAppointment

## Constructors

### NSSuggestedAppointment()

```crmscript theme={null}
NSSuggestedAppointment
```

Initializes a new instance of the NSSuggestedAppointment class.

## Methods

## GetAssociate()

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

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The owner of the suggested activity. Always the same as the sales owner.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
NSAssociate associate = thing.GetAssociate();
```

## GetAutoSuggest()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Should this appointment be auto-suggested.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer autoSuggest = thing.GetAutoSuggest();
```

## GetDaysFuture()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - How many days into the future the appointment should be scheduled.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer daysFuture = thing.GetDaysFuture();
```

## GetDeleted()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - 0 -> record is active 1 -> record is 'deleted' and should not be shown in lists.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer deleted = thing.GetDeleted();
```

## GetDuration()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Duration in minutes of suggested appointment.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer duration = thing.GetDuration();
```

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Item name, visible in Guide.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
String name = thing.GetName();
```

## GetProjectTypeStatusLinkId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Link to projectTypeStatusLink, the anchor for project guide items.

<Note>
  Either this OR saleAnchorId should be set, not both at the same time.
</Note>

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer projectTypeStatusLinkId = thing.GetProjectTypeStatusLinkId();
```

## GetRank()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Rank, controls rank of non-instantiated items in Guide.

**Example:**

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

## GetRegisteredAssociateId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Registered by whom.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer registeredAssociateId = thing.GetRegisteredAssociateId();
```

## GetSaleTypeStageLinkId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Link to saleTypeStageLink, the anchor for sale guide items.

<Note>
  Either this OR projectAnchorId should be set, not both at the same time.
</Note>

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer saleTypeStageLinkId = thing.GetSaleTypeStageLinkId();
```

## GetSuggestedAppointmentId()

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

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer suggestedAppointmentId = thing.GetSuggestedAppointmentId();
```

## GetTaskId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Type of the suggested appointment.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer taskId = thing.GetTaskId();
```

## GetText()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The suggested text of the new appointment.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
String text = thing.GetText();
```

## GetTooltip()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Tooltip / description.

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
String tooltip = thing.GetTooltip();
```

## SetAssociate(NSAssociate)

```crmscript theme={null}
Void SetAssociate(NSAssociate associate)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
NSAssociate associate;
thing.SetAssociate(associate);
```

## SetAutoSuggest(Integer)

```crmscript theme={null}
Void SetAutoSuggest(Integer autoSuggest)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer autoSuggest;
thing.SetAutoSuggest(autoSuggest);
```

## SetDaysFuture(Integer)

```crmscript theme={null}
Void SetDaysFuture(Integer daysFuture)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer daysFuture;
thing.SetDaysFuture(daysFuture);
```

## SetDeleted(Integer)

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

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer deleted;
thing.SetDeleted(deleted);
```

## SetDuration(Integer)

```crmscript theme={null}
Void SetDuration(Integer duration)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer duration;
thing.SetDuration(duration);
```

## SetName(String)

```crmscript theme={null}
Void SetName(String name)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
String name;
thing.SetName(name);
```

## SetProjectTypeStatusLinkId(Integer)

```crmscript theme={null}
Void SetProjectTypeStatusLinkId(Integer projectTypeStatusLinkId)
```

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

<Note>
  Either this OR saleAnchorId should be set, not both at the same time.
</Note>

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer projectTypeStatusLinkId;
thing.SetProjectTypeStatusLinkId(projectTypeStatusLinkId);
```

## SetRank(Integer)

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

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

**Example:**

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

## SetRegisteredAssociateId(Integer)

```crmscript theme={null}
Void SetRegisteredAssociateId(Integer registeredAssociateId)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer registeredAssociateId;
thing.SetRegisteredAssociateId(registeredAssociateId);
```

## SetSaleTypeStageLinkId(Integer)

```crmscript theme={null}
Void SetSaleTypeStageLinkId(Integer saleTypeStageLinkId)
```

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

<Note>
  Either this OR projectAnchorId should be set, not both at the same time.
</Note>

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer saleTypeStageLinkId;
thing.SetSaleTypeStageLinkId(saleTypeStageLinkId);
```

## SetSuggestedAppointmentId(Integer)

```crmscript theme={null}
Void SetSuggestedAppointmentId(Integer suggestedAppointmentId)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer suggestedAppointmentId;
thing.SetSuggestedAppointmentId(suggestedAppointmentId);
```

## SetTaskId(Integer)

```crmscript theme={null}
Void SetTaskId(Integer taskId)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
Integer taskId;
thing.SetTaskId(taskId);
```

## SetText(String)

```crmscript theme={null}
Void SetText(String text)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
String text;
thing.SetText(text);
```

## SetTooltip(String)

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

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointment thing;
String tooltip;
thing.SetTooltip(tooltip);
```


## Related topics

- [NSAppointmentAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSAppointmentAgent.md)
- [NSSuggestedAppointmentEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSSuggestedAppointmentEntity.md)
- [Get Suggested Appointment](/en/api/reference/restful/agent/appointment_agent/get-suggested-appointment.md)
- [SuggestedAppointment table](/en/database/tables/suggestedappointment.md)
- [Save Suggested Appointment Entity](/en/api/reference/restful/agent/appointment_agent/save-suggested-appointment-entity.md)
- [Get Suggested Appointment Entity](/en/api/reference/restful/agent/appointment_agent/get-suggested-appointment-entity.md)
