web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How I get an "Add Pict...
Power Apps
Unanswered

How I get an "Add Picture With Image" button to work?

(0) ShareShare
ReportReport
Posted on by 8
I'm very new to Power Apps. I'm trying to populate a screen with data from a collection variable. The picker button works for the most part. I want to load the Image with the image in the collection. I tried this:
If( Not IsBlank(AddMediaButton1.Media), AddMediaButton1.Media, Not IsBlank(StepsView.Selected.Photo),StepsView.Selected.Photo, SampleImage)
This has an error that the statement is not returning an Image. However, these variations, which don't work, don't have errors:
If( Not IsBlank(AddMediaButton1.Media), AddMediaButton1.Media, SampleImage) // No Photo
If(  Not IsBlank(StepsView.Selected.Photo),StepsView.Selected.Photo, SampleImage) // No Media
I have no control of the Button.Media. I can't set it, I can "Reset" it. Can I change "Photo" to something compatible with Media?
Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at
    hey
     
     
     
    can u try to use this:
    If(
        Not IsBlank(AddMediaButton1.Media),
        AddMediaButton1.Media,
        Not IsBlank(StepsView.Selected.Photo),
        StepsView.Selected.Photo,
        SampleImage
    )
    
    if it worked please mark my answer as verified,
     
     
    cheers
  • RM-13111543-0 Profile Picture
    8 on at
    Your solution likes a lot like the original. The error on both is:
    Expected Image value.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard