Add a document to the connected database.
Namespace: Mocom_WorkSite_Library
Assembly: Mocom WorkSite Library (in Mocom WorkSite Library.dll) Version: 1.0.8.0 (1.0.8)
Syntax
public WorkSiteDocument ImportDocumentToWorkSite( string fileName, string author, string documentOperator, string documentClass, string description, string client, string matter, string folderObjectId, WorkSiteDocumentInheritanceOptions options )
Parameters
- fileName
- Type: SystemString
The path to the file to be imported. - author
- Type: SystemString
The name of the WorkSite user who is the author of the document. - documentOperator
- Type: SystemString
The name of the WorkSite user who is the operator of the document. - documentClass
- Type: SystemString
The WorkSite class for the document. - description
- Type: SystemString
A description of the document. - client
- Type: SystemString
The Client or Custom Field 1 entry for the document. This value must already exist in the WorkSite lookup table. - matter
- Type: SystemString
The Matter or Custom Field 2 entry for Client/Custom Field 1. This value must already exist in the WorkSite lookup table. - folderObjectId
- Type: SystemString
The object Id of the WorkSite folder to import into. Can be left blank if no folder is required. - options
- Type: Mocom_WorkSite_LibraryWorkSiteDocumentInheritanceOptions
The WorkSiteDocumentInheritanceOptions for the document.
Return Value
Type: WorkSiteDocumentA WorkSiteDocument object that contains the details of the imported file. Including ID and version number.
See Also