To allow article barcode scanning in Service Point, a barcode needs to be added to the corresponding Articleentity. This article describes how this can be achieved.If a barcode is entered in the “Scan or enter barcode” field in Service Point the articles which have the corresponding barcode set are retrieved and displayed as follows:
If multiple articles have the same barcode, the articles will be shown in the table list.
If only a single article exists with the barcode it is automatically selected and the following screen in the process is shown.
Service Point performs the following legacy REST API call to search for articles with the corresponding barcode:To add a barcode to an article the "addBarcode"action needs to be triggered as shown in the following example:NOTE:
The addBarcode() action is only available in a V1 rule context. When executed it performs a REST call against the corresponding Article API.
Once the barcode is set it cannot be updated or retrieved again.
Multiple barcodes can exist against an article.
Working with barcodes
1) The addBarcode() action can also be executed via a direct API call POST
2) In a rule, addBarcode can be executed. A base plugin rule exists (code can be found in the SDK) which retrieves specific attributes from the corresponding order and sets them as barcodes on the article
RuleAddArticleBarcodeFromOrderAttributes:NOTE: Since the rule expects a String as the orderattribute and attribute values starting with a number are interpreted to ensure that the orderattribute barcode value starts with a character.