WorkSiteImportDocumentToWorkSite Method (String, String, String, String, String, String, String, String)Mocom WorkSite Library API
Add a document to the connected database. If the document is added to a folder it will inherit both the security and profile information of the folder.

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
)

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.

Return Value

Type: WorkSiteDocument
A WorkSiteDocument object that contains the details of the imported file. Including ID and version number.
See Also

Reference