cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
langsem
Post Patron
Post Patron

Filter images from azure

Hello I wonder how can I filter images from Azure blob storage and display them into gallery based on a Startswith(TextInput.Text) action ?  I  can manage to display all images in Azure blob, but i only want to display the images that starts with the text the user inserts into the textfield.

Thanks in advance

starts.png

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@langsem 

I believe your StartsWith is backward.

Filter(AzureBlobStorage.ListFolderV2("damages").value;StartsWith(Name; TextInput1.Text))

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

5 REPLIES 5
RandyHayes
Super User
Super User

@langsem 

What you are trying to do is implement search on the Blob storage, which doesn't really exist through the connector.

You will need to use the ListFolderV2 action on the connector to get a list of the blobs and then filter that result to get the ID or the path of the actual blob that matches your startswith criteria.

It's a few extra hoops to jump through, but it works.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hi already have this, but dont work 
have this on my items on gallerys : Filter(AzureBlobStorage.ListFolderV2("damages").value;StartsWith(TextInput1.Text; Name))


and this on the image : AzureBlobStorage.GetFileContent(ThisItem.Id)

But the image throws error "unvalid parameters" 

RandyHayes
Super User
Super User

@langsem 

I believe your StartsWith is backward.

Filter(AzureBlobStorage.ListFolderV2("damages").value;StartsWith(Name; TextInput1.Text))

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thanks!

tyler387_larson
Helper III
Helper III

I have been trying to Filter the azure storage blob but still having issues.  I have a screen with a textinput and gallery but the 

Filter(AzureBlobStorage.ListFolderV2("employees").value; StartsWith(Name, TextInput4.Text)) isn't working, what am i missing?
 
Thanks

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,614)