Skip to main content
Community site session details

Community site session details

Session Id : xLJN9RDxXOf0cKU3zQUvhr
Power Apps - Microsoft Dataverse
Answered

PowerApps Image

Like (0) ShareShare
ReportReport
Posted on 5 Feb 2024 08:16:45 by 765

Hello Everyone,

 

I would like to use the expression below and be able to select your own image from you PC and that selected image to still be visible when I use the app again.

 

User().Image

 

I hope anyone can help.

 

@WarrenBelz   @ANB   @mmbr1606   @Amik   @timl 

Categories:
  • Caleb62881177 Profile Picture
    765 on 09 Feb 2024 at 11:28:30
    Re: PowerApps Image

    Hi @EricRegnier , Thank you for your patience and help in resolving this issue.

  • Caleb62881177 Profile Picture
    765 on 09 Feb 2024 at 10:44:44
    Re: PowerApps Image

    @EricRegnier 

     

    My button's expression

    button.jpg

     

    My "UploadedImage1" expression

    image.jpg

     

    I hope this helps

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 09 Feb 2024 at 10:38:30
    Re: PowerApps Image

    Are you getting an error, if so can you share? Also screenshots of the expressions in Maker portal will help to investigate. I've tried my end and and it works perfectly....

  • Caleb62881177 Profile Picture
    765 on 09 Feb 2024 at 10:23:38
    Re: PowerApps Image

    @EricRegnier 

    I directly set "Office365Users.MyProfileV2().mail" in the Patch formula, but when I upload an image I don't see it on the Image control and the Patch Formula doesn't upload the image to SharePoint nor the mail of the user.

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 09 Feb 2024 at 10:07:28
    Re: PowerApps Image

    Try to set it directly, in design mode if you don't explicitly call the OnStart (right click on the App and run OnStart) it won't run.

  • Caleb62881177 Profile Picture
    765 on 09 Feb 2024 at 10:06:11
    Re: PowerApps Image

    Hi @EricRegnier, Sorry, "currUsers.mail" is "Office365Users.MyProfileV2().mail". "currUsers.mail" is a variable I use on the OnStart on the app.

  • EricRegnier Profile Picture
    8,714 Most Valuable Professional on 09 Feb 2024 at 10:04:03
    Re: PowerApps Image

    It's looks ok. My only question is what is "currUsers.mail" in your first expression? Shouldn't this be "Office365Users.MyProfileV2().mail"?

  • Caleb62881177 Profile Picture
    765 on 09 Feb 2024 at 09:13:49
    Re: PowerApps Image

    Hi @EricRegnier , I am not sure if I am doing something wrong.

     

    I used the Upload image control and a separate to use the Patch with.

     

    UploadedImage1 Image property has this formula

    I created tow columns on SharePoint called Email Image (Single Line Text) and Profile Image (Image)

    LookUp(SPList, 'Email Image' = currUsers.mail).'Profile Image'

    On the button I use this formula

    Patch(SPList, LookUp(SPList, 'Email Image' = Office365Users.MyProfileV2().mail), { 'Profile Image': UploadedImage1.Image})

     

  • Verified answer
    EricRegnier Profile Picture
    8,714 Most Valuable Professional on 08 Feb 2024 at 19:36:20
    Re: PowerApps Image

    Thanks for clarifying, you wouldn't be able to use the Office365Users object to retrieve the image. You'll have to use the SharePoint connector connected to your SharePoint list. Add an Image column to the SharePoint list. And you'll be able to update the image directly. Here's an example of how expression to save the Image to a SharePoint list. The list would be the list of images, a row for each user:

    Patch(MyList, LookUp(MyList, Email = "email@email.com"), { ImageColumn: UploadedImage1.Image})

    Then you set the "Image" property of the Image control with a similar expression:

    LookUp(MyList, Email = "email@email.com").ImageColumn

    Hope this helps!

  • Caleb62881177 Profile Picture
    765 on 08 Feb 2024 at 18:12:53
    Re: PowerApps Image

    Hi @EricRegnier , I mean that when the user uses the Add picture tool that is specific image they used will be saved in a SharePoint list and will be visible when they close and open the app again. 

    Office365Users.MyProfileV2().displayName was just a reference to displayName that user uploaded image might link to on SharePoint.

     

    I hope that helps.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics

Loading complete