Skip to main content

Convert Timestamp to ObjectId

The Convert Timestamp to ObjectId mapping (objectid) transforms a timestamp found at the from path into a MongoDB-compatible ObjectId, which is then stored at the to path. Supports both second and millisecond timestamps.

Attributes for Convert Timestamp to ObjectId

AttributeRequiredDescription
fromYDefines the source field for the mapping.
toYDefines where the result should be inserted.
FunctionYShould be set to "objectid".
CategoryYMust be "enrich" to work as an enrich mapping.