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
0 answers
84 views

Custom Metadata relationship - unable to create

I want to create relationship between two Custom Metadatas. When I'm trying to add appropriate field and save, I get message Cannot Create Master-Detail Relationship You cannot create a new Master-...
-2 votes
3 answers
142 views

how to know which all child objects has relationship with opportunity in salesforce. (Opportunity is parent)

I need to know which all objects have parent as Opportunity. Is there any easy way to get the details?
  • 465
1 vote
0 answers
183 views

Cannot select person account fields in Custom Metadata Field or Particle relationships

Given a Custom Metadata Type with an Entity Definition Metadata Relationship field ("Account Object" in screenshot), and a Field Definition Metadata Relationship field ("Person Account ...
  • 11.1k
0 votes
1 answer
95 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
1 answer
36 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
2 answers
1k 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
1 answer
460 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 ...
  • 481
1 vote
0 answers
147 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....
3 votes
1 answer
484 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 ...
  • 440
0 votes
1 answer
77 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 ...
  • 1,000
9 votes
1 answer
1k 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
1 answer
2k 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
0 answers
61 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
2 answers
840 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, ...
  • 24.8k