I'm trying to create this in an LWC and can't put together the right SOQL to grab all the data:
SELECT CreatedDate, StepStatus, OriginalActor.Name, Actor.Name, Comments from ProcessInstanceStep where ProcessInstance.TargetObjectId = :accountId
gets me just about everything except the first Step Name column.
I see there's a ProcessNodeName
field in ProcessInstanceNode
that seems to have what I'm after but I don't know how to join the two object together. I'm not sure if this is where I should be looking, however.