JDBC Driver for Veeva Vault

Build 22.0.8462

CreateDocument

Create a single document.

To find the API names of the Documents table, get the Description column for the table Documents:

SELECT Description FROM [sys_tablecolumns] WHERE TableName='Documents'

The Description column will contain the API names of the Documents table. Now, use these API names to update a document, for example:

EXEC CreateDocument File='C:/Users/Public/document1.docx', Type__v='Promotional Piece', Subtype__v='Advertisement'

Input

Name Type Required Accepts Input Streams Description
File String False False Optional. The filepath of the source document. For example, C:/Users/Public/Desktop/document.docx . The maximum allowed file size is 4GB.
Content String False True Optional. Alternative to File. The content of the source document as an InputStream object.
FileName String False False The file name including extension to be used for File or Content input. FileName is optional for File input, and required for Content input.
* String False False In the stored procedure's parameters, add the API name of any field values that are required to create a document.

Result Set Columns

Name Type Description
ResponseStatus String Whether the document was created successfully.
ResponseMessage String The message of the response.
Id String The Id of the document.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462