I am trying to submit time sheets to workflow using the below line of code. but it stays in a draft state after running the line of code.
am I missing something?
Workflow::activateFromWorkflowType(workflowtypestr(TSDocumentTemplate), tsTimesheetTable.RecId, /Auto submitted by timesheet uploader./, NoYes::No, curUserId());


Report
All responses (
Answers (