0

Can you run a UserCustomAction with Powershell? I am planing to automate a process and this is the easiest way.

2

See your question isn't quite clear but userCustomactions are possible using the web object that powershell provides.

You can deploy it on a list or library.

 $web = get-spweb "http://exampleURL.com"
 $appType = $web.lists[$listTitle]
 $exampleAction = $appType.UserCustomActions.Add();

 $exampleAction.Url = "ExampleURL"
 $exampleAction.Location = "Ribbon.ListItem.Actions.Controls"

 $exampleAction.Title = "Give it a title"
 $exampleAction.Description  = "Give it a description"
 $exampleAction.Update()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.