Skip to main content

All Questions

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

Deploying prefixed metadata with DevOps Center/CLI: "Only components in the same namespace as the organization can be created through the API"

I'm trying to wrap my head around how metadata-driven deployments (e.g. through DevOps Center or the sf CLI) can coexist with metadata created by managed packages. For example, our org installed the ...
Stephen Funk's user avatar
1 vote
1 answer
270 views

Accessing value of a package-protected custom metadata type record from Apex

I have created a package-protected custom metadata type (sf_Assistant_Settings), a field (Value) and a record (API_Key). I use it to store an API Key which is used when making http requests to an ...
LoMaPh's user avatar
  • 83
0 votes
0 answers
152 views

Duplicate value on record: on Custom Metadata for deleted record

I have a managed package, beta version, installed in an org. There is a Custom Metadata type with a custom field that is set to Unique Values. I created a record and had a unique value of '15' in that ...
awh01's user avatar
  • 141
4 votes
2 answers
249 views

Packaged CMDT record fails to update even for Sysadmin

Note: There is a related Salesforce Support Case #45059901 Convinced by the answers of some real ISV experts, I refactored my Managed Release Package from ugly Custom Settings to Custom Metadata with ...
Robert Sösemann's user avatar
1 vote
2 answers
251 views

Store settings and API credentials in packaged CMDT records

My current Managed Package supports a single GPT API and covers that with multiple packaged components: Protected Custom Setting for secure storage of API credentials (Named Creds don't work) Custom ...
Robert Sösemann's user avatar
0 votes
1 answer
429 views

How to use AuthProviderPluginClass in managed package?

I am trying to create custom Auth. Provider for my managed package. Class extending Auth.AuthProviderPluginClass works well in namespaced scratch org, but when packaged and installed in sandbox I am ...
Michał Piątek's user avatar
0 votes
0 answers
75 views

Metadata Types access from package

I'm facing with following error: Developer script exception from Org_Name : 'prefix.AnyClassName' : Access to entity 'prefix__Some_Metadata__mdt' denied: Entity is not api accessible I have a ...
Igor Vasylevskyi's user avatar
1 vote
2 answers
156 views

Automate or simplify post-install steps for Packaged Flows

I am planning to add a few Flows to my Managed Packages. E.g.: Record Triggered Flow Templates that detects certain conditions Screen Flows that define UI for Slack notifications sent out from 1.) ...
Robert Sösemann's user avatar
2 votes
0 answers
641 views

Custom Metadata Type - Custom Field - Picklist Values Not editable after packaging

I'm currently trying to figure out why we're unable to edit Custom Metadata Custom Field Picklist Values after packaging in another org. From my understanding, I should be able to edit these existing ...
Kevin Yao's user avatar
  • 167
0 votes
1 answer
361 views

Are "Modify Metadata Through Metadata API Functions" and "Customize Application" permissions packageable?

I created a beta package with the "Admin" permission set. In the packaging org the Permission Set has permissions Modify Metadata Through Metadata API Functions and Customize Application. ...
Denis Lukeniuk's user avatar
3 votes
0 answers
88 views

Cannot access salesforce namespaced protected custom metadata

I created a namespaced protected custom metadata to store API keys, it is working fine in my scratch orgs. However, when I am packaging it as 1GP and installing the beta package in a developer test ...
Arup Sarkar's user avatar
0 votes
1 answer
383 views

Metadata.Operations.enqueueDeployment namespace error

My Apex code that does a Metadata.Operations.enqueueDeployment of some custom metadata records including in a 2GP managed package worked in a scratch org that had the namespace set, but fails when run ...
Keith C's user avatar
  • 137k
1 vote
0 answers
1k views

Custom Metadata Type: Editing SubscriberControlled field values in managed package

I have a Custom Metadata Type which is part of a managed package I created. This type is used in order to map certain properties of a Salesforce Lead Object to some other custom properties of my own. ...
Michael Wolz's user avatar
1 vote
1 answer
910 views

Is it correct that "Subscriber editable" custom metadata type fields avoid the need for an unmanaged package?

Old catchily titled documents such as How to use custom metadata types to save years of development on app configurations say: Subscriber-editable records: Put metadata records you want edited by ...
Keith C's user avatar
  • 137k
0 votes
0 answers
91 views

How to package Salesforce data (not metadata)

This question is NOT about Custom Metadata Types where records can be indeed be put into Packages. It's about packaging real data. Records of Custom or Standard objects. Just assume you want to have ...
Robert Sösemann's user avatar
3 votes
1 answer
1k views

How to securely deploy secret key in custom metadata - 2GP Managed Package

I have recently created a managed package and I am preparing it for security review and final deployment. In the code I need to sign JWT used to authenticate against external API, for this purpose I ...
Michał Piątek's user avatar
0 votes
1 answer
935 views

Creation of Custom Metadata in a Managed Package

