This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Using an activator to trigger a pipeline based on a new file created in the Lakehouse, the pipeline accepts a paramter for filename, in the pipeline i have added the folder in the File path and for the file name i want to use the parameter value thats coming from the activator but I can't seem the find a Tag to get just the file name to pass, i have tried __source and @__subject both are giving me full folder path so the pipeline fails with "Not found"
any ideas.
Thanks
Solved! Go to Solution.
Hi @wanwar ,
Thank you for reaching out to the Microsoft Fabric Community.
You can just take the file name from the trigger value by using this expression:
@last(split(triggerBody()?['__source'], '/'))
Here, triggerBody()?['__source'] gives the full path, then split breaks it using “/”, and last picks the final part which is the file name (like data.csv). Use this while passing the parameter to your pipeline so it only gets the file name.
Please refer to this for more details:
https://learn.microsoft.com/en-us/fabric/real-time-intelligence/data-activator/activator-trigger-mod...
If you need any additional assistance, feel free to reach out to us.
Thank You.
Hi @wanwar ,
Thank you for reaching out to the Microsoft Fabric Community.
You can just take the file name from the trigger value by using this expression:
@last(split(triggerBody()?['__source'], '/'))
Here, triggerBody()?['__source'] gives the full path, then split breaks it using “/”, and last picks the final part which is the file name (like data.csv). Use this while passing the parameter to your pipeline so it only gets the file name.
Please refer to this for more details:
https://learn.microsoft.com/en-us/fabric/real-time-intelligence/data-activator/activator-trigger-mod...
If you need any additional assistance, feel free to reach out to us.
Thank You.
Check out the April 2026 Fabric update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.