Altova MapForce 2026 Enterprise Edition

Extracts the ordinal part as an integer from a BSON ObjectId.

MF_Func_objectId-ordinal

 

Languages

Built-in

 

Parameters

Name

Type

Description

objectId

bson:objectId

The BSON objectId value from which the ordinal is extracted.

 

Example

For an ObjectId value of 5E361F8A640000000000012D, the objectId-ordinal function returns the integer 301. Although the BSON ObjectId is internally stored as a 12-byte value, MapForce automatically converts it to a 24-character hexadecimal string for readability.

 

© 2020-2026 Altova GmbH