Sorry for late reply.
I was already using getassignments, but scanning all of events actions for possible switch container recursively on a large project took tremendous amount of time. I ednded up with narrowing my search to just events that contain a switch container and I was able to do it with information provided by generated topic. Thanks.