Find id of a triggered pipeline

Hi all,

I’m trying to build a small tool for tracking the progress of build pipelines from a local terminal, using a python script.However, our current build pipeline will a trigger secondary pipeline. I’m having difficulty to programmaticaly find the id of the pipeline that is triggered by initial pipeline. I can’t seem to find documentation on the subject. Has anybody got any insight that might help.