0
votes

I've configured a trigger on blob container change which should invoke a Function activity(HTTP POST), and I want to use this container name in the function itself(trigger container could be changed frequently, and I don't want to change function code). How can I pass it?

I found only an example for the copy activity https://docs.microsoft.com/en-us/azure/data-factory/how-to-create-event-trigger

1

1 Answers

0
votes

Based on the link you posted in your question,you could pass the value of folder path and file name to pipeline as parameters. @triggerBody().folderPath and @triggerBody().fileName could be configured in the parameters of pipeline.

enter image description here

For example:

enter image description here

Then if you want to get the container name ,you just need to split the folder path with / so that you could get the root path which is container name exactly.