web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Adding barcode scanning to the mobile app

(4) 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.

I would need to know if the standard code to write the intent has already been tested by Microsoft on a Zebra device to successfully enable the Scenario 3 from the official documentation. Because as of now, the passing of additional information through the “RequestBarcodeScannerAsync” function seems not to be working.

Thank you for any insights.

Best regards

I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,555 Most Valuable Professional on at
    Hi
    Please send your query again, it is empty.
    Best
    GR
  • Khushbu Rajvi. Profile Picture
    22,130 Super User 2026 Season 1 on at
    Even i am unable to see your question. could you please write again. it happens sometime due to formatting. 
  • Suggested answer
    Jun Wang Profile Picture
    8,210 Moderator on at
    you might need a 3rd party barcode app
  • Suggested answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    According to my last test, continuous scanning can only be done in the standard feature, and cannot be done in the cloud version customization.
    Business Central 2023 wave 2 (BC23): Print and scan barcodes (No customization)
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • hrb Profile Picture
    7 on at
    Hi Marika,
     
    same issue in our project for our cloud installation (BC v24). We also use Zebra scanners and intend to use the BC Mobile App on these devices for scanning some Barcodes. Microsoft explicitly states, that the barcode scanner integration works for cloud installations v24 or later. So it should not be limited to on-premise installations.
     
    We have implemented the Addin as described by Microsoft in Scenario 3 https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-mobile-app-barcode-scanning#scenario-3-integrate-dedicated-barcode-scanners. The trigger ControlAddInReady is running in the usercontrol so far, but the trigger BarcodeReceived seems not to work.
     
    // Declare the user control based on the BarcodeScannerProviderAddIn control add-in.
                usercontrol(BarcodeControl; BarcodeScannerProviderAddIn) // Step 1
                {
                    ApplicationArea = All;
     
                    // The ControlAddInReady event is raised when the control add-in is ready to be used.
                    trigger ControlAddInReady(IsSupported: Boolean)
                    begin
                        Message('ControlAddInReady');
                        // If the barcode scanner is supported, request the barcode scanner.
                        if IsSupported then begin // Step 2
                            Message('TEST RESPONSE: Barcode scanner is supported.');
                            CurrPage.BarcodeControl.RequestBarcodeScannerAsync(); // Step 3
                            Message('TEST RESPONSE: Barcode scanner requested.');
                        end
                        else begin
                            Message('Barcode scanner is not supported.');
                        end;
                    end;
     
                    // The BarcodeReceived event is raised when a barcode is received from the barcode scanner.
                    trigger BarcodeReceived(strBarcode: Text; Format: Text)
                    begin
                        Message('TEST RESPONSE: Barcode received: %1', strBarcode);
                        AddBarcodeFunction(strBarcode);
                    end;
                }
     
    The Zebra Datawedge is set to "broadcast intent", same as in your app.
    Either the user control in the BC code is not working properly, or the datawedge on the Zebra is configured incorrectly. 
     
    hrb
     
  • Jimmy C Profile Picture
    9 on at
    Hi,
     
    We seem to have the same problem on the Zebra ET45.
    Did you solve this issue?
     
    Regards,
     
    Jimmy
  • GM-18071545-0 Profile Picture
    9 on at
    Has anyone solved this issue? 
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,130 Super User 2026 Season 1 on at
  • GM-18071545-0 Profile Picture
    9 on at
    @Khushbu Rajvi. scenario 3 does not work as trigger BarcodeReceived is never raised. I've tried with a Zebra device and intent configuration is sent using AL.
    Did you try succesfully to use a Zebra device with integrated barcode scanner?
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,130 Super User 2026 Season 1 on at
    I have not tried yet but yes if get time i will check it in details. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans