How to display images within Power Apps from a SharePoint list?

This Power Apps tutorial will show you how to display images from a SharePoint list within Power Apps.

We recently received a request to display images from the SharePoint list within the Power Apps while working with the canvas apps.

There is a SharePoint list having an image field that displays the images of the respective product. Now, we want to display those images from the SharePoint list to Power Apps.

To meet this requirement, the following steps are:

Power Apps display images from a SharePoint list

Let us understand how to display images from a SharePoint list in the Power Apps canvas apps.

Requirement:

We have a SharePoint list named Products having an image-type column named Product Image along with different types of fields such as:

  • Product’s Title
  • Price (currency column)
  • Delivery date and order date (Date column)
  • Manufacturer (choice column)
  • Address (Multiline column)
PowerApps display image from SharePoint list
PowerApps display images from a SharePoint list

According to the requirements, we must display the images from the above SharePoint list in Power Apps canvas apps.

Display SharePoint images in Power Apps
Display SharePoint images in Power Apps

To display these SharePoint images within the Power Apps canvas apps, the following steps are:

  • Create a blank canvas app in Power Apps. Go to Create > Blank app > Blank canvas app > Create for this.
  • It will generate a blank canvas app with an empty screen. Connect the SharePoint list to the canvas app at this point. For this, go to Add Data > SharePoint > Select a list > Connect.
  • On the blank screen, add a horizontal gallery and connect the gallery with the SharePoint list i.e., Products.
  • Set the gallery’s Layout to Title and Subtitle. This will display the first two fields of the respective images from the SharePoint list, – i.e. product title and price.
Displaying SharePoint list image within the Power Apps
Displaying SharePoint list image within the Power Apps
  • You can display more information about the product by adding the data label controls to the horizontal gallery and inserting the expression on the data label’s Text property below to display the various data.
Text = ThisItem.Manufacturer.Value   //to display manufacturer value 
Text = ThisItem.'Order Date'              //to display order date value
Text = ThisItem.'Deliver Date'           //to display deliver date value

Now, we can see all the details are displayed in the Power Apps horizontal gallery as shown below:

Power Apps display Image from SharePoint list
Power Apps display Images from a SharePoint list

This is how to display images from the SharePoint list to the Power Apps gallery.

See also  Power Automate Read Excel File From SharePoint

Display images within the Power Apps vertical gallery from a SharePoint list

Similarly, we can display SharePoint list images via a Power Apps vertical gallery. For this, we can use a vertical gallery instead of a horizontal gallery.

(Follow the above procedure to display the SharePoint data in the Power Apps vertical gallery)

Displaying SharePoint list image within the PowerApps
Displaying SharePoint list image within the PowerApps

Note: The Power Apps data table doesn’t allow displaying the SharePoint list images. But we can use any gallery to display the images within the Power Apps from a data source.

Recently, we published an article on How to use Power Apps Image control that covers how to use an image control based on different scenarios within the Power Apps.

Conclusion

from this Power Apps tutorial, we discussed how to display images from a SharePoint list to Power Apps horizontal gallery and vertical gallery.

You may like the following Power Apps tutorials:

>