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

# NSArchiveListResult

> Header/Detail variant of archive result, with a Row Count plus the actual rows. Future extensions may include other header data on the same level as the RowCount.

Header/Detail variant of archive result, with a Row Count plus the actual rows. Future extensions may include other header data on the same level as the RowCount.

## Constructors

### NSArchiveListResult()

```crmscript theme={null}
NSArchiveListResult
```

Initializes a new instance of the NSArchiveListResult class.

## Methods

## GetRowCount()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Count of rows, independent of paging.

<Note>
  If you order up page 1 with page size 50, the row count may still be 279, that being the number of rows that would have been returned in a paging-off situation.
</Note>

**Example:**

```crmscript theme={null}
NSArchiveListResult thing;
Integer rowCount = thing.GetRowCount();
```

## GetRows()

```crmscript theme={null}
NSArchiveListItem[] GetRows()
```

**Returns:** [CRMScript.NetServer.NSArchiveListItem](CRMScript.NetServer.NSArchiveListItem)\[] - The actual rows, according to the paging info, of the result.

<Note>
  See RowCount for a paging-independent count estimate
</Note>

**Example:**

```crmscript theme={null}
NSArchiveListResult thing;
NSArchiveListItem[] rows = thing.GetRows();
```

## SetRowCount(Integer)

```crmscript theme={null}
Void SetRowCount(Integer rowCount)
```

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

<Note>
  If you order up page 1 with page size 50, the row count may still be 279, that being the number of rows that would have been returned in a  paging-off situation
</Note>

**Example:**

```crmscript theme={null}
NSArchiveListResult thing;
Integer rowCount;
thing.SetRowCount(rowCount);
```

## SetRows(NSArchiveListItem\[])

```crmscript theme={null}
Void SetRows(NSArchiveListItem[] rows)
```

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

<Note>
  See RowCount for a paging-independent count estimate
</Note>

**Example:**

```crmscript theme={null}
NSArchiveListResult thing;
NSArchiveListItem[] rows;
thing.SetRows(rows);
```


## Related topics

- [NSArchiveAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSArchiveAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [Create Default Archive List Result](/en/api/reference/restful/agent/archive_agent/create-default-archive-list-result.md)
- [SuperOffice.WebApi.Data.ArchiveListResult](/en/api/reference/webapi/SuperOffice.WebApi.Data.ArchiveListResult.md)
- [SuperOffice.WebApi.Agents.ArchiveAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ArchiveAgent.md)
- [SuperOffice.WebApi.Agents.IArchiveAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IArchiveAgent.md)
