SharePoint start Workflow from a Dynamic Hyperlink in a list

Ever wanted to start a Workflow from a Hyperlink in a list, that is filled dynamically with the URL and the corresponding ID of the ITEM.

Ok let’s go

Op SharePoint Designer and go the list you want it to happen. Next open the VIEW where you want to add the Hyperlink Column.

image

Go to the Columns section and right click the first column, and select Insert to the Left.

image

Next make sure you have the SP Toolbox available if not; Go to Tasks Panes and Select Toolbox. And Drag & Drop a LinkButton in the new column.

imageimage

The code will look as follows

<asp:LinkButton runat=”server” id=”LinkButton1{$ID}{generate-id()}”</asp:LinkButton>

Modify it to trigger the Workflow URL and parameter

Add the PostBackURL=” “ URL & Parameter

image

The Parameter is this case is = {$thisNode/@ID}

The result looks like this.

image

And works like this when clicking.

image

IMPORTANT :

If you embed the List View in another Page using insert WebParts .You need to add the custom column again in that page !! It will not be automatically added if you did the change in the original View.

Enjoy!

Advertisements

One Response to SharePoint start Workflow from a Dynamic Hyperlink in a list

  1. something is not working for me here

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: