Replace \ Delegate Workflow User

With this piece of Code we can delegate Workflow from One User to another Using X++ Here I am taking example of Purchase Requistion static void waj_replaceWorkflowUser(Args _args) { workflowtrackingstatustable workflowtrackingstatustable; workflowtrackingtable workflowtrackingtable; PurchReqTable purchreqTable; WorkflowWorkItemTable workItem; WorkflowStepTable workFlowStepTableSequence, workFlowStepTable; WORKFLOWTRACKINGCOMMENTTABLE WORKFLOWTRACKINGCOMMENTTABLE; purchreqTable = purchreqTable::findPurchReqId(‘PR-010454’); select workItem order by RecId desc where workItem.RefTableId == tableNum(purchReqTable) […]