So I opened SharePoint Designer and start creating the workflow associated to the list.
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
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
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