We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2answers
171 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
51 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
26 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
195 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
104 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
124 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
51 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
96 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
296 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
47 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
518 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....
8
votes
2answers
652 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
303 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
55 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
97 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
921 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
49 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
258 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
194 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
661 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?
1
vote
0answers
20 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 ...
1
vote
1answer
279 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
149 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
130 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
200 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
500 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
101 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
1answer
1k 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 ...
1
vote
1answer
171 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
217 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
188 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?...
5
votes
2answers
237 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 ...
4
votes
3answers
2k views

metadata API: howto deploy only what specified in package.xml

I'm using mdapi:deploy. How do I tell it to deploy ONLY the metadata is defined in my package.xml instead of all the metadata files on my local filesystem? Ex package.xml: <?xml version="1.0" ...
1
vote
1answer
43 views

Is it possible to return a CustomMetaData in a @HttpGet?

Is it possible to return a CustomMetaData? I'm getting the error "HttpGet methods do not support return type of InsPackages.Wrapper" when I added "customMetadata" codes on my class. Here's my code: @...
0
votes
1answer
33 views

Can You Utilize and Fill In Values for the Custom Object You had just created Inside your class

I'm new to coding & Salesforce. I'm trying to create a custom object. The code is below. Will I be able to use my custom object 'OrgPackages__c' right under the last line of this code and fill it ...
0
votes
1answer
30 views

Create Metadata Type to Associate PackageLicense & Publisher Objects?

I'm new to Salesforce. I'm trying to retrieve all the packages installed in my org programmatically with the use of Metadata. Now, I have created a custom metadata type and have created few custom ...
1
vote
1answer
344 views

Apex Metadata API retrieve PageLayout assigned to Profile

I know it's possible to retrieve page layout metadata natively from Salesforce however I'm trying to grab the page layout assigned to a particular profile and in order to do that I need to grab the ...
-1
votes
1answer
44 views

Add custom field to change set using Metadata API

I'm wondering if we can add a custom field or any other component to change set using Metadata API?
3
votes
2answers
70 views

Query managed package components (including dependencies) from releasing org

In an org that releases a managed package, the package detail page lists the components in the package (recently added components, previously released components, indirectly added components). Is it ...
2
votes
3answers
1k views

Where is metadata for custom list view on Task?

I have created a custom list view on Task. In Workbench it is displayed under Task within metadata type 'ListView'. When I pull my metadata using API v43 I can't find the xml definition for it ...
0
votes
0answers
408 views

Update Custom Metadata

I am trying to update some custom meta records. There are current 4384 records in the system. And update give me an error of "Collection size 4,384 exceeds maximum size of 1,000." This happens even if ...
1
vote
0answers
256 views

Dynamically fetch Custom Labels in Apex class

I need to dynamically fetch Custom Labels in Apex class, something like Get All Labels where name like 'a%' I see SOQL does not support querying Custom Labels and although I see Metadata API can be ...
0
votes
1answer
543 views

How do I retrieve Country and State Picklist Values (AddressSettings) via API?

How do I get a dependent list of States by Country from Salesforce via API? Our Use Case is: We need dependent Picklists on an integrated 3rd party web platform we intend to pass the returned ...
6
votes
2answers
570 views

How do I enable REST Metadata API?

I am getting this error in Workbench when using the REST explorer: API_DISABLED_FOR_ORG message: The REST Metadata API is not enabled for this Organization. errorCode: API_DISABLED_FOR_ORG INFO: We ...
0
votes
1answer
27 views

External ids in data infrastructure?

I just learned about setting related records with external ids, and I love it. It makes test code much easier to read and write, and it means I have to query less in general. In my ideal world, ...
2
votes
1answer
427 views

How to pull Connected App Settings for Permission Set

I have a permission set that has connected apps assigned, but I am unable to view them when I pull down the metadata. I've tried using MavensMate and ANT. Is there something I'm missing?
0
votes
1answer
91 views

Can I pull down specific ListViews from the metadata API?

I've added this to my package.xml so I get the Account Standard Object metadata and the AMR__c Custom Object metadata: <types> <members>AMR__c</members> <members>...
0
votes
1answer
226 views

Metadata Service Test Class Error [closed]

I'm still new to Metadata Services and I'm writing a test class for it. I tried what I have read on the web but I'm still getting problems on it. Could you please help me please? I'm so stuck on this. ...
2
votes
1answer
108 views

How do you keep production in sync with the VCS when using SFDX?

It's pretty obvious for an Apex Class change - you go through the normal dev cycle and eventually deploy to prod. The change will be in VCS before it hits prod so source control remains the source of ...
1
vote
0answers
58 views

Enabling Notes and Attachment Access in Communities for Scratch Orgs

We create a scratch org with community enabled on it. There is a setting on the community (accessible through Setup > Communities > Communities Settings) where we have to manually check the ...