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

# NSSuggestedAppointmentEntity

## Constructors

### NSSuggestedAppointmentEntity()

```crmscript theme={null}
NSSuggestedAppointmentEntity
```

Initializes a new instance of the NSSuggestedAppointmentEntity class.

## Methods

## GetAssignToMember()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Should this appointment be assigned to project member.

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
Bool assignToMember = thing.GetAssignToMember();
```

## GetAutoSuggest()

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

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
Bool 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}
NSSuggestedAppointmentEntity thing;
Integer daysFuture = thing.GetDaysFuture();
```

## GetDeleted()

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

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

**Example:**

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

## GetDuration()

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

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
TimeSpan duration = thing.GetDuration();
```

## GetIsMilestone()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Is this a milestone activity.

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
Bool isMilestone = thing.GetIsMilestone();
```

## GetName()

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

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

**Example:**

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

## GetProjectTypeStatusLink()

```crmscript theme={null}
NSProjectTypeStatusLink GetProjectTypeStatusLink()
```

**Returns:** [CRMScript.NetServer.NSProjectTypeStatusLink](CRMScript.NetServer.NSProjectTypeStatusLink) - Project type and project status link info.

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
NSProjectTypeStatusLink projectTypeStatusLink = thing.GetProjectTypeStatusLink();
```

## 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}
NSSuggestedAppointmentEntity thing;
Integer rank = thing.GetRank();
```

## GetSaleTypeStageLink()

```crmscript theme={null}
NSSaleTypeStageLink GetSaleTypeStageLink()
```

**Returns:** [CRMScript.NetServer.NSSaleTypeStageLink](CRMScript.NetServer.NSSaleTypeStageLink) - Sale type and stage link info.

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
NSSaleTypeStageLink saleTypeStageLink = thing.GetSaleTypeStageLink();
```

## GetSuggestedAppointmentId()

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

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

**Example:**

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

## GetText()

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

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

**Example:**

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

## GetTooltip()

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

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

**Example:**

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

## GetType()

```crmscript theme={null}
NSTask GetType()
```

**Returns:** [CRMScript.NetServer.NSTask](CRMScript.NetServer.NSTask) - Type of the suggested appointment.

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
NSTask type = thing.GetType();
```

## SetAssignToMember(Bool)

```crmscript theme={null}
Void SetAssignToMember(Bool assignToMember)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
Bool assignToMember;
thing.SetAssignToMember(assignToMember);
```

## SetAutoSuggest(Bool)

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

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
Bool autoSuggest;
thing.SetAutoSuggest(autoSuggest);
```

## SetDaysFuture(Integer)

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

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

**Example:**

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

## SetDeleted(Bool)

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

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

**Example:**

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

## SetDuration(TimeSpan)

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

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
TimeSpan duration;
thing.SetDuration(duration);
```

## SetIsMilestone(Bool)

```crmscript theme={null}
Void SetIsMilestone(Bool isMilestone)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
Bool isMilestone;
thing.SetIsMilestone(isMilestone);
```

## SetName(String)

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

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

**Example:**

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

## SetProjectTypeStatusLink(NSProjectTypeStatusLink)

```crmscript theme={null}
Void SetProjectTypeStatusLink(NSProjectTypeStatusLink projectTypeStatusLink)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
NSProjectTypeStatusLink projectTypeStatusLink;
thing.SetProjectTypeStatusLink(projectTypeStatusLink);
```

## SetRank(Integer)

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

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

**Example:**

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

## SetSaleTypeStageLink(NSSaleTypeStageLink)

```crmscript theme={null}
Void SetSaleTypeStageLink(NSSaleTypeStageLink saleTypeStageLink)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
NSSaleTypeStageLink saleTypeStageLink;
thing.SetSaleTypeStageLink(saleTypeStageLink);
```

## SetSuggestedAppointmentId(Integer)

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

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

**Example:**

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

## SetText(String)

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

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity 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}
NSSuggestedAppointmentEntity thing;
String tooltip;
thing.SetTooltip(tooltip);
```

## SetType(NSTask)

```crmscript theme={null}
Void SetType(NSTask type)
```

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

**Example:**

```crmscript theme={null}
NSSuggestedAppointmentEntity thing;
NSTask type;
thing.SetType(type);
```


## Related topics

- [NSAppointmentAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSAppointmentAgent.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)
- [Create Default Suggested Appointment Entity](/en/api/reference/restful/agent/appointment_agent/create-default-suggested-appointment-entity.md)
- [SuperOffice.WebApi.Data.SuggestedAppointmentEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.SuggestedAppointmentEntity.md)
- [SuperOffice.WebApi.Agents.AppointmentAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.AppointmentAgent.md)
