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
4
votes
1answer
5k views

Deploy Flexipage Assignments

I can deploy a flexipage using the flexipage metadata type. But I can't seem to find anywhere the flexipage assignments type. How can flexipage assignments be deployed?
5
votes
1answer
156 views

Perform action on field deletion (trigger on metadata)

For the purpose of an app I need to be able to perform some actions, either via apex code or workflow/process builder to update another object, however I can't seem to find a documented way to do it. ...
1
vote
1answer
474 views

In the metadata, where is the record page layout used in a Lightning Record Page/Flexipage defined?

I have a Lightning Record page that has a section with a case page layout. When I retrieve the metadata for the Flexipage, the markup for the section with the page layout looks like this: <...
1
vote
1answer
445 views

Compare same Object types dynamically

How to compare two types of objects (NOT SOBJECTS) at runtime? Example: Object ob1 = (String)'ab'; Object ob2 = (String)'ab'; Apparently if I debug ob1==ob2 gives me false. (false statement, see ...
5
votes
1answer
204 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 ...
-4
votes
1answer
28 views

List of all Object's fields which are not refer anywhere in System

We have a requirement where we need to clear each fields which are just lying in the system and not used any where to make environments more cleaner, Is there any way to do this. I used eclipse ...
1
vote
1answer
160 views

Getting all Aura:Attribute meta data from lightning component [closed]

I am creating a lightning componente to show all meta data of other lightning components in the org. I am stuck at getting aura:attribute's meta data details like name, type and default. There is not ...
0
votes
2answers
570 views

Error: Header must contain atleast one of these two fields - DeveloperName, Label

Error: Header must contain atleast one of these two fields - DeveloperName, Label. on uploading data through custom metadata loader. even i have Label as the first column, it still throws this error
4
votes
1answer
215 views

How do we get Index fields of an Object in Apex?

I want all the index fields of a particular object in apex. I have searched through the Schema describe but couldn't find a way to identify the field as indexed.
1
vote
1answer
418 views

Where are standard page layout buttons in the metadata?

Where in the metadata I can find all page layouts that have the "Submit for Approval" button on them? Doesn't seem to be in the page layout xml itself and I need to do a sweep for all page layouts ...
0
votes
1answer
371 views

What are the metadata objects that does not require the run test classes in Production

I'm trying to find the list of all the metadatas objects that we can deploy to production without having to trigger the run of all test classes For example I know that we can deploy ListViews, ...
0
votes
1answer
51 views

How to retrieve and deploy metadata created by inactive users?

When I'm trying to retrieve metadata (using ANT migration tool) that is created by a user that is currently inactive I get errors like below: [sf:retrieve] package.xml - Entity of type 'ListView' ...
0
votes
0answers
130 views

Users are asking for too many fields

I have an custom object that has over 200 custom fields in an org, and growing. Just yesterday we added 4 new fields to this custom object. It is used to contain data from multiple parties outside our ...
0
votes
1answer
134 views

“Show Custom Logo in Meeting Requests” option missing?

For some reason, the option to set custom logos in meeting requests is missing from my Activity Settings. I can't find any reference to this setting being removed, in fact, I can find at least these ...
-2
votes
1answer
381 views

How to backup data from eclipse

I want to take backup of my data on the basis of object and his field. object=case business unit=airlife i want to backup triggers,clasess etc. could anyone plz tell me ....is there any way for ...
0
votes
1answer
193 views

metadata of All THE FIELDS OF ALL THE OBJECTS

We are trying to make a list of all the fields which we have created between our two consecutive releases. We need the metadata of All THE FIELDS OF ALL THE OBJECTS for this reason, so that we can ...
2
votes
1answer
479 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 ...
4
votes
2answers
89 views

Is there away to map apex classes/triggers to their test classes?

I have a requirement to map the test classes in my companies org to the classes and triggers that they test. We have a big org with over a thousand classes, so doing this by hand is not how I want to ...
1
vote
1answer
177 views

Apex Metadata API Security

Is it possible to execute Metadata.Operations.enqueueDeployment method without Modify All Data permission? I've got a setting which I'd like to place in Custom Metadata and update in Apex (via custom ...
3
votes
0answers
80 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 ...
0
votes
1answer
696 views

Retrieve Report/Dashboard standard tab visibility level for Profile via Metadata API

To retrieve tab visibility level for specific profile the following content of package.xml works: <types> <members>TransferRequest__c</members> <name>CustomTab</...
2
votes
1answer
745 views

Impossible to test Metadata.Operations.enqueueDeployment method

We are following Deploy Metadata example from the documentation // Setup custom metadata to be created in the subscriber org. Metadata.CustomMetadata customMetadata = new Metadata.CustomMetadata(); ...
10
votes
2answers
290 views

Is there an API that returns consolidated metadata including layouts?

I believe I saw some information about a recent REST API that provided consolidated metadata including layout information. (For use by e.g. a mobile app that wants to base its screens on the metadata.)...
4
votes
1answer
997 views

Querying metadata - Find Custom fields created today

I am looking to find the "Custom" fields that were created "today" within an object in Salesforce.com. There are more than 500 fields on the object and the "Modified By" field in the schema is not ...
1
vote
0answers
82 views

How to cause QuoteLineItem.OpportunityLineItemId to be populated

Salesforce was added in Version 40 new field to object QuoteLineItem : OpportunityLineItemId. But, despite my org api version is 41 , when I create new Quote this field was not populated. Any idea ...
0
votes
2answers
249 views

Profile migration from higher to lower release version

According to Salesforce Winter '18 Sandbox Preview Instructions Each sandbox created after Sep 8 and before Production new release (middle of Oct) will become Summer 17, while created before Sep 8 - ...
1
vote
1answer
42 views

Can we skip the custom metadata object name field during setup?

I've a sync status that I need to map across platforms for which I'm planning to use the custom metadata type because of the following reasons. I've a list of key-value pair records that needs to be ...
0
votes
1answer
104 views

My Unresolved Items are not visible

I had to transfer all the data from an old Salesforce environment to a new one via the Data Loader but on my new environment all the data such as Emails, Tasks etc is missing from My Unresolved Items....
0
votes
1answer
257 views

Retrieve and detect changes to metadata

I'm using jsforce to connect to salesforce account and detect changes to metadata. Is there a way to detect changes to metadata other than using the SetupAuditTrail object? If there is no other way, ...
1
vote
1answer
486 views

How to get Field's API Name from it's Alias

I was just about to write some custom code in order to re-create parts of a SFDC page layout in JavaScript. Getting through the sections and fields of the page layout seems to be pretty manageable, ...
0
votes
1answer
30 views

Search a text in all custom button Javascript

I would like to know if a particular field being referred in any of our Javascripts written for the various custom buttons on-click event. Is it possible to search and identify?
0
votes
1answer
308 views

How to get metadata for email, letterhead, logo

How can I get the metadata for email template, email signature letterhead, logo endpoints? I'm trying to find out like the content in the email or email signature or the email template etc... I ...
1
vote
1answer
157 views

metadata-api using apex code

I'm wondering is that possible to execute the api code in apex anonymous window and go through all the elements without using any wrapper or any third party tools. I'm trying to find out the column ...
0
votes
0answers
575 views

Export from Intellij/Illuminated Cloud all of the object's XML into one file

My requirement is to get all Object's description. After some investigation we found that this isn't possible unless you get it from the XML. I created a new Intellij project of just the objects. I ...
4
votes
0answers
334 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 ...
1
vote
2answers
1k views

How to Deactivate Trigger using Apex code

I want to deactivate a trigger on an object or all the triggers on an object using apex code using metadata api or partner api, but i'm not finding a way to do it exactly. Could anyone plz help with ...
3
votes
0answers
51 views

Metadata for User Interface options

Does anyone know whether the User Interface option Enable "Set Audit Fields upon Record Creation" and "Update Records with Inactive Owners" User Permissions can be used with Metadata?  Has anyone ...
12
votes
3answers
2k views

How to enable Account History Tracking in Scratch Org?

I have a project with existing metadata that requires Account History Tracking to be enabled. I can't figure out how to spin up a scratch org with this enabled (or to have it automatically turned on ...
3
votes
1answer
676 views

Workbench is down. Any good alternatives for preparing package.xml?

Workbench is down today due to an expired SSL Certificate. I have become so dependent on using Workbench to retrieve the Metadata API names to include in my Migration Tool's xml package manifest that ...
1
vote
2answers
218 views

Query CustomObject Description and check if empty via Apex

I've been searching around for a few hours for what I initially thought should be a very simple thing. I want to write some Apex code that will iterate through all of the objects and fields in my ...
6
votes
1answer
385 views

Retrieving Packaged Page Layout in Apex

So using the spanking new meta data in Apex you can get page layout information (at last!): List<String> componentNameList = new List<String>{'Opportunity-Opportunity Layout'}; List<...
4
votes
1answer
284 views

Get enabled add-on features values from an existing org to use them in Salesforce DX org definition file

In the Salesforce DX Developer Guide, there is a list of Supported Features and Preferences that can be activated in Scratch Orgs through the Scratch Org Definition file. I can see the description of ...
0
votes
1answer
71 views

java.lang.VerifyError: (class: com/salesforce/ant/SFDCAntTask, method: doLogin signature: ()Lcom/sforce/soap/partner/LoginResult;)

C:\Users\rajiv\Downloads\salesforce_ant_40.0\sample\build.xml:14: java.lang.VerifyError: (class: com/salesforce/ant/SFDCAntTask, method: doLogin signature: ()Lcom/sforce/soap/partner/LoginResult;) ...
0
votes
1answer
58 views

How to check if there exists a field across all objects with specific label

I have label text of field. I need to search if there exists a custom field with that label across objects. How can this be achieved ?
0
votes
1answer
90 views

Convert 'Web Tab' to 'Visualforce' tab via tabs in Metadata API error

I have a very simple tab that goes to a url. However I want to replace the tab with a Visualforce page override. I was hoping to convert the old 'Web Tab' into a 'Visualforce Tab' it rather than ...
0
votes
2answers
1k views

Compare Metadata between orgs

I need to compare metadata between different environments/orgs in salesforce.Are there any tools like kdiff3(compares the code) that will help in comparing the metadata?
0
votes
1answer
947 views

Translation Workbench Override Managed Package Custom Field Label

Following the instructions from the answer Custom Object missing from English translation in Translation Workbench but not other languages, I've overridden a custom field label of managed package. To ...
0
votes
3answers
5k views

How to deploy renamed the custom object tab using package.xml?

I renamed a custom object tab name from 'ABC' to 'XYZ' in Customize > Tab Names and Labels > Edit. How can i deploy this change through eclipse using package.xml.
2
votes
1answer
52 views

How to Access Description of Custom Objects and Their Fields?

I'm trying to access the description of existing custom objects as well as the description and validation rules of their fields using Apex. I'm already using SObjectType.getDescribe() to get other ...
1
vote
1answer
885 views

Login with Python SOAP client to Metadata API

I'm using Python zeep to use SOAP to interact with Salesforce's Metadata API. I'm attempting to start with the simplest thing possible, just log in and read a metadata object. from zeep import ...