This is an expansion to this question by Robert. Originally he did not put "Managed Package" in the title so I feel like most of the answers missed that part. I am building a managed package ...
Arthlete's user avatar
  • 5,039
2 votes
1 answer
989 views

Managed package - delete custom metadata using apex

We are building a managed package which having an integration with external system. We are getting the external system credentials from the Subscriber org admin and storing it in a protected custom ...
Rams's user avatar
  • 31
0 votes
1 answer
3k 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 ...
SFDC_Dev's user avatar
0 votes
1 answer
641 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 ...
Jayesh Babu's user avatar
18 votes
7 answers
4k views

Custom Metadata vs. Custom Objects in Managed Package

I worked on Managed packages for nearly 10 years now and never missed Custom Metadata Types. Not before they came and not after they were announced. I didn't come across a single great and technical ...
Robert Sösemann's user avatar
3 votes
0 answers
311 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 ...
Keith C's user avatar
  • 137k
2 votes
0 answers
538 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 ...
smukov's user avatar
  • 5,623
0 votes
1 answer
171 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 ...
qaxi's user avatar
  • 113
1 vote
1 answer
794 views

Editing protected Custom Metadata Type in subscriber org through LMA org

I do have verified that the Protected custom settings are editable when logged in through LMA org. However, I just want to confirm this behavior is the same in the case of the protected Custom ...
Madhavi Bhattad's user avatar
0 votes
0 answers
94 views

Can't able to delete meta data records in my dev org to delete/ uninstall a managed package

I have tried to uninstall a managed package from my dev org and got failed to remove the components because I had some custom metadata records to remove from the org. But when I try to delete those ...
Hariprasath's user avatar
2 votes
1 answer
1k views

Cannot update Custom Metadata records from Subscriber org in managed app

The custom fields are subscriber editable, and the custom metadata is not protected. I can update the field values in developer org in a managed app, but when I try to update in subscriber org in ...
Abhishek's user avatar
  • 123
2 votes
1 answer
3k 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 ...
dacology's user avatar
  • 2,992
4 votes
2 answers
2k 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 ...
Eduard's user avatar
  • 5,211
0 votes
1 answer
63 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 ...
manymanymore's user avatar
7 votes
1 answer
1k views

Packaging org: Deleted custom metadata records

My company is in the final stages of a project where we developed (using DX but 1st generation packaging) a managed package for the customer. This week is the first time we're actually packaging it up ...
Charles T's user avatar
  • 11.1k
1 vote
0 answers
77 views

Remove actionOverrides to managed packages

I want to set a flexipage as an org default by adding an action override to Case.object-meta.xml: <actionOverrides> <actionName>View</actionName> <content>Case_Record_Page&...
James Kelly's user avatar
2 votes
2 answers
255 views

Open up access for managed package subscriber

I am developing my first managed package where the default installation will be free and will provide access to some data. And if a user wants to go Paid, he will have access to additional data. ...
SFDC Dev 27's user avatar
2 votes
1 answer
2k views

Custom metadata types - Deletion & access

I have 2 questions on Custom Metadata type records: Is it possible to delete custom metadata records in a subscriber org? I can delete it in the packaging org but how can I send this deletion signal ...
SF Learner's user avatar
  • 1,037
4 votes
1 answer
998 views

Can FeatureManagement.changeProtection() be used to Protect any Custom Object?

Winter 18 introduced the FeatureManagement Apex Class, which contained a method which I was not expecting: changeProtection. According to the docs, changeProtection can be used to "Unprotect" objects ...
zachelrath's user avatar
  • 9,593
1 vote
1 answer
136 views

Can we skip the custom metadata object name field during setup?

I've a sync status that I need to map across platforms for which I'm planning to use the custom metadata type because of the following reasons. I've a list of key-value pair records that needs to be ...
Vignesh Damodharan's user avatar
11 votes
1 answer
3k views

How do I update a namespaced Custom Metadata Type record after making a package?

Here's the situation: We have a Lightning App that reads from a Custom Metadata Type to populate a settings/configuration page. Then you can edit the page and click save and that will create a ...
ScriptMonkey's user avatar
0 votes
1 answer
63 views

Can we use Custom Metadata Types in Group Edition?

We have a managed package currently using custom settings, and it has been installed in all editions except Database.com, i.e. Group, Professional, Performance, Unlimited and of course Developer. We ...
BuddhiP's user avatar
  • 543
1 vote
1 answer
357 views

How to delete a custom metaData which I have added as a component in Managed package

How to delete a custom metaData which I have added as a component in Managed package? I dont see any delete button available and when I try to delete via workbench I get insufficient rights error.
prasanth's user avatar
  • 187
2 votes
1 answer
3k 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 ...
BuddhiP's user avatar
  • 543
4 votes
1 answer
285 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?
brezotom's user avatar
  • 1,087
2 votes
1 answer
668 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 ...
Jesse Miller's user avatar