Using Custom Actions in SharePoint Designer 2013 to Kick off Site Workflow
- List workflow
It is MUCH simpler to create a custom action to a list workflow. To do that, select your existing list from “List and Libraries”. You will see a “Custom Action” button appear in the ribbon. Choose whichever place you want your button. For me, I chose “List Item Menu”. Name your action “Delete from Site Collection” or something shorter like “Delete from SC”. You can create and upload a button for it as well if you wish. In the “Select Type of Action” area, choose “Initiate Workflow” and select your workflow you wish to launch. Ensure this workflow is set up to allow it to be launched manually.
To make the button appear in the “Workflows” section of the ribbon instead of a list item menu, you’ll need to change out the word “Actions” in the following:
FROM Ribbon.ListItem.Actions.Controls._children TO Ribbon.ListItem.Workflows.Controls._children
- Site workflow
Follow the steps above for a list workflow but in the “Select Type of Action” area, choose “Navigate to URL” and paste the URL to your initiation page for your workflow. You can find this URL if you go to “Site Actions” for your site and then “Site Contents” and go to the “Site Workflows” area located to the left of the “Recycle bin” and right clicking and copying the URL for the workflow you wish you use. You may want to remove the variable “Source” and it’s value from the URL or replace it with a URL you want the workflow to load after it’s launched.