I have a blob conteners with around 500 folders. There is picture in each folder.
I run an azure fonction which return 4 classes.
Now, i need to access to corresponding folder to display images insides.
Current workflow look horrible to me, I would like to know if there is easier way to do this
Azure function return classes C1 C2 C3 C4
go inside conteners
open folders C1 C2 C3 C4 and display images on a gallery
Code for C1
Set(uploaded_img_path;"goodimages/");; path to conteners
Set(img1_path;StockageBlobAzure.GetFileMetadataByPath(Concatenate(uploaded_img_path;Text(id1))).Id);; go inside C1 blob using Text(id) as reference for C1;
Set(img1_id;StockageBlobAzure.ListFolderV2(img1_path).value.Id);; Get ID of every picture inside C1 folder
Set(s;First(img1_id.Id).Id);; Get ID for only first picture and save it as a string
Collect(stp;StockageBlobAzure.GetFileContent(s)) upload image on my app
i'll have to do this for the 4 variable which will make the code hard to maintain.
I'm also looking for a better way to do this because i'll have to display (later) all the content of the folder (i'll use ForAll but i'll still have to code it 4 time for the 4 variables..)