Questions tagged [custom-metadata-types]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Define CustomMetadata Type with API

I am trying to define a CustomMetadata type via an API. Any (Apex, REST etc) API is ok. So far I have only been able to create new instances of the type but I have not been able to define the type ...
1
vote
1answer
42 views

Updating Custom Metadata Type's Field value via Apex

I'm trying to update a Custom Metadata Type's Field value via Apex. I'm building an Account Assignment Round Robin tool, the Tool calls on the Custom Meta Data Type to get the Value of the position ...
0
votes
1answer
104 views

CREATE CUSTOM METADATA USING APEX

I wrote a little code that creates metadata custom type: public class CreateUpdateMetadataUtils implements Metadata.DeployCallback { public void handleResult(Metadata.DeployResult result, Metadata....
2
votes
0answers
18 views

Should I use List custom settings in my managed package app?

BACKGROUND I am working on a managed package application and I need to store some configuration data. This data is supposed to be edited by admins in the subscriber org. The setting simply stores ...
1
vote
0answers
16 views

Using Protected Component for “Secret Protection” with Unlocked Packages

How do "Protected Components" (Custom Settings or Custom Metadata) function when installed from an Unlocked Package. I was hoping that I would be able to use as "Protected (Managed)" to store "...
1
vote
2answers
71 views

Custom Label, Custom Setting or Custom Metadata Type for a simple URL

In one of my orgs, I have a simple Visualforce page with just an iframe inside. I don't want the URL to be hard-coded. I didn't develop anything else in this org. To store this simple URL, which one ...
1
vote
0answers
61 views

Custom Metadata Type - Page Layout - Can they be added to a managed package?

I have some Custom Metadata Types in a managed package. I just noticed that CMT's have page layouts. I can not see how I can add the CMT page layout or list view to my managed package. Is this ...
3
votes
2answers
264 views

What is the best practice to store custom configuration for a managed package application?

We are working on an application in managed package, and we need to store app configuration. Generally, we want to allow users to turn on/off some features in our app. For example, on the settings ...
4
votes
2answers
132 views

How to load configuration from custom meta data

I'm new to Salesforce, though an experienced Java developer and I'm trying to load my App's configuration using the recommended method of custom meta data. I've found this quite poorly documented ...
3
votes
1answer
248 views

Custom OAuth Auth Provider

I have a Rest API Endpoint that I am looking to callout to. Something like this: https://myrestservice.com/service/logs When setting up the Named Credential, I set up the URL to: https://...
2
votes
1answer
153 views

Why formula field in not allowed in custom metadata

I had a requirement where I need to show list of buttons in a record edit form page. These values I am taking from custom metadata record. Fields in custom metadata records are Market(Logged in user's ...
0
votes
1answer
33 views

Check if string element is present in custom metadata type list

I have a list of custom metadata type. I need to check if the string element is present in custom metadata type. Currently, I'm hardcoding the browser name in my if condition, but I need to compare ...
5
votes
1answer
161 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
56 views

Error updating custom metadata types through Talend

I am trying to update a custom metadata type record through the standard Salesforce connectors in Talend. But I receive an error that says "unable to update entity type". Are we able to update these ...
0
votes
1answer
32 views

How to overcome Salesforce System Error when deploying from Apex Code more than 1488 Metadata Records?

Conversion process of custom object records into Custom Metadata records using Metadata.Operations class enqueueDeployment method fails if deployment container contains more than 1488 records. ...
4
votes
1answer
2k views

Eliminate query on Custom metadata type?

I'm trying to use Custom metadata type to replace a List type Custom settings. I have to access the Custom metadata type information in multipe apex classes and triggers. When I use custom settings, ...
0
votes
1answer
14 views

How to update a package in test environment after I changed it in development environment?

How to update a package in test environment after I changed it in development environment? After creating a package I forgot to add a few records of a specific Custom Metadata Type. Now I went to the ...
2
votes
1answer
304 views

Is it possible to create a report (type) for custom metadata?

Custom metadata (types) looks like a cool feature. I have created dozens of instances of one that I made and now I would like to create a report on them, because a list view is not good enough. So ...
1
vote
1answer
155 views

Ant Problem deploying field on custom metadata type

I am trying to deploy a field on a custom metadata type using Ant. Here's my package.xml: <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> ...
2
votes
3answers
2k views

Check if User has Permission to update Custom Metadata

I'm building Visualfroce for updating Custom Metadata. When User without required permissions tries to update them he gets I tried checking MetadataType__mdt.getSObjectType().getDescribe()....
1
vote
1answer
251 views

Do custom metadata types count against the custom object limit?

I couldn't find any information on this doing a search. I know that custom settings count against the custom object limit, but wasn't sure about custom metadata types. This is important as we can ...