Friday, 24 May 2013

SharePoint Designer - Send the URL of the current item with a workflow.


So I opened SharePoint Designer and start creating the workflow associated to the list.
image
image
As there is some Field from source related to current item URL I start using it
  • Encoded Absolute URL – this one should be the one to use
  • Server Relative URL
  • URL Path
image
Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
Encoded Absolute URL
http://webappurl/Lists/Demo/1_.000
Server Relative URL
/Lists/Demo/1_.000
URL Path
/Lists/Demo/1_.000

As you can see, the item URL is composed by an ID while it should be http://webappurl/Lists/Demo/dispform.aspx?id=[%Current Item:ID%]
So, to obtain the correct item URL, you must use the following Lookup
  • Data source: Workflow Context
  • Field from source: Current Item URL
image

If you want your workflow start automatically when item added in a list.

Note: When using a Document Library IT Give a directly on File(Document) Link.





No comments:

Post a Comment