Barcode Scanner

The barcode scanner allows a user to add a product record to a custom related list. The product record should have a field in which the number encoded in the barcode is specified.

To display the barcode scanner button on the custom related list screen, the following are required:

  1. Create a ProductCode or ProductCode__c field with the text type on a Product object. Specify in the field the number encoded in the barcode.

    On the CT Mobile Control Panel: General tab, the Product object should be selected in the Product Object API Name field.
  2. On the Activity Data object:

    • add a field with the lookup relationship type to link the Activity Data object with the Product object;

    • add a field with the lookup relationship type to link the Activity Data object with the Activity object.

  3. Create a custom related list of the Activity object with the Activity Data object as a child object.

    • add a field with the lookup relationship type, which links the Activity Data object with the Product object, as a column of the list.

  4. Add the Activity,Activity Data, and Product objects to offline objects.

    The user’s profile should have access to read and edit records of all the objects mentioned above.

To create a record using the barcode scanner:

  1. In the CT Mobile app open the Activity record screen.

  2. Go to the Detailing tab and tap the custom related list subtab.

  3. Tap the barcode scanner button to switch on the camera for scanning barcodes. The product information will be added as a record in the custom related list if the product record with that number encoded in the barcode is found.

A new record is created.

  • When rescanning previously added barcodes, duplicate records are not created.

  • If the Start/Finish functionality is enabled, the barcode scanner button will be available after the activity is starting.

barcode scanner
``