Table of Contents

Invoke-PnPQuery

SYNOPSIS

Executes the currently queued actions

SYNTAX

Invoke-PnPQuery [-RetryCount <Int32>] [-Connection <PnPConnection>] 

DESCRIPTION

Executes any queued actions / changes on the SharePoint Client Side Object Model Context

EXAMPLES

EXAMPLE 1

Invoke-PnPQuery -RetryCount 5

This will execute any queued actions / changes on the SharePoint Client Side Object Model Context and will retry 5 times in case of throttling.

PARAMETERS

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type: PnPConnection
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RetryCount

Number of times to retry in case of throttling. Defaults to 10.

Type: Int32
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Microsoft 365 Patterns and Practices