Invoke-PnPQuery

Executes the currently queued actions

Syntax

Invoke-PnPQuery
      [-RetryCount <Int>]
                     [-RetryWait <Int>]
                     [-Connection <SPOnlineConnection>]

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.

------------------EXAMPLE 2------------------

Invoke-PnPQuery -RetryWait 10

This will execute any queued actions / changes on the SharePoint Client Side Object Model Context and delay the execution for 10 seconds before it retries the execution.

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:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-RetryCount

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

Type:Int
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-RetryWait

Delay in seconds. Defaults to 1.

Type:Int
Position:Named
Accept pipeline input:False
Accept wildcard characters:False