Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Planner
    • Outlook
    • SharePoint
    • Teams
  • Triggers
  • Resources
  • ABOUT ME
  • Get help with your flow
Menu

Display SharePoint image in Power Apps mobile app without flow

Posted on July 2, 2023July 2, 2023 by Tom

“I need to display image from SharePoint library in the Power Apps mobile application, is there a better way than adding a flow?”


If you build not only flows but Power Apps too, you might notice some inconsistency between the app in browser and in mobile phone. One of them are multimedia stored in SharePoint. While the browser Power App shows all images, all videos and sound files, the mobile application doesn’t. If it’s stored in SharePoint you’re out of luck, all you can get from an image is the image thumbnail. That’s not really sufficient if somebody needs to read data, e.g. from receipts…

How do you display SharePoint images in the mobile app in a reasonable resolution?

Start from the image thumbnail

As already mentioned, you can get the image thumbnail. The best resolution that’s easily available is the large thumbnail, e.g.

LookUp(Documents, ID=2189).Thumbnail.Large

Such image will be visible in both, browser and mobile app, but it’s not very sharp. The large thumbnail resolution is 800×800 px as you can see in the thumbnail url.

Change the resolution

Yet since the resolution is defined in the thumbnail url, you can change it. Use the Power Apps Substitute(…) function to replace the width and height of the thumbnail, e.g. to 3200×3200 px.

Substitute(
    LookUp(
        Documents,
        ID = 2189
    ).Thumbnail.Large,
    "&width=800&height=800",
    "&width=3200&height=3200"
)

The difference in image sharpness is then clearly visible (much more in the app than on the screenshots below).

SharePoint image Power Apps

That’s it, one substitute instead of various flows that’ll show you the image.

Summary

While Power Automate is an amazing tool, it’s not always necessary to build a flow. As you can see in this article, if you want to display image from SharePoint in your Power Apps in a reasonable resolution, you don’t need a flow. All you need is a workaround directly in the Power Apps that’ll save you a ton of flow runs. Instead of running a flow for every image you want to show, you can take their thumbnail and increase the resolution.


Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

2 thoughts on “Display SharePoint image in Power Apps mobile app without flow”

  1. Danielx64 says:
    July 2, 2023 at 11:47 pm

    Hi there,

    Great blog post and good work around. Do you happen to know of a way of playing videos that are stored in a document library? I been able to deal with most file types including pdf, docs etc but not video files.

    Cheers

    Reply
    1. Tom says:
      August 12, 2023 at 11:24 pm

      Hello Danielx64,
      unfortunately I don’t. I tried to find one but I gave up, I’ll keep hoping that there’ll be some in the future.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Do you know what to do, but not how to do it?

Get The Ultimate Power Automate expressions cheat sheet and translate your thoughts into flows with ease!


There's also the HTTP requests to SharePoint cheat sheet to help you overcome limitations of some standard actions!

Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with 1000s of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2023 Let's POWER Automate | Theme by SuperbThemes