Table of Contents

Codeunit "Graph Pagination Data"

ID 9360
Namespace: System.Integration.Graph

Holder for pagination data when working with Microsoft Graph API responses.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

SetNextLink

Sets the next link URL for retrieving the next page of results.

procedure SetNextLink(NewNextLink: Text)

Parameters

Name Type Description
NewNextLink Text

The @odata.nextLink value from the Graph response.

GetNextLink

Gets the current next link URL.

procedure GetNextLink(): Text

Returns

Type Description
Text

The URL to retrieve the next page of results.

HasMorePages

Checks if there are more pages available.

procedure HasMorePages(): Boolean

Returns

Type Description
Boolean

True if more pages are available; otherwise false.

SetPageSize

Sets the page size for pagination requests.

procedure SetPageSize(NewPageSize: Integer)

Parameters

Name Type Description
NewPageSize Integer

The number of items to retrieve per page (max 999).

GetPageSize

Gets the current page size.

procedure GetPageSize(): Integer

Returns

Type Description
Integer

The number of items per page.

GetDefaultPageSize

Gets the default page size.

procedure GetDefaultPageSize(): Integer

Returns

Type Description
Integer

The default number of items per page.

Reset

Resets the pagination data to initial state.

procedure Reset()

See also