Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 1.7 KB

Execute-PnPQuery.md

File metadata and controls

78 lines (57 loc) · 1.7 KB
external help file applicable schema
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
2.0.0

Execute-PnPQuery

SYNOPSIS

Execute the current queued actions

SYNTAX

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

DESCRIPTION

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

EXAMPLES

------------------EXAMPLE 1------------------

PS:> Execute-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------------------

PS:> Execute-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

-RetryCount

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

Type: Int
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-RetryWait

Delay in seconds. Defaults to 1.

Type: Int
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-Connection

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

Type: SPOnlineConnection
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

RELATED LINKS

SharePoint Developer Patterns and Practices