Documentation

AddDocumentToHistory

integer
public static function CBPDocument::AddDocumentToHistory(
 array documentId,
 string name,
 integer userId
);

This method adds current version of document into history.

Note: This method receives an array of configuration parameters and generates scripts, required to show file dialog. Static method.

Method parameters

ParameterDescription
documentIdDocument ID, specified as an array(module_code, document_class, document_identifier_in_module)
nameName of record in history
userIdUser ID, on behalf of which the record is made

Returned value

Returns a record ID in history or returns "false" in case of an error.



© «Bitrix24», 2001-2024