Start workflow OnClick event


Posted by Adam Reyes - Sep 3 ’14 at 04:20

I created a form where I created a button on the Display Form that needs to start a workflow but I'm having trouble building a url that pulls in the item ID.  What can I use in FormsDesigner or Javascript that will pull in the correct ID then launch the workflow?  I'm currently using this:'{cb84a83a-dd06-4190-9471-ddec67a0465c}&ID=1388&ItemGuid={03607538-5743-46AE-A792-A453F0D1E3D8}&TemplateID={e6fa6347-030a-4403-a77f-44d18cb059de}&Source=https%3A%2F%2Fwww%2Esomesite%2Ecom%2FLists%2FDisputes%2FDisputes%2Easpx','_blank');


I attempted to use the following but could not get it to pull in the ID:

  • &ID={ID}
  • &ID=[ID]
  • &ID=('ID')
  • &ID={@ID}
  • Dmitry Kozlov
    Dmitry Kozlov
    Member for: 9 years 8 months 16 days
    #1 by Dmitry Kozlov Sep 4 ’14 at 03:07

    Hello Adam,

    Please, try the following code:'{cb84a83a-dd06-4190-9471-ddec67a0465c}&ID=' + GetUrlKeyValue('ID') + '&ItemGuid={03607538-5743-46AE-A792-A453F0D1E3D8}&TemplateID={e6fa6347-030a-4403-a77f-44d18cb059de}&Source=https%3A%2F%2Fwww%2Esomesite%2Ecom%2FLists%2FDisputes%2FDisputes%2Easpx','_blank');

  • Adam Reyes
    Adam Reyes
    Member for: 9 years 2 months 7 days
    #2 by Adam Reyes Sep 4 ’14 at 12:21

    [#1]: That worked!  Dmitry THANK YOU!  You are the man!

  • mac_xpert
    Member for: 8 years 8 months 19 days
    #3 by mac_xpert Jun 15 ’15 at 10:01

    Please can you provide an example of how to get this code? I'd like to run a sharepoint 2013 workflow from a button in sharepoint designer display form, but can't figure it out.


    Many thanks!

  • Dmitry Kozlov
    Dmitry Kozlov
    Member for: 9 years 8 months 16 days
    #4 by Dmitry Kozlov Jun 16 ’15 at 11:09

    [#3]: Hi,

    There are a lot of samples on how to start a workflow via JavaScript:

    So, you only need to insert the correct code into OnClick property of the HyperLink control. Our support team can help you with the task. It will take 200 support minutes.

  • seoexpert
    Member for: 8 months 14 days
    #5 by seoexpert Mar 30 ’23 at 08:37

    The Josh Building's unique design is a great example of how buildings can reflect the culture and values of a community.

  • gernauld
    Member for: 11 months 25 days
    #6 by gernauld Apr 4 ’23 at 02:54

    When it comes to choosing the perfect limo for your event, there are a few things to consider. Whether you're planning a wedding, prom, or corporate event, selecting the right limo rental Houston can make all the difference in the success of your occasion.

  • peter0900
    Member for: 6 months 29 days
    #7 by peter0900 Apr 6 ’23 at 05:31

    Open a unique aspx page when your web part's button is clicked. This ASP page performs the same functions as a workflow initiation form. It would be best if you took every.
    Best Garage Door Repair Company in USA

  • JoeLie123
    Member for: 2 months 8 days
    #8 by JoeLie123 Apr 19 ’23 at 12:48

    When starting a workflow OnClick event, planning out your research beforehand is essential. Research reports should be well organized and include relevant information. Some tips for writing research reports include: having a clear objective, gathering accurate data, developing a logical structure, and proofreading your work. It is also essential to remain organized and create a timeline to ensure all tasks are completed on time.

  • Udaipurescort7
    Member for: 2 months 26 days
    #9 by Udaipurescort7 Apr 24 ’23 at 12:45

    Welcome To Sexy Call Girls Service in Udaipur

    Welcome to Udaipur . In this escort directory section, you find Udaipur escorts. Euro Girls Escort is the most trusted escort directory and one of the biggest Indian escort directories. All content and photos are regularly checked and updated with real photos. This makes sure, that all escort Ads are always up to date and will bring you the best experience.
Displaying 1 to 9 of 9 messages