RecId selectRecId;
PurchTable purchTable;
//Multiple selection
for(selectRecId = purchtable_ds.getFirst(true).RecId;selectRecId;selectRecId=purchtable_ds.getNext().RecId)
{
comment = strFmt("Workflow submission comment for Purchase order %1",purchTable.PurchId);
purchTable = PurchTable::findRecId(selectRecId, true);
ttsbegin;
purchTable.submitToWorkflow(workflowTypeStr(PurchTableTemplate), comment, false);
ttscommit;
}
André Arnaud de Cal... 291,642 Super User 2024 Season 2
Martin Dráb 230,371 Most Valuable Professional
nmaenpaa 101,156