0
votes

I am using the Azure Logic Apps List Blobs action: enter image description here

I want to know if I can add a query filter to this or do I have to list all the blobs and then filter as this will be more expensive.

2
There is no code to query through them, which means they can't be problematically queried directly. So, even if there were a way to query in logic apps, i don't think adding a filter later is going be that expensive comparatively.Neville Nazerane

2 Answers

2
votes

I don't think this is possible yet. What kind of filters are you trying to use?

Would it be possible to add prefixes to your blob file names and create a logical folder structure within your Blob container?

For instance, if you named your blobs as:

 folder1/blobA.json
 folder1/blobB.json
 folder1/blobC.json
 folder2/blobZ.json
 folder2/blobY.json

This would create a logical folder structure on your Blob container with two folders. This way, the Logic App connector could list only blobs under a particular folder, i.e. with the prefix "folder1\" in the name.

In the picture below, temp is the container name and myfolder/ is the blob name prefix.

enter image description here

HTH.

0
votes

Unfortunately, this does not seem to have a direct way to achieve. Pretty much all the connectors I've dealt with are not very flexible. :(

I could not find any wildcards related feature requests to Logic Apps.

From the official documentation:

List Blobs