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 / Add photos to sharepoi...
Power Apps
Answered

Add photos to sharepoint list

(0) ShareShare
ReportReport
Posted on by 26

Hi, I've been trying to add photos to share point list for 2 weeks now. I know there are 2-3 ways to do that (flow, attachments, JSON, multi text). Can someone help me with the attachment method ? I've created a desktop app,

1) I've put the camera control with this code : Set( varName,GUID() );Collect(colCameraPhoto, { DisplayName: varName & "JPEG", Id: varName & "JPEG", Value: Camera_bon.Photo});

2) I've attached the same collection (colCameraPhoto) to a gallery and to an attachment control (copied from a form)

3) I want the attach all the photos taken with the camera control in combination with the attachment control not like : First(Attachmentcontrol.Attachments).Name/Value

4) Do I have to create a flow in combination with the attachment ?

5) I've tried using the edit form with the same flow : camera control -> collection->attachment control-> Submitform(Form2);

and it's the same result, I can see the registered line but with no attachments in the attachments column.

6) Can someone help me do this step by step ?

Screenshot 2022-07-27 115331.png
Screenshot 2022-07-27 115735.png
Categories:
I have the same question (1)
  • Akash17 Profile Picture
    Super User 2024 Season 1 on at

    Hi @owidiuz 

    I hope you are using sharepoint library to store more than 1 images please go through this link and using library is best way

    https://www.youtube.com/watch?v=3QaiM8SeWfM&t=1204s

  • Ramole Profile Picture
    Super User 2024 Season 1 on at
  • owidiuz Profile Picture
    26 on at

    I saw this video earlier, did it step by step but Reza doesn't show or explain the "submit" button code or flow. Therefore I have no resolve yet.

  • owidiuz Profile Picture
    26 on at

    No I don't want to use a library, I want to save it directly to a List in the attachment column.

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    @owidiuz 

    Download the sample app provided by @RezaDorrani and see it how he implemented its easy to fellow 

     

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    @owidiuz 

    here is the sample link https://github.com/rdorrani/PowerApps/tree/master/CameraPenImagesAsAttach 

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @owidiuz ,

     

    It seems that this case is close to your needs.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/PowerApps-Attachment-file-names-to-Sharepoint/m-p/1569634#M403390

     

    In addition, here is a link that might give you some extra inspiration, I added another Gallery to delete unwanted photos.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Saving-Images-from-PowerApps-Gallery-to-SharePoint-Document/m-p/1581694#M405880

     

     

    Best Regards,
    Charlie Choi

  • Verified answer
    owidiuz Profile Picture
    26 on at

    Thanks all for the help & suggestions, but I've found what I was looking for:

    1)You need to create an "Edit Form" from the list you want to insert the attachments,

    2)leave only the attachment field

    3)set the attachment control and the datacard.update to the collection of images from the camera control

    4) create the "Patch" solution :

    "Patch(
    Inserare_Bonuri,
    Defaults(Inserare_Bonuri),
    {
    Title: validare.Text,
    Nume_Persoana: nume.Text,
    Suma_declarata: Value(suma_declarata.Text),
    Suma_dedusa: Value(suma_dedusa.Text)
    },
    Attachment_Form.Updates"

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
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard