AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocumentManager.AddDocuments Method

Adds a document to the portal.

void AddDocuments(
int documentID,
int[] destinationFolderIDs
);

#### Parameters

documentID
  The ID of the document to add.
destinationFolderIDs
  The IDs of the folders to which to add the document.

#### Remarks

Note: This does not duplicate the document file itself, only links to the document in the portal.
Note: Since this method performs multiple operations, any exception thrown relating to these will have details of each failure.

#### Exceptions

Exception Type | Condition
--- | ---
PortalException | The operation resulted in an error in the portal.
SoapException | There was a communication problem during the execution of the remote method call.

#### See Also

IDocumentManager Interface | Plumtree.Remote.PRC Namespace