Skip to main content

Hello,


I need to dynamically find the URL of a current item in a document library for use in a Web Request. 

 

The problem is that I am using Office 365, so {Workflow Context: Current Item URL} brings back the URL in this format:

psitename]/]listname]/Forms/DispForm.aspx?ID=D#]


I need it in the format:

psitename]/]listname]/]FileName].csv


This is the format that on-prem uses for {Workflow Context: Item URL}, but I don't see any out of the box equivalent. Is there a way to pull the URL in the latter format easily? 

 

For bigger picture on what I am trying to achieve... Vadim Tabakman has a great tutorial for parsing a CSV and converting it to SharePoint list itms, but I'm in O365 rather than SP 2013, and am finding the discrepancy in Current Item URL vs. Item URL is causing me issues.

 

Thanks!

You need to use the "Encoded absolute URL"


Write to log action:

It gives the full filename as a result.

This is a workflow in a document library in Office 365 / SharePoint Online.


Thank you Arne!  I had created a workaround to get the file name but this is cleaner.  I appreciate the response!


Reply