Questions tagged [custom-metadata]

Custom metadata types are like list custom settings, but the records are deployable and packageable metadata.

Filter by
Sorted by
Tagged with
2
votes
1answer
868 views

Edit Custom Metadata Records from a Managed Package

Custom metadata records seem to be great mechanism to store application configuration details, as unlike Custom objects or Custom settings, custom metadata records can be packaged with a managed ...
4
votes
1answer
115 views

If a custom metadata type is subscriber editable can the subscriber create a record?

Is it possible to deploy a custom metadata type in a managed package with on record that users can edit without the permissions to create any more?
3
votes
1answer
1k views

How do you include fields values in MDT packages?

I have created a Custom Metadata Type, created some records ("Manage" button) and included it into a Change Set. When I deploy the CS, I only get the structure of the MDT not its values... I though it ...
5
votes
1answer
352 views

Deploying >10k Records within Custom Metadata Type Object

I have created a Custom Metadata Type object (lets say I have called it CMDObject__mdt). I have uploaded all of my configuration records into there but there are 12k records and so I cannot deploy ...
23
votes
5answers
9k views

Unit Test - Creating Custom Metadata

I have three questions that I'd like to be clarified. Is their anyway we could create Custom Metadata in Test Classes? I tried to create on my Test Class but I got an error saying the fields of the ...
1
vote
1answer
62 views

Custom metadatatype beta picklist fields in production

I'm trying to deploy some new custom metadatatypes from a sandbox to production, but the types contain picklist fields, which appear to be unavailable on my production org even though they are the ...
6
votes
1answer
6k views

Query For Custom Metadata Type WHERE Field = false Returning 0 Rows But Matching Record Exists

I'm querying my Custom Metadata Type VRecTypeNm__mdt using SELECT Label,ProductName__c,ProductCategory__c,EuOpps__c,NaOpps__c,PhysicalCard__c FROM VRecTypeNm__mdt WHERE Label = 'CP Virtual All In ...
3
votes
1answer
327 views

Is deploying of custom metadata records from sandbox going to overwrite existing metadata records in production

I wonder about this. Let's say: Step 1: I deploy custom metadata from Sandbox to Production. Step 2: Then somebody adds records to the deployed metadata in Production. This will create a difference ...
4
votes
1answer
101 views

Inline Edit on Custom Metadata

Is it possible to use inline edit feature with Custom Metadata? In most cases custom mdt acts like sObjects, however I cannot make it work and I can't find any related docs.
1
vote
1answer
700 views

Error - Must specify the name in the CustomMetadataType.CustomMetadata format - Custom Metadata Loader app

I've just deployed the Custom Metadata Loader app to my sandbox and am trying to load my first batch of records for my Custom Metadata Type Interchange_Table__mdt. When I select the CSV containing my ...
8
votes
1answer
13k views

Mass Insert Custom Metadata

Can Custom Metadata be mass inserted? My Custom Metadata Type is listed as a custom object in the Data Import Wizard but when I - select the object add new records choose the CSV file next none of ...
2
votes
1answer
97 views

Querying / Managing Queries with Multiple Permutations

I'm writing a class to implement Support.EmailTemplateSelector. To retrieve the correct email template, I'm querying a Custom Metadata Type Smart_Template_Loader_Conf__mdt, retrieving an ...
21
votes
5answers
29k views

Insert Custom Metadata for Unit Test

I have a controller that is querying custom metadata. I'm attempting to write unit tests to test the queries. Is it possible to insert test custom metadata for the purposes of unit tests?
2
votes
2answers
2k views

Can we update records of custom metadata type in Visualforce page

I am working with custom meta data type. Now I need to update record of custom metadata type by edit button in vf page. Please tell me if we can update record of custom metadata in vf page.
0
votes
1answer
174 views

Using custom metadata types for storing app information

I want to store app information like license type, number of guests users, license based app restrictions etc. I am looking for the following features along with this. This information should be ...
5
votes
2answers
1k views

Access custom metadata through global variables

It's common to get at metadata around a custom object using the common $ObjectType global variable. {!$ObjectType.Account.Fields.Name.Label} Can the same be accomplished with custom metadata to get ...
2
votes
1answer
196 views

Imitate Excel Index & Match Formula to Retrieve Value From Matrix

