K2SPSList Authentication Problems

  • 24 March 2005
  • 1 reply
  • 0 views

Badge +8
The operation on SharePoint will be made using the context in which the K2 Server runs. Ensure that you are running your K2 Server service as a valid domain account. This account will also require the applicable permissions on your SharePoint site/document library.

1 reply

Badge +1
Hi,

I have a workflow that creates a Document Workspace and uploads a document into that document workspace. At the end of the process I would like to take the same document and upload (declare as record in Meridio).

The problem I m experiences is I use the K2SPSList.GetDocumentFromURL() method. The error I receive is 40# Authentication Failed.

The same user that created the document workspace and uploaded the document is downloading the document.

A code snippet follows and help would be appreciated.
The URL s are accurate I have tested them IE and I can download the document.

if (!SpsList.GetDocumentFromUrl(spsSiteURL, CurrentDocumentLibraryAndDocument, ref oByte, ref ErrorMessage))
{
// Error Occurred in GetDocument - Raise Error
throw (new System.Exception(ErrorMessage));
}


Also if there is any documentation on K2SPSList that would be great.

Thanks for you help in advance.

Reply