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
73 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
234 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
95 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
224 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
441 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
276 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
145 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
517 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
290 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 ...
2
votes
0answers
32 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
640 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
184 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
360 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
250 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
57 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
83 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
889 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
837 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
4k 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
47 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
804 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 ...
2
votes
1answer
96 views

Safely refactoring public methods in apex classes

True or False: When refactoring legacy methods (e.g. adding a parameter or deleting altogether), it is guaranteed not to break anything as long as I update every reference in the code base, based on ...
1
vote
0answers
207 views

How can I delete picklist values via the metadata API?

I cannot find a way to delete picklist values via the metadata API. I have read a lot from the Salesforce Metadata API docs, but it doesn't say wither or not you can do this. I'm using version 39.0 ...
2
votes
1answer
1k views

How to Make Metadata.Operation deploy work?

Did anyone tried to new Salesforce Summer 17 feature to deploy metadata records and layouts by Apex Code? I tried to use this feature to update custom metadata record and it fails for me. I just ...
2
votes
1answer
4k views

Error: “Picklist value in picklist not found” Opportunity Stage - Sales Process [duplicate]

I have different Record Types on my opportunity and different Sales Prosses associated with them to be able select different values in picklist field Stage depending on Record Types. I add custom ...
0
votes
1answer
28 views

Fetching the RTF field value

Using Schema.DisplayType we are able to fetch the field type i.e RTF. can anyone help me how to fetch the value present in that field. String type='case'; Map<String, Schema.SObjectType> ...
1
vote
1answer
126 views

Is it possible to update the Salesforce's Auto Response Rules' Rule Entries in bulk?

I need to update the "Sent From (Email)" of all the rule entries in Case Auto-Response rules. Is it possible to do that all together since I have 400+ rule entries using Data Loader or some other ...
0
votes
1answer
163 views

SoureTree + Mavensmate vs Eclipse + eGit [closed]

Just a quick opinion question. Regarding Git/Github version controlling from SFDC IDE's. I'm training some non git experienced consultants on how to use Git with SFDC Metadata. Personally I prefer to ...
1
vote
0answers
192 views

Update Picklist Values Via Matadata Api

There are three Picklist values- Category, Product, And Version in such way Product depend on Category and Version depend on Product. I have requirement to edit the existing Picklist values while ...
1
vote
1answer
473 views

Create a lookup field in salesforce using metadata api c#

I am using metadata api with c#. Below code is not giving me an error but still it is not creatng the field in salesforce. Please suggest. CF = new MetadataAPI.CustomField(); ...
0
votes
1answer
487 views

How to query Metadata Query [duplicate]

I want to query newly created fields(Metadata) in the contact object where day = Today(). Is this possible in Salesforce?
0
votes
2answers
33 views

Usage of a user Account in an org

Is there a way to quickly find out if a user(Username/Email) in sales force is being used in any of the classes /apex jobs/tasks . Need to understand usage of a user we need to Inactivate.
1
vote
2answers
111 views

How to find type of an hardcoded ID in JAVA

In SFDC we have methods to identify the type of ID Sample code: Id idType = '50011000002ZXX'; Schema.sObjectType entityType = idType.getSObjectType(); System.debug('ID belongs to:'+...
2
votes
1answer
97 views

Which sobject stores the FieldPermissions for a profile.?

For a ProfileSet I see that field permissions are stored in the FieldPermissions sobject. Does anyone know which sobjects stores the FieldPermissions for a Profile? Thanks in advance
2
votes
2answers
1k views

How To Retrieve LeadConvertSettings with Force.com Migration Toolkit

I've been trying to retrieve Lead Conversion field mappings in order to add them to Metadata for deployment. I noted in https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/...
1
vote
2answers
800 views

Create picklist field with picklist values

I am using Metadata WSDL along with Partner WSDl to work on metadata API to create fields. I am able to create fields of type text, checkbox, etc, but I need to create a picklist field and add ...
3
votes
1answer
2k views

Opportunity StageName metadata retrieve in API 39

I was trying to migrate some standard fields like Account Type, Opportunity Type and Opportunity StageName with Migration Tool with API version 39.0 but am i don't see any pick list values in Metadata ...
1
vote
1answer
29 views

Tools To Manage (Split, Edit More Easily, etc) Change Sets?

I am not finding anything on AppExchange. Does anyone know of a "Change Set" editor better than that built into Salesforce? Trying to remove items from a change set is a nightmare. We have a need ...
0
votes
1answer
2k views

How to deploy Path

I'm trying to deploy custom Path using ANT. I have deployed the pathAssistant and the flexipagemetadata but the Path is still not visible in setup nor on page layout. I can see that pathAssistant ...
0
votes
2answers
374 views

Mavensmate doesn't get the correct metadata index when refreshing

Whenever I refresh the metadata index for the 'CustomObject' Metadata type, an incorrect set of objects comes up. For example, I have a custom object named Account Address, which tracks the addresses ...
5
votes
1answer
853 views

How can I get better diffs when looking at Salesforce metadata

Sometimes when I look at changes to Salesforce metadata using a git diff tool like SourceTree it is not clear what's actually changed. If one block of XML has been deleted and another one inserted the ...
1
vote
2answers
312 views

how to deploy file with brackets in the name using workbench/ant package xml

I have to profile layouts named with brackets in the name. When retrieved the package xml have them listed as: <members>My layout (version 1)</members><br/> and the content of the ...
1
vote
0answers
138 views

How can i get metadata for dataset objects in salesforce wave analytics?

I m trying to find a way in salesforce wave analytics to get the metadata of dataset object dynamically. Since user have a flexibility to choose either Salesforce objects or to upload a CSV file to ...
8
votes
1answer
488 views

Failed to retrieve related layout via metadata namespace

Wondering if anyone has actually tried Metadata namespace. I have tried the following code in anonymous block in my sandbox: Metadata.layout attachmentLayout = new Metadata.layout(); List<String&...
10
votes
1answer
2k views

Deploy Metadata from Non-Certified Package Versions via Apex - what does it mean

In Summer 17, there is a new checkbox in Apex Settings: Deploy Metadata from Non-Certified Package Versions via Apex. I tried to google what does certified package mean but got no luck. Does it mean ...