I will need to look for the solution to implement the manual script initiation for specific file type in the document library (ex. force unlocking a document). Idea is that I will add additional column with the link to manually trigger a workflow to every item with appropriate content type (only MS Office file types). It should look like this:

User click on the link of workflow of specific document --> Workflow (param documentId) --> execute the script on the server (with documentId param).

Is that scenario possible, if not with workflows, how can I achieve that?


By design, SharePoint Workflow cannot call a customized powershell script. On the other hand, you can start SharePoint Workflows through PowerShell commands.

You could refer to this case:

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.