Skip to main content

Convert ObjectId to epoc

The Convert ObjectId to epoc 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 ObjectId to epoc

AttributeRequiredDescription
FromYesDefines the source field for the mapping.
ToYesDefines where the result should be inserted.
PrecedenceYesDetermines the order in which this mapping is applied relative to others.
Function typeYesDefines the function type of the mapping. Needs to be "Date function".
FunctionYesShould be set to "Convert ObjectId to epoc".