Mapping Custom Fields on m3ter Entities - m3ter Documentation

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

The m3ter platform supports the creation of custom fields for the majority of its core configuration entities in the form of key/value pairs using string or number values. This capability to store data on entities in a free-hand way can prove very useful in fulfilling a wide range of operational business use cases. The m3ter Connector for Salesforce managed package supports the mapping of custom fields from your Salesforce Org on m3ter entities. This topic explains how to enable and work with the mapping custom fields on m3ter entities feature:

Important!

Overview

The mapping of custom fields on m3ter entities feature is built on top of the existing custom metadata framework developed for the m3ter Connector. A new attribute added to the Custom Metadata Types (CMDT) framework supports “Custom Fields”. This attribute is a Long Text Area and is used to store a JSON representation of key/value pairs that the user defines. Once this data is on the CMDT, the Sync Orchestration logic can make use of these fields and include them in the payload sent to m3ter.

Enabling Mapping for Custom Fields

To enable mapping for objects:

  1. In your Salesforce Org, navigate to the m3ter Admin app.

  2. Under Setup, select the Custom fields tab:

  3. Use the Enable Custom Fields? switch to turn the feature on.

Once the feature is enabled, a set of accordions is displayed with each accordion representing a CMDT type that has the new ‘Custom Fields’ attribute:

Notes:

Important! When you enable the mapping custom fields feature, a banner advises that how the application updates this metadata record is unlike almost any other mechanism we would use to update records in Salesforce, because we are dealing with Custom Metadata Types. For more information, please see the Security Considerations page in the Salesforce Apex Developer Guide.

Adding Custom Fields for Mapping

When you have enabled the mapping custom fields feature, you can expand the accordion for the CMDT type you want to add a custom field to for mapping into the corresponding m3ter object:

Here’s an example of how the Custom Field mapping is saved on CMDT record:

The following then highlights the custom field being dynamically added to the mapped data:

The custom field is then subsequently mapped into the corresponding m3ter entity under Account metadata:

Notes and Limitations