2

I need to give the link for current item url in workflow to open a form.

For that I have used

[%Workflow Context:Current Item URL%]?OpenIn=Browser

But this is not working in SharePoint-2013.

5
  • Are you using SPD2013, and in that platform type of 2013? – Asad Refai Dec 4 '15 at 6:52
  • Yes, I'm using SPD 2013 and in that 2013 platform – KumarV Dec 4 '15 at 6:54
  • Are you trying to send the link of current item in an email? – Asad Refai Dec 4 '15 at 6:57
  • Is that a library or list? – Atish Dipongkor - MVP Dec 4 '15 at 6:57
  • Yes.. I have to send current item link in an email for approval process and it is library – KumarV Dec 4 '15 at 6:58
4

For library, Document URL can be found in

EncodedAbsUrl

Action should look like

Set Variable: url to Current Item:Encoded Absolute URL
  1. Create a new variable
  2. Data source: Current Item
  3. Field from source: Encoded Absolute URL

enter image description here

3
1

This is what worked for me better while sending email address:

Under workflow: Select Workflow Context, then current item URL. Shown below

****[%Workflow Context:Current Item URL%]****
1
  • 1
    Be careful when using [%Workflow Context:Current Item URL%] The code above gives you the absolute decoded url. For example: if your newly added document has a name of "Document Name With Spaces.doc", it would have been translated as "your.domain.com/subsite/DocumentLibrary/Folder/Document Name With Spaces.doc" You see that link generated maps to somewhere else than it supposed to.. – mit4dev Dec 20 '17 at 12:20
0

Building on the use of

Workflow Context: current item URL described above....

When adding the lookup, first add "<" then select "Current Item URL" under "Workflow Context", and follow it with ">".

This will ensure there are no breaks in the link described by Irfan.

Line should look like this

<[%Workflow Context:Current Item URL%]>

0

What produced the right working URL for my current document library file item in a SharePoint 2013 workflow is:

[%Current Item:Encoded Absolute URL%]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.