【问题标题】:event receiver sharepoint online在线事件接收器共享点
【发布时间】:2016-01-21 13:50:46
【问题描述】:
我有一个关于 SharePoint Online 的基本问题。
过去列出了一份清单。在此列表中附加了一个自定义事件接收器。
我需要从列表中分离事件接收器,但我不知道在哪里可以找到附加到 SharePoint 中对象的所有事件接收器的概述。
这个好像很基础,但是我搜了网上,只能找到如何创建和附加,而没有找到如何分离和概述。
谢谢!
【问题讨论】:
标签:
events
sharepoint
sharepoint-online
eventreceiver
【解决方案1】:
我自己从未这样做过,但我相信您需要安装 SharePoint 在线工具。
然后你需要做一些 powershell 命令然后删除。
# Paths to SDK. Please verify location on your computer.
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
# Insert the credentials and the name of the admin site
$Username="admin@tenant.onmicrosoft.com"
$AdminPassword=Read-Host -Prompt "Password" -AsSecureString
$Url="https://tenant.sharepoint.com/sites/teamsitewithlibraries"
$ListTitle="kriiv"
$EventReceiverGUID="154d2ca2-8335-464c-9059-214cdcc1c2c1"
Get-SPOListEventreceivers -Username $Username -AdminPassword $AdminPassword -Url $Url -ListTitle $ListTitle -EventReceiverGUID $EventreceiverGUID
上面的代码我取自this
希望对你有帮助
真人