Solved

Dynamically get Item URL in a workflow in O365

  • 23 January 2019
  • 2 replies
  • 114 views

Badge +2

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:

[sitename]/[listname]/Forms/DispForm.aspx?ID=[#]


I need it in the format:

[sitename]/[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!

icon

Best answer by arne_nostvik 29 January 2019, 15:05

View original

2 replies

Badge +3

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.

Badge +2

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

Reply