Sorry for the very late reply. I can't understand this answer. I want to create a Custom Action with URL for a list view ribbon. But following the instructions here, a single, particular item on the list is hard-coded into the URL (the {ItemID} parameter). So the custom action operates on the same item every time, and disregards which item is selected on the list.
I don't understand how this creates a custom action by navigate URL that runs a workflow on any selected item.
Edit: I figured out my problem. I misunderstood that the ID= parameter was literally "{SelectedItemID}", not the ID parameter that appeared in the URL I copied from my Initialization parameter form.
For anyone having the problem:
- Create the workflow. Add Initialization parameters in the edit workflow page in Sharepoint Designer.
- Create a custom action to run the workflow you just created
- When you get to the Initialization page, copy the URL of the page.
- Edit the URL you copied to replace the specific &ID= parameter, which will be a specific number (e.g. ID=2 for the second item in the list), with the literal string "&ID={SelectedItemID}" (without the quotes). In my system, the URL also contained a parameter &ItemGuid={...GUID of specific item selected...}. Delete this whole parameter from your URL.
- Open your custom action in SPD, change it to a "navigate to URL" action and paste in your resulting URL.