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
0
votes
1answer
748 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
3k 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
46 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
774 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
92 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
189 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
931 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
3k 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
111 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
162 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
187 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
431 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
475 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
106 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
92 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
1
vote
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
720 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
1k 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
28 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
1k 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
371 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
778 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
281 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
133 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
470 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 ...
0
votes
1answer
22 views

The best way to write a script that takes data from one field and appends it to another

I have a house number field that if it contains data, the data needs to be be moved (appended) to another (street address) field. This is a one-time operation that needs to be done to all the records ...
2
votes
1answer
1k views

Translation Workbench CustomObjectTranslation Metadata

I'm trying to retrieve the translations in translation workbench to add to Stash. My sample .xml file is below. <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/...
1
vote
1answer
895 views

Migrate Custom metadata type

I need to migrate Custom Metadata type using a package.xml. Can someone please let me know what should I put to get the metadata along with data successfully get migrated? Suppose Custom Metadata ...
4
votes
0answers
290 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 ...
0
votes
0answers
82 views

Continuous Integration: How To Get Over Common Ant Deployment Issues Which Often Require Manual Intervention

I've deployed many times to SFDC using the Force.Com Migration Tool & Ant. In many cases I often end up having to undertake manual steps to get around issues. An example being Flows. Flows cannot ...
2
votes
1answer
313 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 ...
1
vote
1answer
88 views

Can someone explain me what metadata is in plain simple terms from the perspective of SalesForce

Can someone please explain me in plain simple English. https://trailhead.salesforce.com/trails/force_com_admin_beginner/modules/starting_force_com/units/starting_understanding_arch
1
vote
1answer
226 views

Code Coverage Issue while validation

How to find each class coverage for that current jobId which has been validated with only error, code coverage?
2
votes
1answer
277 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 ...
2
votes
1answer
214 views

List of names of standard fields as seen in report/layout metadata

If you look at the metadata for a related list in a page layout, you might see something like this: <relatedLists> <fields>Nopulous_Gateway__c</fields> <fields>...
-6
votes
2answers
3k views

Accessing the Metadata API from APEX [closed]

What is the simplest & easiest way available to access the Metadata API from APEX (accessing the current Org) ?
6
votes
1answer
72 views

FieldPermissions.Field contains strings longer than described maximum

I'm investigating an issue where values of one of the columns on the "FieldPermissions" object get truncated when we sync them to a DB. The column in question is called "Field", and it contains the ...
6
votes
2answers
5k views

Standard Picklist Fields in Metadata API v39

Standard Picklist Fields were renamed in the Metadata API from "CustomField" (v37) to "StandardValueSet" (v38). Now, in v39 they are back to "CustomField", but when you retrieve one of this Standard ...
0
votes
0answers
26 views

Reports Metadata using Apex

I need to get the metadata of the reports using apex in jason or XML format. Can anyone help me to achieve this without using metadata api. Thanks
5
votes
3answers
2k views

Unknown user permission: ManageSandboxes

Using the Force.com Migration Tool (Ant) v1.9.4 to deploy from one sandbox to another both on Spring '17 results in 21. profiles/Admin.profile -- Error: Unknown user permission: ManageSandboxes 22. ...
0
votes
1answer
63 views

Where can I find 'Bookings' Data

I am developing for salesforce and was told to look up a "Bookings" table in Salesforce. It is supposed to contain information such as the sales amount for an opportunity or some related transaction ...
1
vote
2answers
1k views

Global Value Set

I have created a GlobalValueSet using salesforce metadata api. Now I am creating a new field on a existing object using SF metadata api which is going to use this GlobalValueSet, but somehow its ...
1
vote
0answers
114 views

Metadata/Tooling API - Identify orphaned email alerts (workflow actions no longer associated to an workflow)

I was looking to cleanup some of our orgs metadata and identify the email alerts that do not have an active workflow. Is there a way, besides parsing the metadata and finding metadata tag matches on ...
0
votes
1answer
262 views

Describing Objects through schema

Is there any way i can write following information from Org. SF-Object Name SF-Field Name SF-API Name SF-Type SF-Length SF-Possible Values I intend to write them into csv files. I was trying ...
1
vote
1answer
2k views

How to Update Picklist values along with record types using metadataservice?

I have used the following code to add new picklist values to the picklist field called "Tags__c" in contact object. The code works and the new picklist values are getting created successfully but they ...
3
votes
0answers
76 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 ...
0
votes
1answer
220 views

Use access token from Rest API to access Metadata?

Can we retrieve Metadata like apex classes, VF pages, WF rules rtc... from different org via rest api while I have the access token to that Org? Or else there are any other way to access those ...