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.

199 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
15 votes
0 answers
1k views

Salesforce DX: How to track custom objects' changes in custom profiles?

Salesforce DX does not track some of the changes I make on my scratch org. How to reproduce a problem: Create a custom profile -> sfdx force:source:pull Create a custom object -> sfdx force:...
user avatar
9 votes
0 answers
1k views

How to make sure Organization-Wide Default Sharing Update is complete via an API

We're performing automated testing on scratch orgs and we want to change Organization-Wide Default Sharing for some objects. Doing so via the UI or via sfdx force:mdapi:deploy causes sharing rules ...
user avatar
8 votes
0 answers
540 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 ...
user avatar
  • 4,645
6 votes
0 answers
1k views

New section being added in Layout.xml - SummaryLayout

When I'm using eclipse to retrieve my update layout (after adding new field), for some reason I see additional section being added- SummaryLayout. Although the only change I did - is add new field. I ...
user avatar
  • 1,535
5 votes
0 answers
111 views

How can I find the relationship between MetadataComponentId and the expected name for the Metadata API?

I've been using the Dependency API to try to retrieve all dependencies for a given metadata. I would like to get a list of dependencies, and then retrieve these with the Metadata API. Unfortunately, ...
user avatar
5 votes
1 answer
58 views

Validating metadata deployment locally

I'm looking for a paid tool or open source project that validates a zipped package locally before attempting to deploy it to a salesforce sandbox or production environment. By validation I mean to ...
user avatar
  • 285
5 votes
1 answer
644 views

How get current layout name?

If I know layout name I can read what layout contains using following Metadata. At the same time if somebody changes Layout name this code won't work at all. Could you please advise if I can get the ...
user avatar
  • 51
5 votes
0 answers
458 views

Deploy Apex Class to another Salesforce ORG via Metadata API?

So I've been looking around to see if there is a way to push Apex Classes via the Metadata API, and I'm a little confused at the documentation. I've used the Eclipse plugin before, so I know that you ...
user avatar
  • 93
5 votes
1 answer
4k views

Deployment of SiteDotComSites: Required field is missing: label

I've pulled all the metadata from a sandbox, and now as a sanity check, I'm trying to push it all back (via Force.com IDE) to the same sandbox. It all seems to work apart from siteDotComSites ...
user avatar
  • 2,490
5 votes
0 answers
60 views

Does 'Deploy with Active Jobs' work for managed packages?

So there's this new feature: 'Deploy with Active Jobs' It lets you deploy batches and schedules even if they're running. This is great for changesets. Does it work with managed packages?
user avatar
4 votes
0 answers
41 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 ...
user avatar
4 votes
1 answer
283 views

Unable to modify certain fields in *-meta.xml files

I would like to be able to modify all fields in a specific *-meta.xml file in either the Force.com IDE or the Force.com Migration Toolkit. However, I am unable to set some fields. For example, I ...
user avatar
4 votes
0 answers
457 views

Can the MetadataService.cls be used to create Workflows via Apex?

I'm trying to use the MetadataService.cls provided by FinancialForce.com to create Workflows. The problem I am having is that the declaration for the "workFlow" class and its related components does ...
user avatar
  • 562
3 votes
0 answers
1k views

What is fqn attribute in LightningComponentBundle?

What is the fqn attribute in the LightningComponentBundle element? I can't find it documented anywhere. Is this the unique identifier by which Salesforce manages the element? Would that be the ...
user avatar
3 votes
1 answer
78 views

Is there a way to make field level data classification required before creating a new custom field?

End user has stringent policies on data classification and controls. Need to have policies and procedures in place to ensure all fields are reviewed, classified and if highly sensitive, encrypted. ...
user avatar
3 votes
0 answers
211 views

Visualforce Page as a PDF File with metadata

Is there a way to render a Visualforce Page as a PDF File with metadata. Ex: Title , Authour, Subject and Keywords. I tried adding meta tags to the VF page and so many other ways. But non of them were ...
user avatar
  • 31
3 votes
0 answers
98 views

Trialforce: No unpackage code may be distributed in trials

We are going to use Trialforce as a way to deliver our managed package in already installed and pre-configured form to potential clients. As we know, there are some artifacts which can not be ...
user avatar
  • 2,713
