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!

Anonymous
Not applicable

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 Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,557)