Altova MapForce 2026 Enterprise Edition

Creates a random BSON objectId value.

MF_Func_bson-objectID

A BSON objectId is a 12-byte identifier that consists of:

 

A 4-byte timestamp representing the number of seconds since the Unix epoch (1970-01-01T00:00:00Z).

A 5-byte random value generated once per client-side process.

A 3-byte incrementing counter per client process, initialized to a random value. This counter increments for each new ObjectId generated by the same process, ensuring uniqueness.

 

MapForce supports the following functions for working with BSON ObjectIds:

 

objectId-datetime: Extracts an ObjectId's creation date and time (in UTC), converted from the stored timestamp.

objectId-random: Extracts the random value from an ObjectId.

objectId-ordinal: Extracts the incrementing counter (ordinal) from an ObjectId.

to-objectId: Creates an ObjectId using the specified creation date, random value, and counter.

 

Languages

Built-in

 

© 2020-2026 Altova GmbH