Makes complete sense. So - you are using SharePoint Online, which I should have noticed right off - and that means this approach will not work for you. That's ok! There are other options! But this is a list form, a browser form, and SharePoint Online is not going to let you use the REST API (either the old or the new version) from InfoPath. I'd suggest you create a new data connection in your form, using a normal list data connection, to the library. Don't run the query on load. Make sure to include the columns you need (like Title) as well as a few extra that we can use for "helpers" - also be sure to include the list item ID. Then, once you've done that, attach your form to a new reply and I'll set it up for you so you can get those links.... I think the Title field will have the name of the file, and we can just use a concat statement to glue that together with your URL to create the link
Hilary Stoupa
