Skip to content

More Apex & Flow Metadata Data

Compare
Choose a tag to compare
@jongpie jongpie released this 15 Aug 18:28
· 130 commits to main since this release
820dd12

Added several new fields to LogEntry__c to track additional data about the metadata (Apex or Flow) that generated each log entry record (PR #181)

  • Apex class fields: these fields are set by querying the ApexClass object, based on ApexClass.Name == LogEntry__c.OriginLocation__c.substringBefore('.')
    • LogEntry__c.ApexClassApiVersion__c
    • LogEntry__c.ApexClassCreatedDate__c
    • LogEntry__c.ApexClassId__c
    • LogEntry__c.ApexClassLastModifiedDate__c
    • LogEntry__c.ApexClassName__c
    • LogEntry__c.ApexInnerClassName__c
    • LogEntry__c.ApexMethodName__c
  • Flow definition fields: these fields are set by querying the FlowDefinitionView object, based on FlowDefinitionView.ApiName == LogEntry__c.OriginLocation__c
    • LogEntry__c.FlowActiveVersionId__c
    • LogEntry__c.FlowDescription__c
    • LogEntry__c.FlowDurableId__c
    • LogEntry__c.FlowLabel__c
    • LogEntry__c.FlowLastModifiedByName__c
    • LogEntry__c.FlowLastModifiedDate__c
    • LogEntry__c.FlowProcessType__c
    • LogEntry__c.FlowTriggerType__c
  • Flow version fields: these fields are set by querying the FlowVersionView object, based on FlowVersionView.DurableId == LogEntry__c.FlowActiveVersionId__c
    • LogEntry__c.FlowVersionApiVersionRuntime__c
    • LogEntry__c.FlowVersionRunInMode__c
    • LogEntry__c.FlowVersionNumber__c