public display Description currentStep()
{
WorkflowTrackingTable trackingTable;
WorkflowTrackingStatusTable trackingStatusTable;
select RecId, User,Name, CreatedDateTime from trackingTable
order by CreatedDateTime desc where
trackingTable.TrackingType == WorkflowTrackingType::Creation &&
trackingTable.TrackingContext == WorkflowTrackingContext::Step
join trackingStatusTable
where trackingTable.WorkflowTrackingStatusTable == trackingStatusTable.RecId &&
trackingStatusTable.ContextRecId == this.RecId &&
trackingStatusTable.ContextTableId == this.TableId;
return trackingTable.Name;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter