Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did 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

Reply
wanwar
Helper I
Helper I

Lakehouse File name

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

1 ACCEPTED SOLUTION
v-anbandari
Community Support
Community Support

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.

View solution in original post

1 REPLY 1
v-anbandari
Community Support
Community Support

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.

Helpful resources

Announcements
April Fabric Update Carousel

Fabric Monthly Update - April 2026

Check out the April 2026 Fabric update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.