CustomMetadataValue Class
Represents custom metadata values for a custom metadata component.
Use Metadata.CustomMetadataValue to access values for custom fields of custom metadata records.
Supported Apex primitive types are:
- Boolean
- Date
- DateTime
- Decimal
- Double
- Integer
- Long
- String
The following are properties for CustomMetadataValue.
-
The field name for the custom metadata value.
-
The field value for the custom metadata value.
The field name for the custom metadata value.
public String field {get; set;}
Type: String
The field value for the custom metadata value.
public Object value {get; set;}
Type: Object
Supported Apex primitive types are:
- Boolean
- Date
- DateTime
- Decimal
- Double
- Integer
- Long
- String
When setting the value for relationship fields, use the qualified API name of the related metadata, not the ID.
For more information, see Primitive Data Types.
The following are methods for CustomMetadataValue.
-
Makes a duplicate copy of the
Metadata.CustomMetadataValue.
Makes a duplicate copy of the Metadata.CustomMetadataValue.
public Object clone()
Type: Object