The trigger definition contains reference to pipelines. The pipelines do not contain reference to trigger.
This one-directionality is so additional pipelines can be added to a trigger without re-publishing the pipeline. Indeed it is the trigger which calls the pipeline, not the pipeline calling the trigger.
In pipeline definition, each activity which uses a dataset with have, burried somewhere inside) a subobject like:
{
"referenceName": "MyAzureBlobDataset",
"type": "DatasetReference"
}
With such a pattern, we could write a regex expression to extract each instance from the pipeline definitions. I think the regex might be easier than trying to navigate all the JSON.
Does this help @Srikanth Vunyala ?