Skip to main content
added 20 characters in body
Source Link
identigral
  • 7.8k
  • 34
  • 33
  • 45

The values of system fields on the custom metadata object are only available via Tooling API. In the ontology of entities covered by Tooling API, you will not find a Custom Metadata entity. This is so because underneath the hood the custom metadata object is represented as a...custom object. Full list of system fields is documented; some of these fields aren't shown on the custom metadata type object definition screen.

The easiest way to grab this data from Tooling API is via REST using the query resource. To do so, you need to know the Object Name of custom metadata type. ItThe value of Object Name can then be used to compose a query against CustomObjectDeveloperName entity withpredicate in a query against DeveloperNameCustomObject predicateentity:

/services/data/v49.0/tooling/query/?q=SELECT+Id,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate+FROM+CustomObject+WHERE+DeveloperName='Truck_Configurations'

Response with redacted values:

{
  "size" : 1,
  "totalSize" : 1,
  "done" : true,
  "queryLocator" : null,
  "entityTypeName" : "CustomObject",
  "records" : [ {
    "attributes" : {
      "type" : "CustomObject",
      "url" : "/services/data/v49.0/tooling/sobjects/CustomObject/01I..."
    },
    "Id" : "01I...",
    "CreatedById" : "005...",
    "CreatedDate" : "...",
    "LastModifiedById" : "005...",
    "LastModifiedDate" : "..."
  } ]
}

The values of system fields on the custom metadata object are only available via Tooling API. In the ontology of entities covered by Tooling API, you will not find a Custom Metadata entity. This is so because underneath the hood the custom metadata object is represented as a...custom object. Full list of system fields is documented; some of these fields aren't shown on the custom metadata type object definition screen.

The easiest way to grab this data from Tooling API is via REST using the query resource. To do so, you need to know the Object Name of custom metadata type. It can then be used to compose a query against CustomObject entity with a DeveloperName predicate:

/services/data/v49.0/tooling/query/?q=SELECT+Id,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate+FROM+CustomObject+WHERE+DeveloperName='Truck_Configurations'

Response with redacted values:

{
  "size" : 1,
  "totalSize" : 1,
  "done" : true,
  "queryLocator" : null,
  "entityTypeName" : "CustomObject",
  "records" : [ {
    "attributes" : {
      "type" : "CustomObject",
      "url" : "/services/data/v49.0/tooling/sobjects/CustomObject/01I..."
    },
    "Id" : "01I...",
    "CreatedById" : "005...",
    "CreatedDate" : "...",
    "LastModifiedById" : "005...",
    "LastModifiedDate" : "..."
  } ]
}

The values of system fields on the custom metadata object are only available via Tooling API. In the ontology of entities covered by Tooling API, you will not find a Custom Metadata entity. This is so because underneath the hood the custom metadata object is represented as a...custom object. Full list of system fields is documented; some of these fields aren't shown on the custom metadata type object definition screen.

The easiest way to grab this data from Tooling API is via REST using the query resource. To do so, you need to know the Object Name of custom metadata type. The value of Object Name can then be used to compose a DeveloperName predicate in a query against CustomObject entity:

/services/data/v49.0/tooling/query/?q=SELECT+Id,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate+FROM+CustomObject+WHERE+DeveloperName='Truck_Configurations'

Response with redacted values:

{
  "size" : 1,
  "totalSize" : 1,
  "done" : true,
  "queryLocator" : null,
  "entityTypeName" : "CustomObject",
  "records" : [ {
    "attributes" : {
      "type" : "CustomObject",
      "url" : "/services/data/v49.0/tooling/sobjects/CustomObject/01I..."
    },
    "Id" : "01I...",
    "CreatedById" : "005...",
    "CreatedDate" : "...",
    "LastModifiedById" : "005...",
    "LastModifiedDate" : "..."
  } ]
}
added 36 characters in body
Source Link
identigral
  • 7.8k
  • 34
  • 33
  • 45

The values of system fields on the custom metadata object are only available via Tooling API. In the ontology of entities covered by Tooling API, you will not find a Custom Metadata entity. This is so because underneath the hood the custom metadata object is represented as a...custom object. Full list of system fields is documented; some of these fields aren't shown on the custom metadata type object definition screen.

The easiest way to grab this data from Tooling API is via REST using the query resource. To do so, you need to know the Object Name of custom metadata type. It can then be used to compose a predicatequery against CustomObject entity with a DeveloperName predicate:

