AcuMd5Hash Operator - Haufe-Lexware/haufe.no-frills-transformation GitHub Wiki
Creates an MD5 hash string from input text.
The acumd5hash operator generates an MD5 hash (32-character hexadecimal string) from the input string. This is useful for creating unique identifiers, detecting duplicates, or generating keys based on content.
| Parameter | Type | Description |
|---|---|---|
| input | String | The text string to hash |
Returns a 32-character uppercase hexadecimal string representing the MD5 hash of the input.
<Field name="ContentHash">acumd5hash($Description)</Field>
<Field name="UniqueId">acumd5hash(concat($FirstName, $LastName, $Email))</Field>| Description | FirstName | LastName | |
|---|---|---|---|
| Test Product | John | Doe | [email protected] |
| Another Item | Jane | Smith | [email protected] |
| Test Product | John | Doe | [email protected] |
| ContentHash | UniqueId |
|---|---|
| 7C8E5A6F9B3D2E1A4C5F6D8E9A0B1C2D | A1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6 |
| 9D8E7F6A5B4C3D2E1F0A9B8C7D6E5F4A | B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6Q7 |
| 7C8E5A6F9B3D2E1A4C5F6D8E9A0B1C2D | A1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6 |
Note: Records 1 and 3 have identical hashes because they have the same input values.
- Duplicate detection: Identify duplicate content by comparing hashes
- Unique identifiers: Generate deterministic IDs based on content
- Content tracking: Track changes by comparing hashes over time
- Deduplication: Group identical items by hash value
- Uses ASCII encoding for the input string
- Produces uppercase hexadecimal output (A-F, 0-9)
- Same input always produces the same hash (deterministic)
- Different inputs almost always produce different hashes
- The hash is always 32 characters long
- Empty string input produces a valid MD5 hash
- This operator uses ASCII encoding, which may not handle all Unicode characters correctly
- For Acumatica localization-specific hashing, see
aculocalizationmd5hash
- AcuLocalizationMD5Hash Operator - MD5 hashing for Acumatica localization
- Concat Operator - Combine strings before hashing