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
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
168 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
189 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
8k 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
250 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 ...
34
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
491 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
641 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
199 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
279 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
2k 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
565 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
898 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
113 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 ...
65
votes
3answers
16k 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 ...