web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    18,914 Super User 2025 Season 2 on at
    Adding barcode scanning to the mobile app
    I have not tried yet but yes if get time i will check it in details. 
  • GM-18071545-0 Profile Picture
    9 on at
    Adding barcode scanning to the mobile app
    @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
    18,914 Super User 2025 Season 2 on at
  • GM-18071545-0 Profile Picture
    9 on at
    Adding barcode scanning to the mobile app
    Has anyone solved this issue? 
     
  • Jimmy C Profile Picture
    9 on at
    Adding barcode scanning to the mobile app
    Hi,
     
    We seem to have the same problem on the Zebra ET45.
    Did you solve this issue?
     
    Regards,
     
    Jimmy
  • hrb Profile Picture
    6 on at
    Adding barcode scanning to the mobile app
    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
     
  • Suggested answer
    YUN ZHU Profile Picture
    89,902 Super User 2025 Season 2 on at
    Adding barcode scanning to the mobile app
    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
  • Suggested answer
    Jun Wang Profile Picture
    8,152 Super User 2025 Season 2 on at
    Adding barcode scanning to the mobile app
    you might need a 3rd party barcode app
  • Khushbu Rajvi. Profile Picture
    18,914 Super User 2025 Season 2 on at
    Adding barcode scanning to the mobile app
    Even i am unable to see your question. could you please write again. it happens sometime due to formatting. 
  • Gerardo Rentería García Profile Picture
    22,524 Most Valuable Professional on at
    Adding barcode scanning to the mobile app
    Hi
    Please send your query again, it is empty.
    Best
    GR

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,869 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,484

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,242

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans