Forum Discussion

JaneLHunt's avatar
JaneLHunt
Icon for Advocate II rankAdvocate II
2 days ago
Solved

Fabric Data Factory system variable pipeline().triggertype

Hello I would be grateful if someone from Microsoft would clarify whether, for Fabric Pipelines, the system variable pipeline.triggertype() is officially supported. Our pipeline is set up to be tri...
  • v-achippa's avatar
    2 days ago

    Hi JaneLHunt​,

    Thank you for reaching out to Microsoft Fabric Community.

    Currently @pipeline().TriggerType is available in Azure Data Factory, but it is not listed as a supported system variable for Fabric Data Factory pipelines. That is why its returned value should not be relied upon to distinguish between manual and scheduled runs.

    As a workaround, create a pipeline parameter such as RunType with Manual as its default value. In the schedule configuration, pass  Scheduled  to this parameter, and access it using: @pipeline().parameters.RunType

    Fabric supports passing parameter values from each schedule, so this is currently the most reliable way to distinguish manual and scheduled runs.

    Thanks and regards,
    Anjan Kumar Chippa