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
0
votes
0answers
17 views

External URLs with Friendly Name(Translatable) which user can provide on Org and it is visible on community portal

I have a requirement from user in which they want to show a list of URLs(friendly name which are translatable) at country level, on Home page of community. So there are several country, and some place ...
-3
votes
1answer
31 views

What is the best way to fetch values from Custom Metadata? [closed]

Select MasterLabel, Inactive_Email__c from InactiveUsers__mdt
2
votes
1answer
52 views

Do Custom Metadata Queries Count Against Query or Query Row Limits?

According to the Release Notes for Custom Metadata Types: Use SOQL queries to retrieve data from custom metadata types and their records. Unlike other Apex transactions, you can make unlimited SOQL ...
0
votes
2answers
42 views

How to fetch custom metadata in after update trigger that was already retrieved in a LWC?

We have a LWC,mycomponent that will fetch custom metadata records, myCustomMetadataList and store them into a List variable within mycomponent. When a user clicks on the Save button on this component, ...
0
votes
0answers
15 views

Create Dependent Picklists in Custom Metadata declaratively

In our project we've got a Custom Metadata with 2 Picklist Fields: Field 1 Field 2 Field 1 is a Controlling field for Field 2 Two questions: How to create two dependent picklists like we've got in ...
1
vote
1answer
50 views

Is it possible to evaluate a Salesforce formula in Apex?

I want to do something dynamic with an Apex method. I have some custom metadata records that contain an object and field definition. I want to inject the field value from the object into a custom ...
2
votes
1answer
24 views

Custom metadata with Entity Definition field in Scratch Org fails to display custom object name

we have that Custom Metadata which contains a "Entity Definition" field, which is basically a lookup to an object (either standard or custom). We pulled our source from a sandbox to a Github ...
-1
votes
3answers
48 views

batch apex opportunity records are not updating with compare of metadata records

Opportunity records fields compareing with custom metadata record and based on values match opportunity stagename will update but it is not working and gettin error in apex job also that duplicate id ...
0
votes
1answer
52 views

Custom Metadata Error: Developer name already exists for given entity or has been previously used. Please choose a different name

We are trying to update custom metadata records via deployment from source org (Dev Sandbox) to target (i.e. Packaging environment - Dev Edition), these records were packaged into a managed release in ...
0
votes
0answers
116 views

How to map fields using custom metadata?

I have a requirement where i have two objects say, Product and Product line item(Both are custom objects). I have got a requirement where i need to map the fields in the product record to the product ...
1
vote
1answer
50 views

Metadata.Operations.enqueueDeployment Callback not allowing Callouts

I have a scenario where I am saving custom metadata for an external API configuration. I want to deploy all the metadata, then after the deploy job is done, make a callout to the API to verify the ...
0
votes
1answer
25 views

Custom metadata loader Mapping

I am using custom metadata loader to perform the insertion of custom metadata with 200 records. Although I have mapped the values correctly I am hitting the below mapping error. Note: There is no ...
2
votes
1answer
48 views

How to properly test Custom Metadata in Apex?

I'm having some trouble trying to test this methods: public class SendingSAPServices { public static final String SERVICE_SYNC_CLIENTE = 'SYNC_CLIENTE'; public static final String ...
0
votes
1answer
44 views

System.UnexpectedException: Metadata.Operations.enqueueDeployment: Salesforce System Error: 1393463776-817 (799279837) (799279837)

