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

# NSActivityInformationListItem

> Carrier object for ActivityInformationListItem.

Carrier object for ActivityInformationListItem.

## Constructors

### NSActivityInformationListItem()

```crmscript theme={null}
NSActivityInformationListItem
```

Initializes a new instance of the NSActivityInformationListItem class.

## Methods

## GetActivityInformation()

Returns the number of free and busy activities.

```crmscript theme={null}
NSActivitySummary GetActivityInformation()
```

**Returns:** [CRMScript.NetServer.NSActivitySummary](CRMScript.NetServer.NSActivitySummary) - The number of free and busy activities.

**Example:**

```crmscript theme={null}
NSActivityInformationListItem thing;
NSActivitySummary activityInformation = thing.GetActivityInformation();
```

## GetDate()

Returns the date that this item is valid for.

```crmscript theme={null}
DateTime GetDate()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - The date that this item is valid for.

<Note>
  There is exactly one item per date, ordered by date.
</Note>

**Example:**

```crmscript theme={null}
NSActivityInformationListItem thing;
DateTime date = thing.GetDate();
```

## SetActivityInformation(NSActivitySummary)

Sets the number of free and busy activities.

```crmscript theme={null}
Void SetActivityInformation(NSActivitySummary activityInformation)
```

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

**Example:**

```crmscript theme={null}
NSActivityInformationListItem thing;
NSActivitySummary activityInformation;
thing.SetActivityInformation(activityInformation);
```

## SetDate(DateTime)

Sets the date that this item is valid for.

```crmscript theme={null}
Void SetDate(DateTime date)
```

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

<Note>
  There is exactly one item per date, ordered by date.
</Note>

**Example:**

```crmscript theme={null}
NSActivityInformationListItem thing;
DateTime date;
thing.SetDate(date);
```


## Related topics

- [NSAppointmentAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSAppointmentAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [NSDayInformationListItem](/en/automation/crmscript/reference/CRMScript.NetServer.NSDayInformationListItem.md)
- [Get Activity Information List By Dates And Associate](/en/api/reference/restful/agent/appointment_agent/get-activity-information-list-by-dates-and-associate.md)
- [SuperOffice.WebApi.Data.ActivityInformationListItem](/en/api/reference/webapi/SuperOffice.WebApi.Data.ActivityInformationListItem.md)
- [SuperOffice.WebApi.Data.DayInformationListItem](/en/api/reference/webapi/SuperOffice.WebApi.Data.DayInformationListItem.md)
