ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Request] Retrieving blob list based on tags filter using procedure ListBlobs from ABS Blob Client codeunit

Open EvaCegeka opened this issue 3 years ago • 7 comments

Hello,

We are running into the following issue with codeunit 9053 ABS Blob Client.

We need to retrieve a list of blobs from Azure Blob Storage, but in the result set we only want to see blobs where one of the tags has a specific value. E.g. I only want to see the blobs in a specific container where tag X is set to Y, and not A B C etc.

Currently using procedure ListBlobs does not seem to allow for any filtering using ABS Optional Parameters. We need to be able to set this where clause that is necessary for filtering according to documentation here using ABS Blob Client and ABS Optional Parameters codeunits: image https://learn.microsoft.com/en-us/rest/api/storageservices/find-blobs-by-tags?tabs=azure-ad#remarks

Thank you in advance for your time.

EvaCegeka avatar Jun 08 '23 13:06 EvaCegeka

@EvaCegeka the system application is open for contribution. If you really need this then you should create a pull request to set an addtional optional paramter for filtering.

pri-kise avatar Jun 12 '23 06:06 pri-kise

Hi @pri-kise, another way to solve the problem is to create a new procedure in codeunit 9053 ABS Blob Client, called: Find Blobs by Tags in Container https://learn.microsoft.com/en-us/rest/api/storageservices/find-blobs-by-tags-container?tabs=azure-ad

It will require more code, but it is a more direct solution. Unless you think there is an issue with this, we will create a PR for this in the coming weeks.

GTimmers avatar Jul 06 '23 11:07 GTimmers

@GTimmers fell free to create a PR for this addition.

pri-kise avatar Jul 06 '23 12:07 pri-kise

@GTimmers fell free to create a PR for this addition.

https://github.com/microsoft/ALAppExtensions/pull/24253

GTimmers avatar Jul 31 '23 09:07 GTimmers

@GTimmers I've seen you PR, that adds a nice feature.

But this isn't for filtering on tags or did I miss something?

pri-kise avatar Jul 31 '23 11:07 pri-kise

@pri-kise You are right! We decided to retrieve the blobs from a certain specified folder and now also include the tags in the parameters. We can do some filtering on them and thats a good solution for us.

GTimmers avatar Jul 31 '23 12:07 GTimmers

If any work remains in this issue, feel free to create further pull requests addressing them.

JesperSchulz avatar Sep 12 '23 14:09 JesperSchulz