Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 877 Bytes

AddSPOJavaScriptBlock.md

File metadata and controls

19 lines (16 loc) · 877 Bytes

#Add-SPOJavaScriptBlock Adds a link to a JavaScript snippet/block to a web or site collection ##Syntax

Add-SPOJavaScriptBlock -Name <String> -Script <String> [-Sequence <Int32>] [-Scope <CustomActionScope>] [-Web <WebPipeBind>]

##Detailed Description Specify a scope as 'Site' to add the custom action to all sites in a site collection.

##Parameters

Parameter Type Required Description
Name String True The name of the script block. Can be used to identiy the script with other cmdlets or coded solutions
Scope CustomActionScope False The scope of the script to add to. Either Web or Site, defaults to Web. All is not valid for this command.
Script String True The javascript block to add
Sequence Int32 False
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.