Get URL of a File Uploaded using Sharepoint Documents Activity and Pass URL to Infopath Form

  • 15 April 2008
  • 2 replies
  • 0 views

Badge +9

I have a flow that is started when a user attaches a document to an Infopath form, and then submits the form.

I would like to then move the attached document to a document library (I have achieved this using a Sharepoint Documents activity).

What is the best way of getting the URL for the uploaded document in its new location in the Sharepoint document library?

Thanks in advance for any assistance!


2 replies

Badge +2
The only way i know to achieve this, is reading the base64 field in InfoPath form that contains the file, and get the filename. Afterwards, merge this filename with the location you used in sharepoint documents activity. eg: SiteURL+library+filename.
Badge +7

If the document is uploaded to the infopath form you can decode the filename from the binary, see http://blog.mgallen.com/?p=124 for an example.


The example uses the DOM from Office 2003, however it should work in Office 2007 in Office 2003 compatibility mode.


Martin

Reply