Hello,
I need to fetch the name of the "Step" of the workflow.
For example:
In my workflow, step1 : approved by teamlead (name of step)
step2: approved by manager (name of step)
so, I need to show the name i.e: approved by teamleader
can anyone help with the code and relation to acheive this?
Thankyou
AyuSri.
Hi Aayushii, I think you are referring to 'Name' field in WorkflowTrackingTable table. If yes, then you can leverage the below code to find the workflow approval step.
daxingwitheshant.blogspot.com/.../x-code-to-return-workflow-approver-name.html
Hello AyuSri,
You can use this to get the step.
Here, we try to get the current step of the workkflow during the approval process.
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; }
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156