Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          getBarCodeScannerDataAsync()

          getBarCodeScannerDataAsync()

          Load the device's default camera and scan the barcode.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Return Value

          A promise with the barcode data in an object that contains result text, barcode format, and status. The status indicates whether the user canceled the scan.

          Example
          Example
          Facade.getBarCodeScannerDataAsync().then( function (result) {
          var res = "Result: " + result.text + "</br>" + "Format: " + result.format;
          Ext.Msg.alert('Scanned Data', res);
          }, function (err) {
          Ext.Msg.alert('Error', err);
          } )
          
           
          Loading
          Salesforce Help | Article