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.

Filter by
Sorted by
Tagged with
2
votes
1answer
25 views

How to create Custom SOObjects using Visual Studio Code?

I'm a .Net developer. Just started learning Salesforce. I would like to setup a dev environment using Visual Studio Code. I'm able to do that with the help of Salesforce Extension Pack. However I'm ...
0
votes
0answers
17 views

How to add custom permission to profile and Permission Set using Package/metadata [closed]

I have one Custom Permission which i need to add to one of the profile and permissionSet .how can i add it in metadata.
1
vote
1answer
14 views

How do I retrieve a flow and associated metadata from an org?

I usually use SFDX to retrieve all of the metadata from my sandbox. I usually work on this in VSCode. Right now I'm trying to use SFDX in VSCode to retrieve a flow so I can test that flow in another ...
0
votes
0answers
3 views

Show Analytics tab in lightning app menu for a particular profile

What would be the metadata name for showing Analytics tab to a certain profile. Need to deploy the changes using ANT. Any help/pointers are appretiable.
0
votes
1answer
33 views

get the field layout metadata from record page

I wanna get fields from a record page. So tried to use metadata query in apex, but it did not look working well. Below is the code that I tried. What should I write in the code to get fields metadata ...
0
votes
1answer
25 views

MetadataService mock class

I tried creating a mock class for a class that uses MetadataService but after too many attempts, I stll can't get it. Can anyone please give me a sample mock class for these lines? MetadataService....
0
votes
0answers
21 views

Unable to create new project in Eclipse

I have installed latest Force.com IDE in eclipse in my local system. I am unable to create a new project. I am able to enter username, password under force.com project, then when clicking on NEXT ...
0
votes
0answers
23 views

Process flows not showing up in environment

I'm trying to push process flows that I created in my dev env and am trying to push it onto my test environment. I updated my package.xml file to retrieve flow metadata and then uploaded it to ...
0
votes
0answers
17 views

Missing Label attribute from CustomObject metadata

We've been working with the Metadata API and keep running into an issue whenever we get sObject details either directly via retrieving a package.xml or even by describing the org through the ...
2
votes
1answer
42 views

Is there a way to split the metadata to custom folders?

Our org have a huge legacy code base, thousands of classes, VF pages, Lightning pages etc. We experience a problem that new developers don't know about generic classes and helpers that could be used ...
1
vote
0answers
20 views

Default recordtype setting based on profile in package.xml [closed]

I am trying to change my default record type for every profile using ANT. Can someone help me how to retrieve the data using package.xml?
0
votes
2answers
61 views

How to get Page layout name dynamically in apex?

I have a requirement where i need to get page layout name dynamically in apex on the basis of record type(page layout associated with it) selected by user. I am overriding account's new button in ...
4
votes
0answers
32 views

Extending metadata xml without overwriting in org

I'm creating a 2GP managed packaged that adds a custom tab to the Service Console. While developing in a scratch org, the metadata pulled into my project includes a customised version of the Service ...
0
votes
0answers
24 views

how to get API names of permission in profile/permission set

I have some permission names which i want API name of those permissions. couple of permissions which i am not able to get APIname and not also able to judge apiNames of those profiles from fetching ...
1
vote
2answers
68 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
67 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 ...
7
votes
1answer
102 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
47 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
39 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
1answer
17 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
46 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
117 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
1answer
58 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
49 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
40 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
27 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
67 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
27 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
36 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
38 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
47 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
22 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
55 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,...
2
votes
2answers
426 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
96 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
84 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
16 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
40 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
223 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
46 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
32 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
34 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
75 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
40 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
65 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
26 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, ...
5
votes
1answer
44 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
32 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