Skip to content

definePrefix

Implementations

Microsoft Excel: AIDCT.GS1.definePrefix(prefix, prefixType, tweakFactor)

Google Sheets: Google Sheets: aidctGS1DefinePrefix(prefix, prefixType, tweakFactor)

Define a prefix for use in GS1 identifier creation functions.

Parameters

NameTypeDescription
prefixStringPrefix.
prefixTypeNumberPrefix type. Valid values are 0 (GS1 Company Prefix), 1 (U.P.C. Company Prefix), and 2 (GS1 Prefix).
tweakFactorNumberTweak factor, used to support the creation of sparse identifiers. The default tweak factor is based on the GS1 Company Prefix, and is usually sufficient for obfuscation. This allows more control over the encryption when higher security is required.

Parameters in italics are optional.