Questions tagged [metadata-relationship]

A metadata relationship field is a custom field, available only on custom metadata types, that represents a relationship to another type of metadata.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

What's the best way to pull all the Metadata types from the Salesforce?

I have used describeMetadata() call to fetch the xml names but it's showing only few out of what we have in the Metadata coverage url. I was wondering if there is a way to pull all the Metadata types ...
0
votes
1answer
22 views

Data Structure to Solution

Current State On Account object, there is a record type Supplier. On the Supplier record are 5 checkboxes . Each of these checkboxes indicate a Product. A supplier may sell a product to an consumer or ...
2
votes
1answer
171 views

Finding unused Apex Classes with Tooling API and MetadataComponentDependency

Is there a way to SOQL find all Apex Classes (or fields or any other metadata) that are not used/referenced in an org by doing a smart Tooling API SOQL on MetadataComponentDependency? When I run ...
0
votes
1answer
87 views

Adding a custom field to standard object activity [duplicate]

I would like to add a custom Date field to a standard Activity object. Lets say this date field is called 'food_expiration__c'. Looking at another question: How to create Custom Fields on Standard ...
0
votes
0answers
67 views

Insert field in Custom Metadata Type with Relationship field using Metadata API

I have Custom Metadata Type with Metadata Relationship field. I'm trying to insert a new record in it, it runs successfully with no errors, but doesn't insert the row! Here is my code: Metadata....
2
votes
0answers
245 views

Cannot ORDER BY when querying Custom Metadata

I have Custom Metadata types with simple relationships between them. When I query them with a relationship query and try to ORDER BY, only 1 of the inner records is returned. I run this in Anonymous ...
0
votes
1answer
19 views

Custom Layout Views for a Record with relationship details

Is it possible to create custom views for a particular record that will include details on related fields? For example, I have a Student object and a Course object, and then I have a ...
6
votes
1answer
512 views

Qualified API Name returns null in Test context for Custom Metadata

Winter 19 release provides ability to instantiate the custom metadata in apex .This seems to be useful to generate data for test classes . However when we have metadata relationship entity or field ...
0
votes
1answer
1k views

Error with Custom Metadata deployment via metadata API

In testing dev org (org A) CustomMetadata was made and added to the package. This package was retrieved via metadata API (VS Code + ForceCode plugin). Now I am trying to deploy (migrate) all changes ...
2
votes
0answers
57 views

Is there a way to find all the data extensions that make use of a particular data relationship?

I would like to see a list of all data extensions (standard and filtered) that are using a specific data relationship. I thought there might be a column in data extensions that displays data ...
6
votes
2answers
438 views

Custom Metadata Relationships and Compound Fields

Custom Metadata Types now support relationships, so we can have a reference to an object and even references to field definitions. Is there a way to reference the individual parts of compound fields, ...