I have some code which updates a Custom Metadata setting, something like this: public void clearValue() { Metadata.CustomMetadata customMetadata = createCustomMetadata(); customMetadata.values....
0
votes
1answer
48 views

Cannot install custom metadata types to another org

I am performing a few REST calls in my lightning app. And the urls and tokens for REST calls are stored as custom metadata types and I query the values before making the REST call. I created a managed ...
0
votes
0answers
20 views

Metadata migration

I migrated the custom metadata type from lower to higher environment but I am unable to view any records. Is it anywhere related to profile access issue.
0
votes
1answer
21 views

Unmanaged Package overrides custom metadata

I have custom metadata with fields that would be only controlled by subscribers but whenever I have uploaded the new version of the package (sfdx package) in production, it overrides the existing ...
0
votes
0answers
101 views

Relating Custom Metadata Type records to Record Types with Validation Rules

I want to create Custom Metadata Types and related them to Record Types on different objects. I've created the custom metadata type and a metadata relationship field to an entity definition so that I ...
0
votes
1answer
126 views

Dynamic conditions using custom metadata

Assume that on update of an sObject record, I want to execute some code only if a particular condition is satisfied. Now the requirements are very dynamic, and conditions will change often. Infact I ...
1
vote
1answer
46 views

LWC: Is it possible to store part of the schema string to import in Custom Metadata

I want to store the fields that need to be imported from the schema in my LWC in Custom Metadata. So for instance I want to make the following line dynamic: import MY_OBJECT_ID_FIELD from '@salesforce/...
1
vote
1answer
65 views

Custom metadata type Field Definition Data Type evaluating incorrectly in validation rule

A custom metadata type has a Field Definition related to an Entity. The following validation rule ensures the value of this field can only be a User lookup: AND( FieldDefinition__c != NULL, ...
0
votes
1answer
130 views

Query or extract attachment metadata in bulk

Is it possible to query or extract the metadata/document properties from attachments in bulk? Previously I have been able to get around this by using the object IDs to bulk download the files and then ...
1
vote
2answers
97 views

Custom Metadata Type: Metadata field type linking to a Salesforce User

I have a custom metadata type that stores configuration information related to my Salesforce package. One piece of information I'd like to store is a link to a Salesforce user. The field controls ...
0
votes
0answers
33 views

Custom Settings on Custom Button link

I have a custom button link and I want its URL to be dynamic. I am trying to utilize either custom settings/metadata to store the url but whenever I do this, I am getting "This page isn't ...
2
votes
1answer
245 views

Dynamically access Custom Metadata Record from formula field

I am currently using Custom Metadata Types to store offset values. The Name field will be a TimeZoneSidKey (with _ instead of /). Then I am using a formula field that will basically retrieve a value ...
1
vote
1answer
28 views

Custom Meta data in Aura Design File

Currently have an aura component where the object is hard coded in the cmp and design file. I would like to use a cmt so that the object can <design:component> <design:attribute name="...
0
votes
0answers
23 views

Can I add custom fields or values to existing metadata objects?

Our app allows users to select Lightning components to populate our legacy "widget" framework. Yes, I know we could redesign the product to use Lightning pages, but we're not doing that ...
0
votes
1answer
38 views

Why is ORDER BY incorrectly sorting fields from a custom metadata type? [duplicate]

I have a SOQL query on one of my org's custom metadata types that looks like: List<Metadata_Type__mdt> = [ SELECT String1__c, String2__c FROM Metadata_Type__mdt ...
1
vote
1answer
31 views

How quickly are updates to Custom Metadata Types committed?

In continuing to evaluate the best approach to storing security credentials, I have found the following Trailhead module for Secure Secret Storage: https://trailhead.salesforce.com/content/learn/...
0
votes
1answer
99 views

Custom metadata types - subquery relationship name

Is it possible to use Custom Metadata Types in the subqueries? If yes, how? In my case, there is a custom metadata type named Custom Actions and there is a Next_Action field in it. When I query for ...
1
vote
2answers
408 views

How would I deploy history tracking for the owner field using ant?

I am using visual studio code to retrieve source from the org and then deploying changes in ant using the package.xml. Is there a way to grab the history field tragging flag for the standard field "...
1
vote
1answer
96 views

Bulkified Flow and Custom Metadata Query

I have a straightforward autolaunched Flow (triggered by PB). It looks up some characteristics of a CampaignMember and based on that, returns a score ("fireball") value. The two subflows here write to ...
0
votes
0answers
88 views

Custom Setting vs. Custom Object vs. Custom Metadata Type for Multiple Environment Credentials [duplicate]

I am looking to confirm the best practice of storing client / secret credentials for multiple environments for multiple external webservices within salesforce. Below is the analysis I have done ...
0
votes
1answer
4k views

How to fetch Custom Metadata Type record in apex and compare it with a string

I have a string which is holding email ids of users from my org. Now I have few custom metadata type records which are holding email IDs of users who are inactive. Now I need to compare the string ...
1
vote
0answers
45 views

SOQL query with 'LIKE not giving expected results

In my org, I've set up some custom metadata on which I have all text fields which I am querying. On my query without anything in the where condition SELECT Label,Fields__c,Labels__c,Scheme__c from ...
1
vote
1answer
1k views

LWC “Record Detail Page” for Custom Metadata Type

I'm exploring a concept that involves exposing Custom Metadata Type records to business users in a read-only format in a kind of pseudo-record-detail-page in Lightning Experience. My requirements are:...
1
vote
1answer
140 views

Packaged Custom Metadata Type Records Not Editable Once Deployed Even Though They Are Public

I have a managed package which has a custom metadata type. My package has default records in that custom metadata type. The custom metadata has been set to have a visibility of Public. Also, those ...
0
votes
1answer
135 views

How to store OAuth credentials in Salesforce Securely [closed]

I have implemented a custom auth provider by following the steps from this help guide https://help.salesforce.com/articleView?id=sso_provider_plugin_custom.htm and the setup works as expected. Now ...
1
vote
1answer
213 views

Custom Metadata value in formula - access values based on field label or record data?

According to this article (https://help.salesforce.com/articleView?id=custommetadatatypes_validation_rules.htm&type=5) we can use Custom Metadata in a formula now. What I'd like to know is how ...
1
vote
1answer
33 views

How do I get the all values of a Custom Metadate Type record into a set?

I have a custom metadata sObject - I want to retrieve all the field values into a set. Health_Cloud_Case_Integration_Settings__mdt cmdtRecords = [SELECT Id, Field1, Field2, etc FROM ...
0
votes
1answer
56 views

Why does my custom metadata field defintion query not work?

I'm reading the answer to this following question: How to get a field's API name when querying a field of datatype, Metadata Relationship(Field Definition) However, when I run the following ...
1
vote
1answer
244 views

Custom Metadata deployment through MDAPI

I have been trying to deploy a package through SFDX (sfdx force:source:deploy -x manifest/package.xml ..). My package contains custom Metadata to be deployed.I have made sure that they are in my ...
3
votes
0answers
63 views

How to use the Feature Management App (FMA) to grant access for a defined number of users?

The FMA allows named booleans, integers and dates to be set by the creator of a managed package so they can turn package features on and off per customer. The boolean option is pretty obvious: every ...
4
votes
1answer
104 views

Determine whether SObject(Entity Definition) can be used in Metadata Relationship field type on Custom Metadata Type

When creating Custom Metadata entries (especially via API) with relationship fields into other objects, you are limited to certain SObjects that can be used. The Custom Metadata implementation guide ...
4
votes
1answer
133 views

How do I tell if a custom metadata type field is a Field Definition?

I have the following code: public static void getFields(){ SObject obj = (SObject) Type.forName('Health_Cloud_Integration_Settings__mdt').newInstance(); DescribeSObjectResult describe = obj....
0
votes
1answer
170 views

Process Builder & Custom Metadata Types - Issue with Long Text Area

I want to create a Process Builder that updates a Long Text Area field with a Long Text Area field value from a Custom Metadata Type. When I'm selecting the Custom Metadata Type in the Process ...
2
votes
0answers
172 views

Unlocked Package - Modify Custom Metadata Type in Subscriber Org

I created an Unlocked Package that contains a Custom Metadata Type (CMT). When I install this package inside an org, I would like to give access to admins to edit this deployed CMT (e.g. - create a ...
1
vote
1answer
33 views

Is Metadata.CustomMetadata and Metadata.Operations available in Essentials and/or Professional edition?

I can't really find much on the subject - is Metadata.Operations and Metadata.CustomMetadata available in Salesforce Professional and/or Essentials? I know that simply selecting metadata like so [...
0
votes
1answer
46 views

How to add permissions for custom settings/metadata for managed package

I have a managed package that are using custom metadata and custom settings and I want to use permission sets so we can control the access permission of these custom metadata and custom settings. I ...
1
vote
1answer
106 views

Querying Custom Meta data with Like and IN operator

I like to query Custom-metadata multiple values with like operator. I am able to successfully query with a single like i.e. [... From City_Setting__mdt where Label Like 'EmailToSign%' ...] //returns ...

1
2 3 4 5