![](/img/trans.png)
[英]Running Javascript function when new items are added to a SharePoint Calendar
[英]How to trigger a powershell script if some new items added in sharepoint
我們有 Sharepoint 列表,用戶可以在其中更新他們所需的服務。
我們將根據服務類型采取行動。
例如:我們的 Sharepoint 站點將具有“構建”“復制”“在 Appstore 中同步”等操作。
對於每個操作,都會編寫一個 powershell 腳本。
如果提出構建請求,則應觸發 powershell 腳本。
如何使用powershell實現它?
查看 SharePoint事件接收器。 下面是一些用 PowerShell 編寫的示例代碼:
23JUN22 更新 - 帶有示例代碼的網絡存檔: https ://web.archive.org/web/20141113023454/http://sharepintblog.com/2011/06/04/adding-event-receivers-with-powershell/ 替換為原始鏈接http://sharepintblog.com/2011/06/04/adding-event-receivers-with-powershell/
基本上你會如何在任何其他框架中,我認為你可以給它一個文件路徑作為命令行來運行給定位置的腳本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.