Posts

Showing posts with the label Workflow

Workflow last approver by using po recId

 public UserId getWFLastApprover(PurchPurchaseOrderHeader _purchaseOrderHeader)     {         WorkflowTrackingTable           workflowTrackingTable;         WorkflowTrackingStatusTable     workflowTrackingStatusTable;         PurchTable purchTable =  PurchTable::find(_purchaseOrderHeader.PurchId);         select firstonly RecId from workflowTrackingStatusTable             where                 workflowTrackingStatusTable.ContextTableId      == purchTable.TableId                && workflowTrackingStatusTable.ContextRecId        == purchTable.RecId             join firstonly user from workflowTrackingTable order by CreatedDateTime desc         ...