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

Notifications

Announcements

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 ?

Categories:
I have the same question (1)
  • Akash17 Profile Picture
    549 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard