Retrieve File from UNC and Upload to SharePoint

  • 8 March 2015
  • 1 reply
  • 0 views

Badge +6

Hi all -

 

I have a usage question I can't seem to figure out.  Within K2 Studio, how would you retrieve a file from a UNC share and upload it to a SharePoint SmartObject using the GetFileFromLocation and GetFileFromContents inline functions?

 

Using GetFileFromLocation, I am able to attach the file to an email event, however, my SmartObject upload event using eitehr GetFileFromLocation or GetFileFromContents is failing with a base-64 error.  I suspect I may just not be using the functions correctly.


1 reply

Badge +6

I worked with K2 Support and they recommended I use the SharePoint Documents wizard rather than doing the direct SharePoint SmartObject call.  In this case, that works for me, so I adopted it.  It appears there may be some sort of data cleansing or preparation that wizard handles on the document upload that may have been causing my error.

 

Reply