New-PnPExtensibilityHandlerObject

Creates an ExtensibilityHandler Object, to be used by the Get-SPOProvisioningTemplate cmdlet

Syntax

New-PnPExtensibilityHandlerObject
   -Assembly <String>
                                    -Type <String>
                                    [-Configuration <String>]
                                    [-Disabled [<SwitchParameter>]]

Examples

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

$handler = New-PnPExtensibilityHandlerObject -Assembly Contoso.Core.Handlers -Type Contoso.Core.Handlers.MyExtensibilityHandler
Get-PnPProvisioningTemplate -Out NewTemplate.xml -ExtensibilityHandlers $handler

This will create a new ExtensibilityHandler object that is run during extraction of the template

Required Parameters

-Assembly

The full assembly name of the handler

Type:String
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-Type

The type of the handler

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

Optional Parameters

-Configuration

Any configuration data you want to send to the handler

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Disabled

If set, the handler will be disabled

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

Outputs

OfficeDevPnP.Core.Framework.Provisioning.Model.ExtensibilityHandler