Hi,
I checked the source code and in case you use method:
DocumentHelper.InsertDocument(node, parentNode, tree);the change should be synchronized, i.e. the task should be created. In the InsertDocument method implementation is a line:
// Log synchronization task
LogDocumentChange(node, TaskTypeEnum.CreateDocument, tree);It will create UpdateDoc task. In case you prefer to create CreateDoc, please set AllowAsyncActions in TreeProvider object to false.
In case you need to use API to create custom tasks, please take a look here:
Staging API examplesHere is a code sample which runs synchronization:
// Log the synchronization tasks
List<ISynchronizationTask> tasks = DocumentSynchronizationHelper.LogDocumentChange(node, TaskTypeEnum.UpdateDocument, true, false, tree, si.ServerID, null, false);
foreach (TaskInfo ti in tasks)
{
// Run the synchronization
StagingHelper.RunSynchronization(ti.TaskID, si.ServerID);
}
Best regards,
Ivana Tomanickova