GetBarcodes

This function scans barcodes from attachments and returns them in XML format. RegExp function can later be used to extract actual data.

Syntax

GetBarcodes();
GetBarcodes("fileName|fieldName");

Function arguments

  • fileName|fielName – (String) [Optional] Name of the file or field from which barcodes are to be scanned. If not provided, all attachments (files) will be scanned.

Return value

This function returns String.
Returns barcode content in XML format. Consecutive barcodes values are stored in consecutive numeric xml nodes i.e: <1>barcode1</1><2>barcode2</2> etc.

Examples

Example 1:
Get barcodes from all attachments and store their values in XML format in 'barcodesXml’ variable.

barcodesXml = GetBarcodes();

Example 2:
GetBarcodes from attachment named 'examplaryFile’ and store their values in XML format in 'barcodesXml’ variable.

barcodesXml = GetBarcodes("examplaryFile");
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.