cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tamer66
Level: Powered On

show Image from Sharepoint List mapping to SQL DB column

Hi,

 

i have the following situation with no creative idea and hope anyone has me an tip

 

I fetch data from a azure sql db table in a powerapps gallery. Then i have a sharepoint list with some data

and a field called image and a field called title. In the sql DB i have a field title too and the data from this field ist equal with the Title Field in Sharepoint List.

 

Now i want show in my Gallery the fetched data from sql db and the image from a the sharepoint list with mapping

the fields "Title.

 

Is this possible? if yes how can i do this`?

 

i try it with a filter formula in the image controll but i think its not the right way

 

Thanks & greets

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: show Image from Sharepoint List mapping to SQL DB column

Hi @Tamer66 ,

Have you solved your problem?

Does the Title field in your SP List have Unique column value?

 

I assume that the Title field in your SP List have Unique column value, based on the needs that you mentioned, I think the LookUp function could achieve your needs.

Within your Gallery, set the Image property of the Image control to following:

LookUp('YourSPList', Title = ThisItem.Title, ImageFiled)

or

LookUp('YourSPList', Title = ThisItem.Title).ImageFiled

or

First(Filter('YourSPList', Title = ThisItem.Title)).ImageFiled

Please take a try with above solution, check if the issue is solved. If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
K-A-R-L
Level 10

Re: show Image from Sharepoint List mapping to SQL DB column

Hi @Tamer66 ,

 

Do you want to view the images on web only?

If YES,

On your gallery add the SQL Db as Items().

Then add a media inside the gallery and replace the Image() with:

 

Lookup(SPList, SPTitleColumn = ThisItem.Title, ImageColumn) //ThisItem.Title is SQL Title

 

If NO,

Please convert your image to URI.

 

More info here:

https://www.bruce365.com/2018/10/11/display-sharepoint-images-on-mobile-devices-in-a-canvas-powerapp...

 

----------------------------------------------------------------------------
Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.

 

Tamer66
Level: Powered On

Re: show Image from Sharepoint List mapping to SQL DB column

Hi @K-A-R-L 

 

very cool, thanks so much!

Community Support Team
Community Support Team

Re: show Image from Sharepoint List mapping to SQL DB column

Hi @Tamer66 ,

Have you solved your problem?

Does the Title field in your SP List have Unique column value?

 

I assume that the Title field in your SP List have Unique column value, based on the needs that you mentioned, I think the LookUp function could achieve your needs.

Within your Gallery, set the Image property of the Image control to following:

LookUp('YourSPList', Title = ThisItem.Title, ImageFiled)

or

LookUp('YourSPList', Title = ThisItem.Title).ImageFiled

or

First(Filter('YourSPList', Title = ThisItem.Title)).ImageFiled

Please take a try with above solution, check if the issue is solved. If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,770)