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 / Bulk update of items w...
Power Apps
Answered

Bulk update of items with photos.

(0) ShareShare
ReportReport
Posted on by 6
Hi, I have successfully navigated updating a collection of items, using the for all function. This is where I multi select a number of items and update them all at once with information in an edit form.

I now need to apply a function where I can update the selected items with a photo and a signature. This is proving difficult, does anyone have a workaround to do this? Currently tried with camera control but I cannot include in my for all the attachments
Categories:
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
     
     

    Bulk Update of Items with Photos and Signatures

    ForAll cannot directly handle Camera and Signature control output in attachments. The fix is a two-step approach — capture first, then patch.

    Store photo and signature before the loop:

    powerfxSet(varPhoto, Camera1.Photo);

    Set(varSignature, SignatureCanvas1.Image);

    Step 2 — Patch attachments inside ForAll:

    powerfxForAll(

        colSelectedItems,

        Patch(

            YourSharePointList,

            LookUp(YourSharePointList, ID = ThisRecord.ID),

            {

                Attachments: Table(

                    { Name: "photo_" & ThisRecord.ID & ".jpg", Value: varPhoto },

                    { Name: "signature_" & ThisRecord.ID & ".png", Value: varSignature }

                )

     

            }

     

        )

     

    );

    Requires SharePoint list Attachments feature to be enabled. For large selections, trigger a Power Automate flow instead — more reliable than client-side ForAll at scale.

     
    Vishnu WR
     
    Please âœ… Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like â™¥
  • Suggested answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    This blog of mine sets out the saving and retreiving/updating of a collection including attachments. You can ignore the hidden image (your files are already in the correct format) and the offline saivng, but the principle is the same.
     
    So to save to the Collection
    Collect(
       colYourName,
       {
          YourField1: YourContro11Output,
          YourField2: YourContro12Output,
          . . . . . .
          Attachments: 
          Table(
             {
                DisplayName: YourPhotoNameHere,
                AbsoluteUri: Blank(),
                Id: YourCameraName.Photo,
                Value: YourCameraName.Photo
             },
             {
                DisplayName: YourSignatureNameHere,
                AbsoluteUri: Blank(),
                Id: YourSignatureControl.Image,
                Value: YourSignatureControl.Image
             }
          )
       }
    );
    and then add to the list as new records
    Patch(
       YourSPListName,
       ForAll(
          colYourName As _Data,
          {
             YourField1: _Data.YourField1,
             YourField2: _Data.YourField2,
             . . . . . . .
             Attachments: 
             Table(
                ForAll(
                   _Data.Attachments As _Files,
                   {
                      DisplayName: _Files.DisplayName,
                      AbsoluteUri: Blank(),
                      Id: _Files.Id,
                      Value: _Files.Value
                   }
                )
             )
          }
       )
    )
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Verified answer
    11manish Profile Picture
    3,333 on at
    You generally cannot directly bulk-update attachment controls inside a ForAll() loop because attachments are form-bound objects in Power Apps.
     
    The best workaround is:
    • store the camera/signature image in a variable
    • use ForAll + Patch against image/file columns
    • or use Power Automate to create attachments for each selected record
    For enterprise apps, image/file columns are usually much easier and more scalable than traditional attachment controls for bulk operations.
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    Out of interest, I have what I posted working on a production app, so it is certainly possible.​​​​​​

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard