Fun with the Barcode Reader in a Power App
https://openart.ai/

Fun with the Barcode Reader in a Power App

A colleague at work asked me the other day if I ever worked with barcode scanning with the Microsoft Power Platform. Surprisingly, I never had. I always welcome solving a mystery, so an early morning ago, I built a Power App that I can run on my iPhone to scan the barcode of any item. Scanning a barcode turned out to be easy with the built-in Barcode Reader control included in Power Apps Studio.

What next? Now, I had Barcode Numbers piling up in a Collection, but so what. It's too soon to declare victory. I changed storing the scanned barcodes from storage in a Collection to storage in a Dataverse Table.

  • By creating a Power Automate Flow named Barcode DB (actions shown below), my OnSelect formula changed to this.

BarcodeDB.Run(First(BarcodeReader1.Barcodes).Value, Now());        
Barcode DB Flow


  • Leveraging a Barcode Library API I was able to use a Get Query API function to return product details that I store in the Dataverse Table. I use the HTTP connector to return the JSON of the product details and the Data Operation Parse JSON action as shown below.

HTTP Action with the Barcode Library API


  • Storing the barcode scan details with the product details in the Dataverse table looks like this.

MDA View


  • MDA Details Form shown below.

MDA Details Form


  • Scanning with the Power App on an iPhone

Power App Scanning with an iPhone


  • Result found in the Canvas Power App

Canvas Power App Results for Fairlife Fate free Milk


  • Result returned from the Barcode Library API

Product Details for Fairlife Fat Free Milk
That's it. From a colleaugue's initial question, to this Canvas App and MDA, working with the Barcode Reader control in a Power App is quite nice.




要查看或添加评论,请登录

Mike Givens的更多文章

  • Leveraging JavaScript in a Power Platform Model-Driven App (MDA)

    Leveraging JavaScript in a Power Platform Model-Driven App (MDA)

    An interesting question popped up today on a Team's channel. Is it possible to do the following.

  • Let Python Make You a Winner

    Let Python Make You a Winner

    A few years ago, two colleagues at HP joked about their ongoing struggle to pick numbers for the Powerball lottery…

  • Eden AI - Try it, and you will love it.

    Eden AI - Try it, and you will love it.

    I have found Eden AI extremely useful in my daily automation tasks. As of January 17, 2025, I counted 60 different…

  • Windows Toast Reminder to Drive the Car

    Windows Toast Reminder to Drive the Car

    Heads-down work or coding might occasionally need a reminder to do something important, like picking your child up from…

  • Converting Videos to GIFs with Python

    Converting Videos to GIFs with Python

    Have you ever wanted to take that best video clip of yours and loop it into a GIF? Whether making a meme, a tutorial or…

  • Story Time with Python and OpenAI

    Story Time with Python and OpenAI

    As a part-time writer and a full-time automation explorer, an idea popped up this evening. I realized that by…

  • Happy Holidays with PIL

    Happy Holidays with PIL

    Using the Python Image Library (PIL) to create a "happy holidays" email blast to your colleagues, friends, and family…

  • Christmas Tree with Python Turtle Graphics

    Christmas Tree with Python Turtle Graphics

    Happy Holiday Season. As promised this is the follow-up to my Thanksgiving Turkey.

  • Image Fun with the Python Imaging Library (PIL)

    Image Fun with the Python Imaging Library (PIL)

    The following code allows one to upload any image file, and the Python Pillow Library (PIL) transforms the original…

  • Speak & Hear - Conversing with OpenAI

    Speak & Hear - Conversing with OpenAI

    Today, I will demonstrate a modern version of the 1980s "Speak & Spell Electronic Game." In this version, leveraging…