I have a formula in Excel which I'd like to replicate in an Apex Class. The below formula is in cell E3. =INDEX(Sheet2!$B$2:$F$4,MATCH('Sheet1 (2)'!B3,Sheet2!$B$3:$B$4,0)+1,MATCH('Sheet1 (2)'!D3,...
9
votes
3answers
10k views

How to retrieve or deploy Custom Metadata Records by ANT Migration Tool?

How to retrieve or deploy Custom Metadata Records by ANT Migration Tool? Is this possible? I guess it should be possible if this is available for packages and changesets but can't find a way ...
4
votes
1answer
275 views

Custom Metadata Query Returning Wrong Values

I have a single record under a Custom Metadata Object. The object has a checkbox field, and in this one record I have that box checked to TRUE. However, when I query the Custom Metadata Object, the ...
36
votes
1answer
5k views

What are the object and field name suffixes that Salesforce uses? Such as __c and __x

When working with API names for objects and fields they will often have suffixes such as __c and __x. What suffixes are there and what do these API name suffixes indicate?
4
votes
2answers
1k views

Why do I get a DisjunctionsNotSupportedException when doing a SOQL query on Custom Metadata?

I'm performing this query against a Custom Metadata object: SELECT Call_Center_Display_Script__c FROM VDN_Mapping__mdt WHERE VDN__c = '99999' OR DNIS__c = '123456786' LIMIT 1 But I'm getting this ...
2
votes
1answer
498 views

Passing Apex Tests with disabled Custom Metadata Type for settings

I am using a Custom Metadata Type in my Managed Package to control the execution of a Trigger. When I deploy the Managed Package, I will have the setting disabled. This causes my Tests to fail. How ...
7
votes
3answers
666 views

Why Force.Com Migration Tool Does NOT deploy CustomMetadata Records?

For the first time we started using Custom Metadata types to store our Custom Settings data. We created a new custom metadta type and created some metadata records for the object Eg: Metadata ...
3
votes
1answer
225 views

Checkbox on Custom Metadata Type Record will not update to True

I created a Custom Metadata Type with Public Visibility with Object Name "My_App_Settings". On My_App_Settings, I added a Custom Field: Field Label - "Enable Trigger" Type - Checkbox Field ...
0
votes
1answer
306 views

Custom Setting of Custom Metadata in Managed Package

I am deploying a Managed Package with a few APEX Triggers in it. Each organization that installs the Managed Package should be able to determine which Triggers run so I need a way to provide a "...
2
votes
1answer
3k views

In Apex limits, custom metadata records can have unlimited SOQL queries. Advantages?

Is there any way to overcome the apex limit for total number of SOQL queries issued using custom metadata records?
6
votes
2answers
2k views

Custom Metadata types

I am trying out a few things with custom metadata types. My sandbox has winter 16 release and my production is summer 15. I moved the custom metadata types from sandbox to production except that it ...
4
votes
1answer
2k views

Can i Create Custom Button same like Create PDF button of Quotes?

when i click on Create Pdf then this pdf Preview open,i need exactly same functionality . i want to create button like Create PDF button of Quotes, i make same functionality for my custom object , ...
2
votes
1answer
1k views

Metadata API - Entity of type 'CustomObject' named 'xxx' not found

I'm trying to retrieve the metadata of all the objects. I retrieve all the objects using soapConnection.describeGlobal().getSobjects() and then insert them in my custom class Tables. This is then ...
1
vote
1answer
614 views

How to create custom metadata record

What is the way to create custom metadata in salesforce org? Are there any specific steps that i should follow?I have tried to create custom metadata via force.com IDE by creating an object with __md ...
3
votes
1answer
933 views

Adding custom fields to standard Lead object via API

I'm currently using the Salesforce REST API to send data from our client app to our users' Salesforce accounts. While some of our data fits into the stock fields of a Lead object, we will also ...
1
vote
2answers
115 views

Metadata API without SOAP

I am new in the Metadata APIs of Salesforce world, but they look interesting. I want to know if I can use Metadata APIs or basically create custom objects / fields etc. on any org without using SOAP ...
67
votes
3answers
18k views

What is the difference between Custom Settings and Custom Metadata Types

Summer '15 is going to include the GA release of Custom Metadata Types. See Introducing custom metadata types: the app configuration engine for Force.com Are Custom Metadata Types intended as a ...