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
1
vote
0answers
15 views

Dependencies on a queue deletion. We plan on removing (50+ queues)

I need to delete a bunch of queues in the org (maybe be over a 50) that are no longer used. As I delete each of them I do see the dependencies.Is there a way I could see its references all in one ...
1
vote
0answers
167 views

How can I specify an SLDS icon for the icon attribute of QuickAction

Are the SLDS icons exposed as static resources (without a manual upload)? Is there a syntax for referencing the the SLDS icons, as static resources, from metadata? I am creating a QuickAction using ...
1
vote
1answer
137 views

sfdx force:mdapi:retrieve — UNKNOWN_EXCEPTION, what to do with it?

I am trying to set up SDX following this guide. But I get absolutely non-intuitive and non-friendly error. ERROR: The metadata retrieve operation failed: UNKNOWN_EXCEPTION: An unexpected error ...
13
votes
0answers
632 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:source:...
1
vote
1answer
113 views

Trying to set a record's value based on a field via string. Is this dynamic approach possible in Salesforce?

Apologies if this was already answered, but I didn't see a clear cut solution for this issue in Salesforce. I want to be able to dynamically set values for a record based on a predefined list of ...
4
votes
1answer
4k 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
119 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
278 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
344 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
152 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
27 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
131 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
458 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
168 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
295 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
275 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
49 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
121 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
128 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
354 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
117 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
416 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
136 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
74 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
540 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
536 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
629 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
67 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
223 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
91 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
192 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
397 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
28 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
251 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
137 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
470 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 ...
3
votes
0answers
249 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
938 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 ...
2
votes
0answers
30 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 ...
11
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
495 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
160 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
332 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
240 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
69 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
54 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
77 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 ...