Popups: How do I close the specific popup instance inside a "On Execution" workflow?

I have a popup where in I have created an “On Execution” workflow. I want to to trigger the “Close this popup instance” but it is not available inside the “On Execution” workflow.

I need the “Close this popup instance” action specifically since I want to pass data back to the workflow that opened the popup after closing.

Close all popups” does not work here since:

  1. It will close all other instance of the popup type
  2. It does not allow passing data to the workflow that opened the popup (which is waiting for it to close to continue execution)

The popup components have a “Close this popup instance”. Not sure what your “On Execution” workflow is on, but you may be able to use that.