Hi, 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?
Need advise.
Workflow::activateFromWorkflowType(workflowtypestr(TSDocumentTemplate), tsTimesheetTable.RecId, /Auto submitted by timesheet uploader./, NoYes::No, curUserId());
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.