Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Implementing Continuous Barcode Scanning with Zebra MC220J and Business Central App

Posted on by 8
Good morning,
 
I am working on implementing Scenario 3 as described in the official Microsoft documentation on adding barcode scanning to the mobile app. My objective is to enable continuous scanning using a Zebra MC220J device with the Business Central App installed. I want to intercept scanned barcodes for processing via custom code, without requiring any UI interaction from the warehouse operator.
According to Microsoft's documentation:
With some barcode scanner devices, such as Zebra, you can't modify the intent configuration. In this case, you can pass the intent data strings via AL.
To achieve this, I attempted to implement the code by calling the `RequestBarcodeScannerAsync` function:
 
                    if IsSupported then
                        CurrPage.BarcodeControl.RequestBarcodeScannerAsync('com.businesscentral.barcode.receive_barcode',
                                                                           'com.businesscentral.barcode.receive_category',
                                                                           'com.businesscentral.receive_barcode.barcode_string',
                                                                           'com.businesscentral.receive_barcode.barcode_format'); // Step 3
 
Additionally, I configured a new profile on the Zebra DataWedge app, setting the "Intent delivery mode" to "broadcast intent". However, the result has been that the `BarcodeReceived(Barcode: Text; Format: Text)` trigger is never raised, and the scanned barcode is not passed to the app.
 
Has anyone else experimented with this setup? Microsoft's documentation on this subject lacks detail, so I'm wondering if anyone has successfully implemented this or could offer some guidance.
Thank you in advance for any assistance.
Categories:
  • CU13080734-2 Profile Picture
    CU13080734-2 8 on at
    Implementing Continuous Barcode Scanning with Zebra MC220J and Business Central App
    Hi gdrenteria, thank you for your input. Unfortunately, the blog post you linked to only describes "Scenario 2: Invoke from AL" from the official Microsoft Documentation. What I am trying to implement is "Scenario 3: Integrate dedicated barcode scanner".

    The scanner I am using from Zebra is an Android device where I have installed Business Central (version 24.4, the latest available as of today, on a SaaS environment). In theory, it should be possible to open the Business Central Barcode Reader page, and with each scan, the result should be automatically processed by the Business Central Page through the execution of the "BarcodeReceived" trigger. You can see an example of this here. As shown in the video, the presenter opens the page on the device and begins scanning. With each scan of the same barcode, the Quantity on the page increases. This is only possible in Scenario 3, where multiple operations need to be executed in succession. I really hope there is a combination of DataWedge setups and code writing that can enable this functionality. As of today, I am not aware of anyone (except Microsoft) who has successfully implemented this, so I am trying to do it myself.
  • Suggested answer
    Jun Wang Profile Picture
    Jun Wang 6,929 Super User 2024 Season 2 on at
    Implementing Continuous Barcode Scanning with Zebra MC220J and Business Central App
    typically, if you use scanner app from ISV, they provide guidance on modifying barcode report
  • gdrenteria Profile Picture
    gdrenteria 8,872 Most Valuable Professional on at
    Implementing Continuous Barcode Scanning with Zebra MC220J and Business Central App

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,339 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,177 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans