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 / Warehouse management
Power Apps
Answered

Warehouse management

(0) ShareShare
ReportReport
Posted on by 10

Hello All,

 

I am trying to build an app that it will produce delivery notes from the export of the goods from the warehouse. The procedure should be this: everytime someone needs to get something from the warehouse, the app user should scan the good(s), then note down the quantity and then sign the delivery note. The app should return the remaining stock of each good, once the quantity is noted down. Then, the app should generate a PDF, which it will be either saved in a folder in OneDrive or in Sharepoint.

 

At the moment, in the app, I have created a connection of a Sharepoint file which contains the record of all the registred items. The name of this record is, Item List and it has 3 columns, Barcodes, Description and Stock and contains the item's code, the description and the current stock respectively.

I have inserted a Barcode Reader, where the OnScan property is Collect(colScannedItems; ScannedItem:First(BarcodeReader1_1.Barcodes).Value;ScannedTime:Now()}) and a gallery that returns the ScannedItems.

 

Currently, what I struggle to do is, I cannot import the description from the sharepoint file for each scanned item. I have tried to do it through Lookup function. Where is it better to apply this, in a form or in a gallery? How will the app return the remaining stock according to the given quantity?

 

The main part of the app should be like this:

 

No.Item's CodeItem's DescriptionGiven QuantityRemaining Stock
     
     

 

Thank you for your time reading this. I look forward for your answers on this.

 

 

 

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @endoxos ,

    This structure should do the job

    With
     {
     wItem:
     LookUp(
     SPList;
     ItemCodeField = First(BarcodeReader1_1.Barcodes).Value}
     )
     };
     Collect(
     colScannedItems; 
     ScannedItem: First(BarcodeReader1_1.Barcodes).Value;
     ScannedTime: Now();
     Description: wItem.YourDescriptionField;
     Remaining: wItem.YourItemField
     )
    )

     

    Please click Accept as solution 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 giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • endoxos Profile Picture
    10 on at

    Thank you @WarrenBelz for your response. I applied the structure but I do not get description back as seen in the attached. Also, I forgot to mention that the SPList has a lot of records >10000. What is advised on that case? 

     

    endoxos_0-1690922240000.png

     

     

     

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    @endoxos ,

    Assuming the field in your list is Text (what is its name?), then the filter is Delegable. Can you please post the code you are using in Text

  • endoxos Profile Picture
    10 on at

    In the SPList,  when the list was imported from an Excel, I was receiving the barcode value with commas (1,000,083). Thus, I created a calculated column with the name Barcodes and in the formula I used this (=barcodesn&""). So you are correct, it is a text column now.

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    @endoxos ,

    That explains the issue - SharePoint calculated columns simply do not "play well" with Power Apps and should not be used with it. 

    Also importing from Excel is problematic as it sets all the underlying field names to field_1, field_2 etc and will cause a lot of confusion in some formulas.

  • endoxos Profile Picture
    10 on at

    @WarrenBelz 

    Thank you for your time and your respond on my post.

     

    I went back on my SPlist to check again. I found that in the barcodes column, the thousand seperator was enabled and that was the reason your stucture did not work out. Once I disabled it, I replaced in the structure the calculated column with the initial and the formula on the barcode reader is running well.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard