Thursday, November 12, 2015

How to custom action url in Sharepoint list using Powershell

In this post we have creating custom action url in testEmployee list
Please see the below script

Add-PSSnapin "Microsoft.Sharepoint.Powershell"
 $site = "https://sharepointqa/"
 $web = Get-SPWeb $site
 $list = $web.Lists["testEmployee"]
 $customAction = $list.UserCustomActions | Where-Object {$_.Title -eq "New Entry"}
 Write-Host $customAction -f "blue"
 $customAction.Url = "https://peakfinders.blogspot.com"
 $customAction.Update();

No comments:

Post a Comment