Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 1.04 KB

File metadata and controls

26 lines (23 loc) · 1.04 KB

#Add-SPOEventReceiver Adds a new event receiver ##Syntax

Add-SPOEventReceiver [-List <ListPipeBind>] -Name <String> -Url <String> -EventReceiverType <EventReceiverType> -Synchronization <EventReceiverSynchronization> [-SequenceNumber <Int32>] [-Force [<SwitchParameter>]] [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
EventReceiverType EventReceiverType True
Force SwitchParameter False
List ListPipeBind False
Name String True
SequenceNumber Int32 False
Synchronization EventReceiverSynchronization True
Url String True
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Add-SPOEventReceiver -List "ProjectList" -Name "TestEventReceiver" -Url https://yourserver.azurewebsites.net/eventreceiver.svc -EventReceiverType ItemAdded -Synchronization Asynchronous

This will add a new event receiver that is executed after an item has been added to the ProjectList list