Quick step button - Workflow associated with Document set
-
lunes, 30 de abril de 2012 12:14
Hi,
I've added a quick step button on document library ribbon so that user can directly start workflow on items. I've tried this with reusable workflow where content type is all and it works. i now have another reusable workflow which is associated with document sets . When i click on quick step button it's not showing me the worfklow. can any one help?
regards
nish
- Editado nishm13 lunes, 30 de abril de 2012 12:16
Todas las respuestas
-
miércoles, 02 de mayo de 2012 9:03Moderador
Hi nish,
This is by design that we can only initiate the workflow associated with current list, but the workflow associated with certain content type cannot. But when we publish a reusable workflow which can be used with All content types, it can be added to a list in Add a workflow page in browser, it is actually a list workflow created this way, so you still can start this type of workflow in custom actions.
As a workaround, we can add a hyperlink in the list view web part which can link to the start workflow page for each item.
1. Start the content type workflow for a certain list item manually. Then in the Start workflow page with Start and Cancel button on it, copy current page URL. Following is mine.
Keep the List, TemplateID parameter and change ID to {$thisNode/@ID}. So the final URL is
http://server/site/_layouts/IniWrkflIP.aspx?List={e86b3b83-482b-4394-989f-b0ca713842bd}&ID={$thisNode/@ID}&TemplateID={fdd5b354-31e4-40e8-8e66-b6e005c60f28}
2. Add a new column on the right of the table, and the hyperlink with following code.
<a href="http://server/site/_layouts/IniWrkflIP.aspx?List={e86b3b83-482b-4394-989f-b0ca713842bd}&ID={$thisNode/@ID}&TemplateID={fdd5b354-31e4-40e8-8e66-b6e005c60f28}">Initial Workflow</a>
3. User conditional formatting, hide this hyperlink when current content type is not the content type the workflow associated to.
Best regards,
EmirEmir Liu
TechNet Community Support
- Marcado como respuesta Emir LiuMicrosoft Contingent Staff, Moderator lunes, 07 de mayo de 2012 2:51

