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
1
vote
0answers
36 views

'Sort By' changes dashboard in metadata

I have a dashboard with unchecked 'Use chart settings from report'. I changed the field in Sort By options and can't find these changes in Dachbord metadata. Where can I find 'Sort By' changes in ...
1
vote
1answer
44 views

Checking previous metadata deployments

So I'm playing with deploys using the metadata API and I have 2 questions. I noticed that when you deploy using metadata the deploy name in "Deployment Status" is just an Id, can I change the name? I ...
0
votes
1answer
26 views

MetadataService.cls, How can I filter the Metadata List based on the Last Modified Date?

My requirement is that I need to display org metadata components (like Objects, Apex Classes, VF Pages, Record Types, Profiles, Permission Sets, Custom Object, Custom Fields, Custom Label ...etc) on ...
0
votes
1answer
33 views

Restoring sandbox components

We need to refresh our sandbox but have some not deployed components in it (because not fully tested yet). So with force plugin for Eclipse I was able to fetch components from sandbox and now have ...
0
votes
0answers
76 views

Metadata Retrieve issue Salesforce

When i try to access other org metadata item list after authentication getting the following error .. Web service callout failed: WebService returned a SOAP Fault: INVALID_CROSS_REFERENCE_KEY: ...
0
votes
1answer
29 views

Update CustomField via Metadata API without including extraneous updates

as the title says, I'm working on a project to update the Description on the CustomField metadata type via the Metadata API and would like to figure out a way to do this without needing to read the ...
1
vote
1answer
22 views

Method for synchronizing Contacts Fields with Leads Fields Using Metadata

Our org created 20k+ "contact" records in custom objects that was later migrated to the proper Contacts object without using Leads for anything. Over about 6 years many custom Contacts fields were ...
0
votes
1answer
27 views

Is there any way to display list of Metadata Componants which are Last Modified or Created recently?

My requirement is that I need to display org metadata components (like Objects, Apex Classes, VF Pages, Record Types, Profiles, Permission Sets, Custom Object, Custom Fields, Custom Label ...etc) on ...
2
votes
1answer
213 views

Account fields available in default scratch org but not in regular dev org

I am pushing Metadata from a (namespaced) scratch org with that definition { "orgName": "my_DEV", "country": "US", "edition": "Developer", "language": "en_US", "hasSampleData": true, "...
0
votes
3answers
121 views

How can I get the custom object Tooling API Id?

I want to get the custom object id using the custom object's API name. Please tell me the way how to get id. req.setEndpoint(domainUrl+'/services/data/v46.0/tooling/query?q='+ ...
1
vote
1answer
433 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 ...
2
votes
1answer
155 views

Why does SFDX pull unwanted object data and how to prevent it

I have an app that puts Lightning Web Components on the Flexipages of Accounts and Contacts. I also have a Flexipage for both in my App. I guess that is the reason for SFDX pulling in the object ...
2
votes
1answer
316 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 ...
1
vote
1answer
367 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
5 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
239 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
73 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
61 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
32 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
1answer
25 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
52 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
25 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?
1
vote
2answers
373 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
35 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
107 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 ...
4
votes
2answers
355 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 ...
2
votes
1answer
282 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
243 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
192 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
75 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
45 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
134 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
164 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
69 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
187 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
58 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
111 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
68 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
30 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
118 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
87 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
143 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
1answer
122 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,...
3
votes
3answers
2k 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
1answer
149 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
247 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
28 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
75 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
339 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 ...