Skip to content


Define action that allow users to open a barcode scanner on a mobile device.

The properties defined in Action are also applicable to this action.

OpenBarcodeScanner Properties

Property Type Required
Path string Optional
_Type const Required


  • type: string


OpenBarcodeScanner: This action will open the barcode scanner and return result after scanning.

  • type: const

The value of this property must be equal to:


Action Result

The ActionResult of this action is the display value of the scanned bar code.


    "_Type" : "Action.Type.OpenBarcodeScanner",
    "OnSuccess" : "/MDKApp/Rules/BarcodeScanner/ShowBarcodeScanningResult.js", 
    "OnFailure" : "/MDKApp/Actions/BarcodeScanner/OpenBarcodeScannerFailure.action",
    "ActionResult": {
        "_Name": "BarcodeScanner"
export default function ShowBarcodeScanningResult(pageProxy) {
  var actionResult = pageProxy.getActionResult('BarcodeScanner');
  if (actionResult) {
    return pageProxy.executeAction('/MDKDevApp/Actions/Navigation/BarcodeScanner/NavToBarcodeScannerSuccessPage.action');