Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

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
votes
0answers
11 views

Custom Meta Data is not able to upsert/update/insert from DataLoader

I am able to export custom meta data from Dataloader. But when i am trying to upser/update/insert data using data loader, Its showing custom meta data objects while selecting objects list as first ...
3
votes
1answer
24 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
18 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
18 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
22 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
29 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
20 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
19 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
22 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
18 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
26 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
33 views

Create programmatically SF organization

I'm wondering if it's possible to create programmatically a Salesforce organization (DEV or Sandbox).
0
votes
1answer
22 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
54 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
43 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
42 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
21 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
72 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
35 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
32 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
40 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
23 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
45 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
16 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
66 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
176 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
votes
0answers
28 views

How to access Metadata API object - ConnectedAppOauthConfig in Salesforce?

I am trying to access "ConnectedAppOauthConfig" object. Reference Link - https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_connectedapp.htm I tried connecting using ...
1
vote
0answers
41 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
28 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
43 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
126 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
21 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
35 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
15 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
41 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
81 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 ...
1
vote
0answers
15 views

Salesforce - Restoring big objects

I'm trying to retrieve the data from certain big objects. The documentation seems to underline a different behavior on the data: Do not use the Id field in a query. Including Id in a query returns ...
0
votes
1answer
35 views

How to put “List View Actions in Lightning Experience” into metadata?

I've defined "List View Actions in Lightning Experience" using Setup -> Object Manager -> (my custom object) -> Search Layouts -> List View -> List View Actions in Lightning Experience, but I can't ...
2
votes
1answer
33 views

Where in metadata are Organization-Wide Sharing defaults for Calendar stored?

I changed Sharing Settings for Calendar to "Hide Details and Add Events", but I don't know how to put it in metadata *.xml files, is it even possible?
0
votes
1answer
38 views

Update Roll up summary filter from Apex?

I have a roll up summary field on one of my objects. Because roll up summary fields do not support smart dates or formulas, I am forced to manually input a specific date range that I want to summarize ...
1
vote
1answer
92 views

Sales Force Marketing Cloud Entity ID

For the SSO setup for SFMC Exact Target, where to find the Entity id . Followed this document to create SSO meta data https://help.salesforce.com/articleView?id=mc_overview_create_salesforce_saml_key....
1
vote
1answer
93 views

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

Error Web service callout failed: WebService returned a SOAP Fault: 'text' is not a valid value for the enum 'FieldType' faultcode=soapenv:Client Code List<MetadataService.Metadata> ...
0
votes
2answers
44 views

Call Duration field of Task object throwing error Illegal assignment from Double to Integer

I am parsing all the number fields as Double.valueOf(value) and storing in Task fields. If the value is Integer then the result of Double.valueOf(value) will be value.0 which is obvious. This case ...
6
votes
0answers
191 views

How to dynamically retrieve ANY report in a folder using package.xml

In ANT or Eclipse I want to retrieve ALL reports of a given folder WITHOUT declaring each report in package.xml line-by-line expressis verbis. What Eclipse is generation, when I subscribe to a folder ...
0
votes
1answer
59 views

How to Retrieve Knowledge Validation Status Picklist custom values?

Validation Status is a standard picklist available in Lightning Knowledge (Knowledge_kav), however the field metadata is not available in Knowledge Settings or Knowledge Object. I even tried Standard ...
0
votes
1answer
61 views

How do we edit Meta Tags for ArticleDetail Template pages in Community?

I cannot Add or edit Meta Tags for Article Detail Template pages in Community.This is happening only for Article Detail Template Page.Is there any considerations on this... Edit Meta Tags options ...
0
votes
1answer
62 views

How to get LastModifiedDate of Custom Field or Custom Label by Metadata API in Java?

How to get LastModifiedDate of Custom Field or Custom Label by Metadata API in Java? Edit: I found a link: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customfield.htm?...
3
votes
1answer
56 views

Which metadata stores custom CSS for a community?

When creating a community, you can override the CSS of a template. Use custom CSS to override the default template and Branding panel styles. We recommend that you use custom CSS sparingly, because ...