Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Implementing Continuous Barcode Scanning with Zebra MC220J and Business Central App

(1) ShareShare
ReportReport
Posted on by 10
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.
  • CU13080734-2 Profile Picture
    CU13080734-2 10 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 7,447 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 13,278 Most Valuable Professional on at
    Implementing Continuous Barcode Scanning with Zebra MC220J and Business Central App

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans