cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

How many ways to take photo with camera and save to SharePoint's list?

Hi, 

 

Currently, I have defined a column with "Multiple lines of text" type, that stores "data:image/png;base64", and use the Camera object and Image object to make a "take Photo" action

However, I found that if the record becomes more. It requires more time to load the table.

 

If create by using Microsoft's "start with data store"  (with MSSQL database and datatype is Image)
it generates an "Add picture" object in PowerApps
However, I have no idea how to use "Add Picture", if start the screen from blank


May I know is there any other ways to "take photo" and store in OneDrive or SharePoint?

Thanks in advance

Sam

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: How many ways to take photo with camera and save to SharePoint's list?

Hi @samsam ,

Could you please share a bit more about your scenario?

Do you want to upload image data from your app to the "Multiple Line of Text" column in your SP list using "Add Picture" control?

 

Based on the needs that you mentioned, I think the JSON function could achieve your needs. You could use the JSON function to convert the captured image data from the "Add Picture" control into a Base64 data, then you could patch the converted Base64 data back to the "Multiple Line of Text" column in your SP list.

 

I have made a test on my side, please consider take a try with the following workaround:

2.JPG

Set the OnSelect property of the "Patch" button to following:

Patch(
      'YourSPList', 
       Defaults('YourSPList'), 
       {
         Title: "IMAGE PATCH", 
         MultipleLineColumn: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")
       }
)

 

Please check and see if the following thread or videos would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/save-uploaded-pics-to-sharepoint-fr...

 

https://www.youtube.com/watch?v=kQVYid1p_vA

 

More details about the Patch function in PowerApps, please check the following article:

Patch function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Resident Rockstar
Resident Rockstar

Re: How many ways to take photo with camera and save to SharePoint's list?

The "Add Picture" control is located in the "Insert" ribbon Under "Media"

addImage.png

 

As for adding images to SharePoint or OneDrive, there are many examples out there. Here's one for OneDrive.

https://www.eliostruyf.com/uploading-images-to-your-onedrive-with-powerapps/

Highlighted
Community Support
Community Support

Re: How many ways to take photo with camera and save to SharePoint's list?

Hi @samsam ,

Could you please share a bit more about your scenario?

Do you want to upload image data from your app to the "Multiple Line of Text" column in your SP list using "Add Picture" control?

 

Based on the needs that you mentioned, I think the JSON function could achieve your needs. You could use the JSON function to convert the captured image data from the "Add Picture" control into a Base64 data, then you could patch the converted Base64 data back to the "Multiple Line of Text" column in your SP list.

 

I have made a test on my side, please consider take a try with the following workaround:

2.JPG

Set the OnSelect property of the "Patch" button to following:

Patch(
      'YourSPList', 
       Defaults('YourSPList'), 
       {
         Title: "IMAGE PATCH", 
         MultipleLineColumn: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")
       }
)

 

Please check and see if the following thread or videos would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/save-uploaded-pics-to-sharepoint-fr...

 

https://www.youtube.com/watch?v=kQVYid1p_vA

 

More details about the Patch function in PowerApps, please check the following article:

Patch function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,626)