3 votes
0 answers
219 views

Lightning Experience: Can standard Listview Charts be shared and deployed as Metadata?

I've created several Charts in Standard Listviews on Tabs in LEX. So far they work as expected and look like this: Now logging in as an other user I've noticed that the charts are not available. Only ...
user avatar
  • 33.5k
3 votes
0 answers
2k views

Metadata Deployment Stuck in the Pending Status

I am attempting to deploy some metadata configurations from a production instance to a dev instance. I am using SublimeText/MavensMate to handle the deployment. I can see the deployment arrive ...
user avatar
3 votes
0 answers
87 views

Search Roles in salesforce metadata

There are 3 roles which I want to know if it is referred in metadata or not. But my question is using which keyword I need to search the roles ? Currently I am using Role and UserRole keyword to ...
user avatar
  • 83
3 votes
0 answers
432 views

Person Account RecordTypes metadata

I have Person Accounts enabled in my sandbox org. When I pull the (objects/Account.object) metadata in Eclipse I don't see any Person Account record types in Account.object. I can see record types ...
user avatar
  • 2,490
3 votes
0 answers
118 views

List Metadata Missing CaseComment?

Are there any restrictions on which standard objects are returned with a list metadata call for CustomObject or Workflow? Taking a stab at fixing a mavensmate bug which builds it's project manager ...
user avatar
3 votes
0 answers
1k views

Tool to migrate field dependencies

Currently we have several controlling picklist fields that have 300-400 dependent fields under them. We are doing the field dependency matrix manually in the UI. Is there any tool that can be used to ...
user avatar
  • 3,021
3 votes
2 answers
336 views

Salesforce Ant Migration Tool - HomePageComponent

I'm trying to figure out when using the Salesforce Metadata API (salesforce ant migration tool) how to pull back the custom links defined within the HomePageComponents. I've pulled down a blanket from ...
user avatar
  • 2,113
3 votes
2 answers
443 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 ...
user avatar
2 votes
0 answers
33 views

Can you Point Targeted Prompts at Buttons Within a Component?

We're currently trying to set up our In-App Guidance for when users first log into our app. Ideally, we wanted to use Targeted Prompts to point to the exact buttons that users would need to interact ...
user avatar
2 votes
0 answers
67 views

2gp: Problem with adding custom fields to Territory2 object via DX Unpackaged Metadata feature when creating package version

We are developing 2gp which heavily uses Enterprise Territory Management feature. And as part of post install configuration subscribers should manually create some custom fields with predefined names ...
user avatar
  • 2,713
2 votes
0 answers
516 views

Metadata retrieve works, but deploy fails

Org API=49. Process Builder flow API=49, I retrieve flow with no error, then try to deploy it back to the same Org without any changes and get an error: C:\2\force-app\main\default>sfdx force:...
user avatar
2 votes
0 answers
56 views

Query SetupAuditTrail doesn't directly relate a metadata component

Even though the capacity to query SetupAuditTrail object was introduced in Winter '16, it seems targeted mostly for reporting or human-readable purposes since the affected metadata (for changes that ...
user avatar
2 votes
0 answers
230 views

Objects that don't support custom buttons (WebLinks)

I'm writing code that uses the metadata API to deploy a custom button (WebLink) to all CustomObjects in my Salesforce org. I just list out all objects wit a listMetadata and then do a retrieve and ...
user avatar
2 votes
1 answer
447 views

How to get compactLayouts through apex Metadata API

I am trying to get compact layouts using metatadataapi. I am using https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataServiceExamples.cls this repo to get ...
user avatar
  • 3,309
2 votes
0 answers
491 views

SFDX Package lookup filter deployment issue

I am trying to create an unmanaged package which has one custom object with lookup filter on a master detail field. <fullName>Contact__c</fullName> <externalId>false</externalId&...
user avatar
2 votes
1 answer
200 views

Why Salesforce thinks I'm deploying a certain sharing model, while the metadata tells another story?

I have the account and contact object metadata files with the following sharing types: Account <sharingModel>ReadWrite</sharingModel> Contact <sharingModel>ControlledByParent</...
user avatar
2 votes
1 answer
430 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 ...
user avatar
2 votes
0 answers
548 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: ...
user avatar
2 votes
1 answer
804 views