/services/data/v49.0/tooling/query/?q=SELECT+Id,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate+FROM+CustomObject+WHERE+DeveloperName='Truck_Configurations'

Response with redacted values:

{
  "size" : 1,
  "totalSize" : 1,
  "done" : true,
  "queryLocator" : null,
  "entityTypeName" : "CustomObject",
  "records" : [ {
    "attributes" : {
      "type" : "CustomObject",
      "url" : "/services/data/v49.0/tooling/sobjects/CustomObject/01I..."
    },
    "Id" : "01I...",
    "CreatedById" : "005...",
    "CreatedDate" : "...",
    "LastModifiedById" : "005...",
    "LastModifiedDate" : "..."
  } ]
}

The values of system fields on the custom metadata object are only available via Tooling API. In the ontology of entities covered by Tooling API, you will not find a Custom Metadata entity. This is so because underneath the hood the custom metadata object is represented as a...custom object. Full list of system fields is documented; some of these fields aren't shown on the custom metadata type object definition screen.

The easiest way to grab this data from Tooling API is via REST using the query resource. To do so, you need to know the Object Name of custom metadata type. It can then be used to compose a predicate with DeveloperName:

/services/data/v49.0/tooling/query/?q=SELECT+Id,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate+FROM+CustomObject+WHERE+DeveloperName='Truck_Configurations'

Response with redacted values:

{
  "size" : 1,
  "totalSize" : 1,
  "done" : true,
  "queryLocator" : null,
  "entityTypeName" : "CustomObject",
  "records" : [ {
    "attributes" : {
      "type" : "CustomObject",
      "url" : "/services/data/v49.0/tooling/sobjects/CustomObject/01I..."
    },
    "Id" : "01I...",
    "CreatedById" : "005...",
    "CreatedDate" : "...",
    "LastModifiedById" : "005...",
    "LastModifiedDate" : "..."
  } ]
}

The values of system fields on the custom metadata object are only available via Tooling API. In the ontology of entities covered by Tooling API, you will not find a Custom Metadata entity. This is so because underneath the hood the custom metadata object is represented as a...custom object. Full list of system fields is documented; some of these fields aren't shown on the custom metadata type object definition screen.

The easiest way to grab this data from Tooling API is via REST using the query resource. To do so, you need to know the Object Name of custom metadata type. It can then be used to compose a query against CustomObject entity with a DeveloperName predicate:

/services/data/v49.0/tooling/query/?q=SELECT+Id,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate+FROM+CustomObject+WHERE+DeveloperName='Truck_Configurations'

Response with redacted values:

{
  "size" : 1,
  "totalSize" : 1,
  "done" : true,
  "queryLocator" : null,
  "entityTypeName" : "CustomObject",
  "records" : [ {
    "attributes" : {
      "type" : "CustomObject",
      "url" : "/services/data/v49.0/tooling/sobjects/CustomObject/01I..."
    },
    "Id" : "01I...",
    "CreatedById" : "005...",
    "CreatedDate" : "...",
    "LastModifiedById" : "005...",
    "LastModifiedDate" : "..."
  } ]
}
Source Link
identigral
  • 7.8k
  • 34
  • 33
  • 45

The values of system fields on the custom metadata object are only available via Tooling API. In the ontology of entities covered by Tooling API, you will not find a Custom Metadata entity. This is so because underneath the hood the custom metadata object is represented as a...custom object. Full list of system fields is documented; some of these fields aren't shown on the custom metadata type object definition screen.

The easiest way to grab this data from Tooling API is via REST using the query resource. To do so, you need to know the Object Name of custom metadata type. It can then be used to compose a predicate with DeveloperName:

/services/data/v49.0/tooling/query/?q=SELECT+Id,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate+FROM+CustomObject+WHERE+DeveloperName='Truck_Configurations'

Response with redacted values:

{
  "size" : 1,
  "totalSize" : 1,
  "done" : true,
  "queryLocator" : null,
  "entityTypeName" : "CustomObject",
  "records" : [ {
    "attributes" : {
      "type" : "CustomObject",
      "url" : "/services/data/v49.0/tooling/sobjects/CustomObject/01I..."
    },
    "Id" : "01I...",
    "CreatedById" : "005...",
    "CreatedDate" : "...",
    "LastModifiedById" : "005...",
    "LastModifiedDate" : "..."
  } ]
}