Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [metadata]

Metadata contains all the customization you can do to your salesforce organisation. Use this tag for specific questions about the metadata itself. Use the metadata-api tag for questions on deploy/retrieve/update/delete of the metadata with salesforce organisations.

1
vote
2answers
27 views

SFDX: where can set Field-level security and accessibility?

Every time I push my app to a new scratch org, I'm having to go into each field of each custom object to set the field-level security and accessibility (except for the required fields). I didn't have ...
1
vote
1answer
30 views

IntelliJ - Can't resolve symbol after adding a label

I added a label and came from : doc.addError('vous ne pouvez pas ajouter de PJ');* to : doc.addError(System.Label.Document_messageErrSuppressionPJ); It's fine on dev console, but IntelliJ isn't ...
5
votes
0answers
27 views

Scratch org was created with entitlements enabled, but pulling the source results in entity not found?

I created a scratch org with the following definition file: { "orgName": "Company, Inc", "edition": "Enterprise", "features": ["PersonAccounts", "ServiceCloud"], "settings": { "...
2
votes
1answer
42 views

Retrieve all Custom Metadata for a single type [duplicate]

Is it possible to somehow retrieve all metadata for a single custom metadata type via ant or sfdx mdapi ? I've tried this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Package ...
0
votes
1answer
30 views

Uploading Custom Label From IDE

I was trying to add Custom Label to my SFDC sandbox, I am adding: <labels> <fullName>Test</fullName> <language>en_US</language> <protected>false</...
1
vote
0answers
11 views

deployed <actionOverride> but action not overriden

I am overriding the edit button with a lightning component, in my sandbox it works fine. See the metadata: when deploying I only deployed the section of metadata that I wanted to add, it looked like ...
0
votes
1answer
35 views

How to assigned/enabled connected app in permission set using package.xml

I have one permission set and one conncted app ,I have enabled this Connected app in permission set ,but when i am retiriving Permissions set not able to retrieve it in Package. i am doing like below....
8
votes
0answers
105 views

Metadata.DeployCallback is not called when deployment status is Fatal Error

BACKGROUND I am working on a feature that deploys custom metadata record. I am using a scratch org with a linked namespace. This is a my method which initiates deployment: @AuraEnabled public ...
1
vote
0answers
19 views

DX retrieve metadata folder for deployment - folder self destructs

I'm attempting to retrieve metadata from my sandbox org in order to deploy to production. I've been doing this over the past month or so using the following commands in my VSCode terminal: export ...
0
votes
2answers
37 views

I need data backup and all metadata backup of salesforce org including Managed package

I need data backup and all metadata backup of salesforce org including Managed package. I need all components including managed package such as cloud sense .Please suggest
0
votes
2answers
36 views

retriving Objects,Visualforce,apex permissions from permission set via SOQL in apex

I would like to retrive the Object,Apex Class,VF pages,Tab settings etc from a permission set via apex. I'm not able to find the exact query for it. Found the PermissionSet class in salesforce fits my ...
1
vote
1answer
23 views

Set Password Policy to 'Never Expire' using metadata

I need to deploy profile with Password policy setting as 'Never Expire'. I am not able to get it deploy, don't find the tag use to deploy password settings.
1
vote
1answer
64 views

How can we get custom field Ids in apex from a different user

We need to get some custom field ids thru apex - we used to do it by invoking tooling api request, but now this requires the user has to have the permission "View Setup and Configuration" on his ...
0
votes
1answer
23 views

Attempt to de-reference null object

I am trying to insert queues using metadata api but getting error while inserting sobject in the queue. MetadataService.QueueSobject obj =new MetadataService.QueueSobject(); obj.sobjectType='Account';...
0
votes
1answer
28 views

Deploying Metadata with rest resources

As of API 43 there seems to have been some rest resources added to the metadata api. This Documentation Seems to be lacking the ability to tell me how they want me to send the zip package with the ...
0
votes
0answers
25 views

Unknown user permission: ArchiveArticles

I am trying to deploy permission set which has Manage Article permission. Upon deploying following metadata where Salesforce Lightning Knowledge is disabled, I am getting Unknown user permission: ...
0
votes
1answer
34 views

sfdx - selective metadata push

A bit of background: Project currently have a need to implement the Salesforce Shield solution in a project, and currently the Enterprise/Unlimited/etc. scratch orgs do not support this feature. The ...
0
votes
0answers
20 views

deployment metadata error after retrieve without doing changes

I have retrieved using the mdapi all the layouts that I have inside Salesforce, without doing any modification I tried to deploy in the same org and surprisingly for me the deployment fails in three ...
0
votes
0answers
35 views

How to get object metadata like recordtypes entirely clientside in a Lightning Component?

I am working on a Lightning Component and want to create a record using lightning:recordEditForm. using lightning:recordEditForm is great because it allows us to create records without Apex. However,...
0
votes
0answers
40 views

JSForce - Updating picklist value API names

I'm trying to automate with JSForce a manual step which consists on renaming the API name of some pick-list values but doesn't look like it's possible. Tried update with conn.metadata.update('...
1
vote
1answer
156 views

Global Action Layout Metadata/Deploy

We are currently doing our deploys using Ant. In our package.xml, we have "almost" everything set to "*". We noticed that after a deployment, the Global Action layouts, as well the default values we ...
2
votes
0answers
68 views

Unable to update manage package picklist field entries using apex code (metadata API)

Unable to update manage package picklist field entries using apex code (metadata API). I tried using two ways of creating picklist values of metadata API. Way 1: public static void ...
1
vote
1answer
50 views

How to use Metadata API to search which field is used in validation rules [duplicate]

I want a solution to understand how we use metadata API to get a list of validation rules in which a particular field api is present
1
vote
1answer
15 views

Custom UI and parameters on Managed package install

I am developing an application that can be isntalled as a managed package. I want the customers to be presented with some UI during the package install that would let them configure some values my ...
2
votes
1answer
23 views

Knowing a priori ProfileSessionSetting metadata member name

I use ProfileSessionSetting to deploy session timeout from an org to another. When I build the package.xml I have initially retrieve all the profile settings with a wildcard: <?xml version="1.0" ...
0
votes
1answer
114 views

Setting Picklist values dependency using metadata api

I have created two picklist values using metadata api and able to insert the values in the both the picklists, but I have to set the dependency between them, like one is controlling and other would be ...
1
vote
0answers
24 views

MetadataService in apex overriding the IP ranges on Profile instead of adding the new onces

I have requirement to update ProfileLoginIpRange on the profile. Lets say there are 5 IP ranges already added on the profile and I want to add 1 more to it. Code Used, MetadataService.MetadataPort ...
1
vote
1answer
28 views

Metadata API — Creating List Views throws (FIELD_INTEGRITY_EXCEPTION) when specifying Filters or Columns

I followed instructions given in https://github.com/financialforcedev/apex-mdapi to create list views in my dev org. I am trying to create List View for Accounts. I am able to create simple list ...
1
vote
1answer
30 views

Choosing API to restore an object

I've got a backup of objects such as User, Profile, etc. I wanted to restore them through the provided set of APIs. I was wondering if there is any predefined set of objects that can be restored ...
0
votes
0answers
16 views

Ways find every reference to a Role in Metadata

my company is revamping a Role hierarchy, trying to slim it down and make more agile. The plan is to delete a bunch of Roles that are not used or are redundant. What is the best way to do a Metadata ...
0
votes
0answers
44 views

Sublime Text with Mavensmate reverts changes made to package versions in Org

I have Sublime Text with Mavensmate plug-in. I have Mavensmate application which is connected to the Org. I made a change to the version of a package in an apex class. After that, I refreshed all ...
3
votes
1answer
34 views

How to deploy Help & Training from one org to another in salesforce?

I have added some resources/links under help & training section in one org. I am looking to deploy this customization to another org. How can I achieve this?. Which metadata component I should ...
1
vote
1answer
57 views

Deploying a custom Email field set to Unique fails

I'm trying to create a unique email constraint on our Contact object, the general consensus seems to be to create a new, unique custom field, and copy the Email field into it via a trigger or workflow....
0
votes
1answer
25 views

I have moved account data through data loader but Attachments files is not showing

I have moved account records through data loader, but all attachments, files, record type are not showing in my target org, only account name and some other fields are showing. Can you please help me ...
0
votes
0answers
24 views

MIXED_DML @testSetup TestMethod [duplicate]

So I am seeing a very weird issue. I am getting a MIXED_DML error in one of my test methods. In the @testSetup annotated method, I am indeed perform a mixed dml transaction (shame on me). However, ...
6
votes
1answer
43 views

sObject describe metadata showing duplicate picklist value entries

I'm doing some code generation based on the standard org sObject metadata. As part of that process I'm using the DescribeSObjectResult.fields.picklistValues PicklistEntry records to determine which ...
0
votes
1answer
31 views

how can I move account owner alias field from the data loader

I have moved all the account data in another org through data loader but in the account owner alias field it is showing admin, I have to show the user perspective shot name. Thanks in advance
0
votes
1answer
45 views

'Text ' is not a valid value for the enum 'FieldType'

I am trying to create fields dynamically on a custom object. Field's metadata info taking from csv file. When I am uploading the file then I am getting callout exception from MetadataService. ...
0
votes
0answers
10 views

Made some profile changes in error and now getting error message [duplicate]

Hi I was trying to make changes to a user profile to be able to modify and close a lead, as she wasn't able to close a lead from her advanced user profile (customized). I ended making some changes ...
0
votes
0answers
25 views

How do I set the Default Home Page in Lightning through Metadata? [duplicate]

I'm having a hard time finding the right resources to do this, so please if I am missing something, please point me to the right resources! The issue I am currently having is that I have created a ...
2
votes
1answer
35 views

How to set categoryGroupVisibilities in Permissionset XML for Metadata API

I'm trying to transition some of my Profile settings to Permission Sets to make them reusable. Trying to set the Knowledge Data Category access in the Permission Set. I can do it through the UI but ...
0
votes
0answers
40 views

Activate/Create Community using Metadata API

Please, How can I activate and create Community (Network) using Metadata API? I've tested NetworkEnabled: MetadataService.OrgPreferenceSettings orgPref = new MetadataService.OrgPreferenceSettings();...
0
votes
2answers
41 views

Create programmatically SF organization

I'm wondering if it's possible to create programmatically a Salesforce organization (DEV or Sandbox).
0
votes
1answer
134 views

Deploying GlobalValueSet and GlobalPicklist with ANT error

I am trying to deploy GlobalValueSet and GlobalPicklist with ANT but get the following error: globalPicklists/GP0.globalPicklist Global Value Set 0 0 Not available for deploy for this API ...
1
vote
2answers
105 views

Custom Metadata Loader tool for Production

Looking for input from others that have used the Metadata Loader tool for their Production Org. This is what I've been trying to do: Try the "Deploy to Salesforce" Button directly from this website ...
1
vote
2answers
70 views

How to list all the metadata that is changed after a given date

how to get all the metadata changes after a given date. Tried using metadata api's listMetadata(), this gives all the data and here we can't filter using dates. This will run into limits for reports ...
0
votes
1answer
47 views

How to retrieve custom fields through force IDE?

I have retrieved all the custom and standard objects in my force IDE, but I am unable to retrieve Custom Fields. Because of that objects are not deploying in the target org, I have to create manually. ...
2
votes
0answers
22 views

Can metadata container contain AuraDefinitionBundle, Layout, FlexiPage, Object? [duplicate]

I want to build a package to find out metadata dependencies and determine which classes, triggers, pages, components, lightning components and applications, flexi pages, layouts, objects, custom ...
6
votes
1answer
103 views

Can OWD be imported/exported as metadata?

I'm currently trying to create a scratch org which reflects our ludicrously complicated production org which contains hundreds of Roles. Upon deploying most of these, I get errors like: Error src/...
5
votes
1answer
48 views

Finding out which page layouts are available for an object with APEX

When you check the Metadata.Operations.retrieve method, It requires you to know prior the fullname for the page layout you want to retrieve, and the Layout object it's not available with regular SOQL, ...