Working with Custom Fields - m3ter Documentation

Custom Fields in m3ter

Custom Fields in m3ter allow you to store custom data in the form of number or string values against m3ter entities in a way that does not directly affect the normal working operation of the m3ter platform. This capability can help you meet specific usage-based pricing and other operational business use cases. You can create Custom Fields for the following m3ter entities:

Using Custom Fields

You can reference the values you store using Custom Fields in Derived Field and Compound Aggregation calculations. This will affect how the platform behaves and gives you a wider scope for resolving complex usage-based pricing use cases. Here are some key points to note:

For example, if you want to reference a Custom Field for Account, say cfAccount1, in your calculations:

Limits and Constraints

Important Exceptions

Creating Custom Fields

At Organizational-Level

You can create Custom Fields at the Organization-level in the Console. For more information, see the section on Adding and Editing Custom Fields.

At Individual Entity-Level

When creating or editing an individual entity that accepts Custom Fields in the Console, you’ll be able to add them. See the Create Product API call as an example.

Reviewing Custom Fields

You can review any Custom Fields created for the entity on the metadata panel in your m3ter Organization. The Custom Fields will be listed, and you can Copy the String or Number value of a Custom Field to your clipboard.

Custom Fields in Derived Field Calculations

In Derived Field calculations, the Custom Fields you can reference are:

If using Meters belonging to a specific Product, you can also reference Custom Fields added to a Product.

Entity Using Global Meters Using Product Meters
Organization YES YES
Meter YES YES
Product NO YES
Account YES YES
Account Plan NO NO
Plan NO NO
Plan Template NO NO

Format

When referencing Custom Fields in your Derived Field calculations, you can use formats like:

Precedence

In Derived Field calculations, the entity-level value is used if defined; otherwise, the Organization-level value is used.

Referencing Custom Fields in Compound Aggregation Calculations

Range of Entities

Format

For Compound Aggregation calculations, use:

Precedence

In Compound Aggregation calculations, the general rule applies: the entity-level value is used if defined, otherwise the Organization-level value is used.

Important Exceptions