REST API: create dependent picklist values

I am aware that it is possible to create dependent picklist values using the Metadata API but I want to use the REST API. I know how to create triggers, classes, and pages but I can't wrap my head ...
user avatar
  • 3,764
2 votes
1 answer
679 views

Is there a way for describing a List View and determining columns within APEX (without metadata service api)?

I've been reviewing the very promising APEX Metadata Namespace in Summer '17 (API v40.0) - Release Notes (Preview) But I'm unable to find any reference for retrieving ListViews of any Object. I'm ...
user avatar
  • 5,596
2 votes
1 answer
441 views

Metadata fails to download in FORCE.COM Eclipse IDE due to exceeding 600MB limit

I am attempting to download my Salesforce Sandbox into the FORCE.COM Eclipse IDE, but it fails after about 30 minutes and gives the error message: LIMIT_EXCEEDED: The retrieved zip file exceeded the ...
user avatar
2 votes
0 answers
423 views

Metadata for assigned Home Page Layouts

I've just created a customised Home Page Layout and assigned it to a couple of profiles. I now want that assignment to be deployable to other sandboxes via metadata. Is this possible? Or does this ...
user avatar
  • 2,490
2 votes
0 answers
525 views

Difficulties retrieving Metadata from Sandbox

I'm doing work in an org's sandbox where we're not able to retrieve all of the org's metadata using either Eclipse or MavensMate. We've refreshed the sandbox and still have the same problem. I've ...
user avatar
  • 40.3k
2 votes
0 answers
485 views

Programmatically access selected Chart Colors on Picklist Values

Is there a way to find out, programmatically, if my users have selected chart colors for a picklist value? I'd like to write VisualForce (ideally in CSS, but anything is fine) that is consistent with ...
user avatar
2 votes
0 answers
123 views

PersonalJourney.settings metadata

I recently retrieved entire org's metadata, and among other things found one settings metadata named PersonalJourney.settings, for which I can find exatly 0 results on Google. Can anyone shed any ...
user avatar
  • 2,218
2 votes
1 answer
59 views

Permission on Profile on different section between 2 orgs

Issue Assume 2 different orgs: Org A and Org B. Trying to move the metadata from Org A to Org B but having some hickups. Mainly on the profile level where we have the following: Org A: permission "...
user avatar
2 votes
0 answers
245 views

Delete Approval Process Metadata api

I have a problem: I created aproval process using metadata api(metadata api description and examples here -> https://github.com/financialforcedev/apex-mdapi), but when I trying to delete approval ...
user avatar
2 votes
0 answers
556 views

Invalid field name: Contact.Activities$What

I am using force.com IDE to migrate reports. For a report of custom type Contacts with Activities, I get error: "Invalid field name: Contact.Activities$What" The report type is already deployed ...
user avatar
  • 91
2 votes
0 answers
55 views

Get Campaign of a lead view via Metadata (or other) API

Is there any way to get the "Filter By Campaign (Optional)" part of a lead view via the metadata or any other API? I am trying to convert the metadata of a lead view into an soql query and the ...
user avatar
  • 283
2 votes
0 answers
271 views

Discrepancy between fullName/fileName is listMetadata call when working with a managed package

I have modified some layouts in a managed package, and would like to retrieve the Metadata for those layouts via the Metadata API. I find that I can retrieve these layouts with the following package....
user avatar
2 votes
0 answers
37 views

Need suggestion on appExchange product available

Is there any appExchange product available in the market which can give me quick overview of the org and the following components: User Info Number of triggers Number of objects and records in each ...
user avatar
2 votes
2 answers
841 views

Metadata Compare- is there an easier way than selecting all components in eclipse, then using a tool like Kaleidescope(mac)

I'm in progress with a Metadata Compare of 2 Salesforce Sandboxes. As part of a client requirement, we have to do a full compare that migration to a new sandbox is complete. We are using changesets, ...
user avatar
  • 497
1 vote
0 answers
32 views

Custom SObject is locked with "Admin operation is in progress" after deployment of first portion of metadata and when trying to deploy next one

Our project contains about 30,000 of SF artifacts. Due to the limitation in 10,000 artifacts per deployment bundle, we've split our deployment into chunks to fit into mentioned restrictions, i.e. ...
user avatar
  • 2,713