2

I have a quick question here.

How can identify the records that are related to a Approval Process. I fetched all the records of Process Instance but there I got Target Object ID.

I have three approval process on a object.Two of them have been deactivated. I have to find the Approval records that are link to these two approval process.

1

Use the below query to get the records for Obsolete Approval Process

Select TargetObjectId, Status, ProcessDefinitionId, LastActorId, IsDeleted, Id, ElapsedTimeInMinutes, ElapsedTimeInHours, ElapsedTimeInDays, CompletedDate From ProcessInstance p where ProcessDefinitionId IN ('Pass IDs of the Deactivated Approval Process here').

This will give you the ids of the records for these approval process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.