Friday, August 15, 2014

SharePoint workflow variable [Current Item:Path]

I needed some documentation what values the [Current Item:Path] workflow variable contains. I couldn't find any examples online, but wondered if this variable contained a server relative URL or a site collection relative URL to the path of an item.

It turned out this path is server relative. Some examples:

http://site.local/Shared Documents/test.docx
/Shared Documents
http://site.local/Shared Documents/Folder/test.docx
/Shared Documents/Folder
http://site.local/sites/test/Shared Documents/test.docx
/sites/test/Shared Documents
http://site.local/sites/test/Shared Documents/Folder/test.docx
/sites/test/Shared Documents/Folder

No comments: