DocStar "unauthorised" in BPM

I’m trying to automatically upload a PDF to DocStar that’s retrieved as part of a third-party process, from within a BPM or Function.

I’m not very familiar with DocStar and the trace I did on manually adding an attachment looks as though it’s missing some important elements – it jumps straight from DocStarFileExistsForTableRow to adding an attachment, even though nothing is returned with details for any attachment.

If I use DocStarUploadFile at that point, it always returns 401 unauthorised. Presumably I’m missing something about the way these Attachment BO methods for DocStar are supposed to be used?

In case anyone else searches for this, the ECM Attachment Type has to be set to “File Transfer Using Service” for DocStarUploadFile to be used or work. If it’s set to “Client System Direct Copy” then it won’t.

1 Like