Possible to find the process id for a specific active process that is associated with a specific account?

Certified Senior Developer

I have 2 processes that run independently but are associated with the same 'account'. Users perform separate actions for this account and can, at any time, cancel the account. If a user cancels an account in one of the processes, is there a way for me to create a step that would cancel the other active process? I know there's a 'cancel process' smart service, but I would need to know the process id for the process that needed to be cancelled. Since they would both point to the same account, is there a way for me to find the process id for a specific active process that is associated with a specific account?

OriginalPostID-226952

OriginalPostID-226952

  Discussion posts and replies are publicly visible

Parents
  • @philb - Apologies if my comment has misled you. I am not implying that DB is faster than process report. But I am telling that if you try to fetch the process id(s) from process report then you have to formulate a logic with the filters to identify the process id(s) of the particular account which might be complicated. But when you store the process id(s) in the DB when you start an account then you know which processes to terminate which makes the job very easy and accurate and chance of error is reduced. Feel free to correct me if I am wrong.
Reply
  • @philb - Apologies if my comment has misled you. I am not implying that DB is faster than process report. But I am telling that if you try to fetch the process id(s) from process report then you have to formulate a logic with the filters to identify the process id(s) of the particular account which might be complicated. But when you store the process id(s) in the DB when you start an account then you know which processes to terminate which makes the job very easy and accurate and chance of error is reduced. Feel free to correct me if I am wrong.
Children
No Data