Is it possible to get Last modify time for Custom Metadata Record?
I have a Custom metadata type - RR in this Custom metadata type, I have record - test In this record I have a field - fff
My goal is to know when fff was updated last time.
Is it possible to get Last modify time for Custom Metadata Record?
I have a Custom metadata type - RR in this Custom metadata type, I have record - test In this record I have a field - fff
My goal is to know when fff was updated last time.
You can get this information from FieldDefinition.
First get the DurableId from Custom Metadata:
SELECT DurableId FROM EntityDefinition WHERE QualifiedApiName = 'CustomMetadataName__mdt'
Then search for the desired fields in FieldDefinition:
SELECT QualifiedApiName, LastModifiedDate FROM FieldDefinition WHERE EntityDefinitionId = '<Mdt_DurableId>'
For more information: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_fielddefinition.htm
I hope I've helped. See ya!