Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 7pUkdc4a0RTJVV4sBih3qw
Power Apps - Building Power Apps
Answered

Creating a barcode inventory app

Like (0) ShareShare
ReportReport
Posted on 26 Mar 2020 04:53:08 by 333

I am trying to determine the best way to utilise the Barcode scanner for managing stock and equipment.

 

My current concept is as follows;

 

1. Using barcodes, scan the equipment and/or stock (this patches straight to sharepoint list)

2. Then fill in the remaining fields of this list with necessary metadata.

I now have a stock and equipment register with the barcode being my unique identifier

 

Next;

1. If I wanted to track equipment (say for booking to a project), I would then scan the barcode on the equipment.

2. This would then patch to an equipment booking list, where additional data can be entered (e.g. project details)

 

In order to enforce integrity (ensure that I am booking the right piece of equipment) when I do scan the barcode, information currently sitting in the equipment register, relevant to the item, is pulled from there to be displayed in the app and stored in the equipment list.

 

So, I am currently unsure if this can be achieved purely from Powerapps and SharePoint, or if I need to try and use a Flow?

Essentially I am thinking - when a barcode is scanned and patches data to SP2 (Equipment booking list), if it matches a barcode in SP1 (Equipment register), then grab 'x' fields from SP1 and put in SP2.

 

I am open to any suggestions, and if a Flow is the only way to go, then I'll try and work that out.

Categories:
  • BrendanZ1 Profile Picture
    333 on 27 Mar 2020 at 02:13:51
    Re: Creating a barcode inventory app

    @v-siky-msft Thanks so much for your help - looking forward to expanding on the possibilities of this now!

  • v-siky-msft Profile Picture
    on 27 Mar 2020 at 02:09:16
    Re: Creating a barcode inventory app

    Hi @BrendanZ1 ,

    Yes, Just add a notification to the else value in If function. If the bar code they scanned is not listed, the app will show a notification on the top of App to show the error message.

     

    If(!IsBlank(VarRecord), Patch('SP list2',Defaults('SP list2'),{Column1: VarRecord.Column1, Column2:VarRecord.Column2}), Notify("Identification Error. Please add this item to the register first.",NotificationType.Error))

     

    Snipaste_2020-03-27_10-07-58.png

    Hope this helps.

    Sik 

  • BrendanZ1 Profile Picture
    333 on 26 Mar 2020 at 21:40:41
    Re: Creating a barcode inventory app

    I figured this out so it is working perfectly - though to finish this off, I would love some help on how I can alert the user if the bar code they scanned is not listed. 

     

    I tested this by scanning a new bar code that wasn't on the register and it worked in that it did not show up on the second SharePoint list. 

     

    So ideally I would like to include an alert message to let them know that the scan essentially failed, which should indicate that they need to add this item to the register first.

  • BrendanZ1 Profile Picture
    333 on 26 Mar 2020 at 21:13:26
    Re: Creating a barcode inventory app

    Thanks for the help - just wanting to clarify, where you have

     

    {Column1: VarRecord.Column1, Column2:VarRecord.Column2}))

     

    Column 1 is the column I have for the Barcode data to go into and Column 2 is data that will come across from SPlist1?

    If so, I would just add additional columns to the patch for the other data that I want?

     

    E.G. BarcodeID: VarRecord.BarcodeID, Manufacturer: VarRecord.Manufacturer  

  • Verified answer
    v-siky-msft Profile Picture
    on 26 Mar 2020 at 09:31:39
    Re: Creating a barcode inventory app

    Hi @BrendanZ1 ,

     

    I think this can be achieved by PowerApps.

    1. first use lookup function to get the record from SP1 (Equipment register), and save it to a variable

    2. if the variable is not empty, just Patch the variable value to SP2.

    BarcodeScanner1.OnScan: 

     

    Set(VarRecord, LookUp('SP list1', UIDColumn=BarcodeScanner1.Value)); If(!IsBlank(VarRecord), Patch('SP list2',Defaults('SP list2'),{Column1: VarRecord.Column1, Column2:VarRecord.Column2}))

     

    Hope this helps.

    Sik

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 205 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 108

#3
stampcoin Profile Picture

stampcoin 80

Overall leaderboard
Loading started