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.

0
votes
0answers
13 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
16 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
16 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('...
0
votes
1answer
17 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
39 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
24 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
19 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
43 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
15 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
18 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
26 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
14 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
30 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
30 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
50 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
24 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
23 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
37 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
29 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
28 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
23 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
30 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
33 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
36 views

Create programmatically SF organization

I'm wondering if it's possible to create programmatically a Salesforce organization (DEV or Sandbox).
0
votes
1answer
59 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
80 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
51 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
84 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
38 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, ...
-1
votes
1answer
34 views

How can I get meta data of a visualforce page which is used in a Page Layout of a particular object?

I have a question i.e. how can I possibly extract meta data of a Visualforce page inside a Page Layout of an object. For fetching the page layout I use following API request : https://ap4....
0
votes
2answers
48 views

Check the difference between two Environments?

We have moved our data from Dev environment to production. And later we made few changes in Dev. How can we know the differences that are made in dev which do not exist in production?
0
votes
0answers
45 views

Clone metadata using Tooling API

I am trying to clone Lightning Aura Bundle using Tooling API. First I executed the GET from REST Explorer using Workbench by passing the component Id. And then I used the Raw Response to hit the POST ...
0
votes
0answers
66 views

Clone Lightning Component Using Apex

I have used Metadata API to read and create Lightning Component, but I am able to clone only Lightning Component which is created by me. I am not able to clone all Lightning Component. Actually, I am ...
0
votes
0answers
36 views

Generating Documentation for your Salesforce Instance

I have been searching the internet for documentation of an Salesforce instance for a long time. It's always been a tiring job and takes a lot of time to document an instance. I'm aware of ApexDocs ...
1
vote
1answer
138 views

Deployment failing with “Could not resolve list view column: CORE.USERS.SAML_SUBJECT” on the User object

I am trying to deploy metadata to dev sandbox to another sandbox using Jenkins. I am getting an error as below: [sf:deploy] Component Failures: [sf:deploy] 1. objects/User.object (User....
7
votes
1answer
233 views

Metadata API error while reading Picklist: Web service callout failed: Unable to find apex schema info

I am trying to read a custom dependent picklist field and update it's field-dependencies. I have followed the common resources found online and getting the below error: FATAL_ERROR System....
1
vote
0answers
94 views

Error when trying to deploy Lightning Page: “Error: You can't change a Lightning Page's associated template”

Relatively new to the SFDC world and I've come across this issue when trying to deploy Lightning pages to a new sandbox. When deploying my lightning page via workbench I get the following error: ...
0
votes
0answers
32 views

Force.com IDE, Cannot get global quick action

I added the New Task Quick action to a custom object and pulled it into Eclipse with force.com IDE with no problem. Using force.com IDE I retrieved all quickActions and got the Object.New_Task....
1
vote
1answer
50 views

Continuous Integration and Salesforce Metadata

I am trying to find a Continuous Integration solution not only for Apex code, Visualforce and Lightning Component but also for other Metadata. For example, I would check if on a Remote Site the Admin ...
0
votes
2answers
251 views

Retrieve Page Layout using Metadata.Operations.retrieve

I have seen the answer to this post: Retrieving Packaged Page Layout in Apex I am using the same code with my values substituted: List<String> componentNameList = new List<String>{'...
0
votes
2answers
25 views

Wrong IsNillable flag for Name field while querying FieldDefinition object

I am trying to retrieve the list of fields which are mandatory and running below query: SELECT id, DeveloperName,EntityDefinitionId,IsNillable,Label FROM FieldDefinition where EntityDefinitionId= '...
2
votes
1answer
76 views

Create private List View using Metadata API

Is it possible to create private list view (equivalent to list view with "Only I can see this list view" option selected when creating via UI) using Metadata API? If I create such list view using the ...
0
votes
0answers
19 views

Geolocation fields in Metadata

I have a bunch of postal codes in a metadata object (where they belong). Now I want to add a Geolocation field to this object but it seems I'm not able to choose this type. Is it even possible to use ...
0
votes
0answers
66 views

Edit lightning “sub-tabs” in metadata

I used lightning app builder to add a "sub tab" to a page that holds a related list. Now I need to deploy that tab using Metadata api. I have never worked with "flexipages" before. Which tags do I ...
0
votes
1answer
180 views

How to create Custom Fields on Standard Objects in the package.xml

I want to add custom fields to the Contact Object in SFDC. When I look into the package.xml I do not see any of these changes or fields. I am missing something?
0
votes
0answers
9 views

Flow designer kept freezing, created Assignments in metadata, concerns

I had a massive flow to create and the editor kept freezing, so I downloaded the flow metadata into eclipse and worked on it there. Other people are working on this flow too. I created the assignment ...