objectId-random
Extracts the random value (as an xs:long) from a BSON ObjectId.
Languages
Built-in
Parameters
Name | Type | Description |
|---|---|---|
objectId | bson:objectId | The BSON objectId value from which the random value is extracted. |
Example
For an ObjectId value of 5E361F8A640000000000012D, the objectId-random function returns the integer 100. Although the BSON ObjectId is internally stored as a 12-byte value, MapForce automatically converts it to a 24-character hexadecimal string for readability.