Message 1 of 2
Changing File Category when using AddUploadedFile() Method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How do I change the Category of a File respectively don't use the Default Category when I use the AddUploadedFile() Method?
This is the code I am using:
Sub Main
AddFile(oVaultConnection.WebServiceManager, vaultName, directoryId(0), filename & ".pdf", "this File was checked in automatically", System.DateTime.Now, Nothing, Nothing, Nothing, False, contentArrayPdf)
End Sub
Public Shared Function AddFile(mgr As WebServiceManager, vaultName As String, folderId As Long, fileName As String, comment As String, lastWrite As DateTime, _
associations As FileAssocParam(), bom As AWS.BOM, fileClassification As FileClassification, hidden As Boolean, fileContents As Byte()) As AWS.File
Dim uploadTicket As ByteArray = UploadFile(mgr, fileName, fileContents)
Dim addedFile As AWS.File = mgr.DocumentService.AddUploadedFile(folderId, fileName, comment, lastWrite, associations, bom, _
fileClassification, hidden, uploadTicket)
Return addedFile
End Function