PublicAPI.Docflow.Document.Move ELMA API Documentation
Move the document to another folder
 
 
Syntax

public void Move(
	Document document,
	Folder newFolder,
	Nullable<bool> toEvent
)

Parameters

document
Type: Document
Document which needs to be moved. Object. Access path: PublicAPI.Docflow.Document
newFolder
Type: Folder
Folder for the document. Object. Access path: PublicAPI.Docflow.Folder
toEvent
Type: System Nullable Boolean 
Parameter, which indicates, whether this action will be recorded to the history
Examples

//load the document by ID 
var doc = PublicAPI.Docflow.Document.Load(3);
//load the folder by ID 
var newFolder = PublicAPI.Docflow.Folder.Load(3);
var toEvent = true;

//move the folder
PublicAPI.Docflow.Document.Move(doc, newFolder, toEvent);
See Also