Hi Sean,
Would something like this help?
// To log a staging task for updating a document:
var document = DocumentHelper.GetDocuments()
.WhereEquals(nameof(TreeNode.DocumentID), 8)
.TopN(1)
.FirstOrDefault();
DocumentSynchronizationHelper.LogDocumentChange(document, TaskTypeEnum.UpdateDocument, Tree);
// To log a staging task for updating an object:
var formInfo = BizFormInfoProvider.GetBizForms()
.TopN(1)
.FirstOrDefault();
SynchronizationHelper.LogObjectChange(formInfo, TaskTypeEnum.UpdateObject);
I've tested this locally and it creates the correct staging task - I don't have a target server setup so I can't test actually staging the tasks.