cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JB0007
Helper V
Helper V

Save image in SharePoint List

Hi Power Apps community,

 

I am trying to create an App that permits users to upload images in a SharePoint List. I can only find videos and articles about how to upload images in a SharePoint Library or capture pictures with the app and save it in SharePoint List. However, I cannot find a solution to upload an image from my pc using Power Apps and save that image in a SharePoint List. 

 

Is it possible to achieve this function with Power Apps?

 

Any help will be much appreciated.

2 ACCEPTED SOLUTIONS

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @JB0007 ,

You need an Add Picture Control. You then store it with a Flow - here is a Video on the process.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

v-bofeng-msft
Community Support
Community Support

Hi @JB0007 :

Thanks for @WarrenBelz 's solution.

Using flow is an effective and commonly used method,but I usually recommend the method of converting the image into a binary format for storage.

I've made a test for your reference:

My data source(List B):

Column (click to edit) Type

TitleSingle line of text
PICMultiple lines of text

1\Add an add picture control(AddMediaWithImage1)

2\Add a button:

OnSelect:

 

Patch(
       'List B',
       Defaults('List B'), /*add a new record*/
       {Title:Text(Now()),
         PIC: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")
       }
)

 

3\add a gallery(Used to display saved pictures)

Items:

 

'List B'

 

21.gif

1.JPG

Best Regards,

Bof

 

View solution in original post

8 REPLIES 8
WarrenBelz
Super User
Super User

Hi @JB0007 ,

You need an Add Picture Control. You then store it with a Flow - here is a Video on the process.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

v-bofeng-msft
Community Support
Community Support

Hi @JB0007 :

Thanks for @WarrenBelz 's solution.

Using flow is an effective and commonly used method,but I usually recommend the method of converting the image into a binary format for storage.

I've made a test for your reference:

My data source(List B):

Column (click to edit) Type

TitleSingle line of text
PICMultiple lines of text

1\Add an add picture control(AddMediaWithImage1)

2\Add a button:

OnSelect:

 

Patch(
       'List B',
       Defaults('List B'), /*add a new record*/
       {Title:Text(Now()),
         PIC: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")
       }
)

 

3\add a gallery(Used to display saved pictures)

Items:

 

'List B'

 

21.gif

1.JPG

Best Regards,

Bof

 

Hi @WarrenBelz  thank you for your help.

 

The flow works great.

 

Regards.

Hi @v-bofeng-msft thank you for your help. 

 

This is also a great solution and works great.

 

Regards.

@v-bofeng-msft  Thanks for this direct PA solution, works fine. No Flow needed. 😀 Gr. Lex

This looks like just the solution I was looking for! Everything works just like you laid out but the image does not show up in the Gallery view. I don't even have the option to assign my binary data to the image control in the gallery. Is there something I'm missing?

Thanks!!

matiasclapera
Frequent Visitor

a question can these images be sent by mail from powerapps?

powerappsuser17
Frequent Visitor

@v-bofeng-msft Thank you for your response as this is the only solution that has seemed to work for me. How do I go about mass converting these into a folder of images while keeping some sort of tags to sort and filter them? Thanks!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,817)