locked
How to link a specific workflow to a custom button? RRS feed

  • Question

  • I want to add a custom button in the DispForm to run a specific workflow which as same as if you click "Workflow" button from the FormToolBar, then select specific workflow, then click "Start" button.

     

    Any advise?
    Thank you.

    • Moved by Mike Walsh FIN Thursday, September 22, 2011 9:52 AM wf related (From:SharePoint - Design and Customization (pre-SharePoint 2010))
    Thursday, September 22, 2011 9:45 AM

Answers

All replies

  • Ok this is not a great solutions, but might work for you.
    I began to understand that for sharepoint one needs to think in workarounds
    You can edit any page (on the right a bit on top edit page) import a webpart called ( content editor web part )
    In it you cannt create buttons but you can import images, then add the url to the image that looks like a button..

    What is nice about this the content editor webpart also allows for plain text so you can explain on the page where the button is for.
    Notice also on this part there is a html editor icon ( not all html code is accepted (no buttons etc). but a lot is accepted tables etc..))

    This is what i did today for about the same problem like you have, but i'm no expert.
    Thursday, September 22, 2011 3:09 PM
  • I want created a link to start a workflow, what should i put at 'ID='?

    both {itemid} , {itemid:id} are failed.

    http://servername/Workflows/SyncDelete/SyncDelete.aspx?List=7b012c3a-032f-4593-8871-be4109b1804c&ID=11&TemplateID={f18aafe8-007a-495b-8fb9-8498b21930d7}&Source=http%3A%2F%2Frsweb%2FLists%2FRoom5%2Fcalendar%2Easpx

    Friday, September 23, 2011 9:14 AM
  • Monday, September 26, 2011 2:05 AM
  • I have a hyperlink at DispForm now. It will load below page.
    http://servername/Workflows/SyncDel5a/SyncDel5a.aspx?List=2f891869-16d8-4730-a94b-af80bcb70e5d&ID=25&TemplateID={96db947d-615b-4be1-a356-e1edd6672ae1}&Source=http%3A%2F%2Frsweb%2FLists%2FRooma%2Fcalendara%2Easpx

    But i still need to click "Start" Button to run the workflow, any idea can i run the workflow directly after click the hyperlink?

     

    Tuesday, September 27, 2011 6:59 PM
  • There are 2 controls in SP Designer: Action Button an Action hyperlink. If you choose custom actions you will be able to initiate a workflow.
    http://alecpojidaev.wordpress.com
    • Marked as answer by Pengyu Zhao Friday, September 30, 2011 1:17 AM
    Tuesday, September 27, 2011 9:17 PM