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 / How to submit multiple...
Power Apps
Unanswered

How to submit multiple barcodes in one entry to a SharePoint List

(0) ShareShare
ReportReport
Posted on by 11

I am creating an app that captures all the units that are ready to deliver to the client.  They are supposed to be capture depending on the number of units on a truck, which means I have to scan several barcodes, and take pictures of the unit before they leave the building. The issue that I am having is that the app is only sending the first barcode it scanned, and I haven't been able to make it send several barcodes in one entry. What can I do? I'm new in PowerApps. Please help.

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,582 Moderator on at

    @Caluchan24 

     

    In the Submit Button, Remove ClearCollect. This is messing with Your collection. It clears colScans and then picks the last scanned barcode.

     

    Also, at the end, add Clear(colScans) so after all scans are added to Sharepoint it will clear this collection

  • Caluchan24 Profile Picture
    11 on at

    Thank you for your help. I did the corrections you suggested:

    ForAll(
        colScans As Code,
        Patch(
        'Shipping Tracking List',
        Defaults('Shipping Tracking List'),
        {Barcodes:Code.Value},
        Form2.Updates));
    If(
        IsEmpty(Errors('Shipping Tracking List')),
        Notify(
            "Success",
            NotificationType.Success
        );
        Navigate(SuccessScreen),
        Notify(
            First(Errors('Shipping Tracking List')).Message,
           NotificationType.Error
        )
    );
    Clear(colScans);

     

    But now the field for "Barcodes" in my SharePoint list are coming empty. Do you know what can I do to fix this?

     

    Thanks!

  • Verified answer
    SebS Profile Picture
    4,582 Moderator on at

    @Caluchan24 

     

    You are patching Code.Value you need to change it to the name of the Column. It will be Code.Barcode Your collection colScans do not have column called Value

     

     

     

     

    ForAll(
     colScans As Code,
     Patch(
     'Shipping Tracking List',
     Defaults('Shipping Tracking List'),
     {Barcodes:Code.Barcode},
     Form2.Updates));
    If(
     IsEmpty(Errors('Shipping Tracking List')),
     Notify(
     "Success",
     NotificationType.Success
     );
     Navigate(SuccessScreen),
     Notify(
     First(Errors('Shipping Tracking List')).Message,
     NotificationType.Error
     )
    );
    Clear(colScans);

     

     

     

     

  • Caluchan24 Profile Picture
    11 on at

    Thank you for your help! 🙂

  • SebS Profile Picture
    4,582 Moderator on at

    @Caluchan24  You are Welcome

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard