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
  • 0
    Certified Senior Developer
    No worries @sidhantb! Storing the process id(s) is my best option here. I'm using a basic query rule to locate the CDT that I'm already doing in the other process, but now I also have the processId of the process I need to cancel (if I need to cancel it). I agree that it makes the job easier and reduces the chance of error!
Reply
  • 0
    Certified Senior Developer
    No worries @sidhantb! Storing the process id(s) is my best option here. I'm using a basic query rule to locate the CDT that I'm already doing in the other process, but now I also have the processId of the process I need to cancel (if I need to cancel it). I agree that it makes the job easier and reduces the chance of error!
Children
No Data