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.

learn more… | top users | synonyms

0
votes
0answers
2 views

How to get a list of updated metadata objects using Metadata API?

i.e. I want to get a list of all CustomObjects, ApexClasses etc. which were updated since a given point in time. The only thing I have so far is: for (String type : types) { ListMetadataQuery q1 ...
2
votes
0answers
11 views

Is “All Related Objects” field of an object's Feed Tracking options available in metadata?

After enabling "Publisher Actions" for Chatter, you can tick a checkbox called "All Related Objects" for a specific object in Setup > Customize > Chatter > Feed Tracking. This will turn on the ...
1
vote
1answer
107 views

Retrieve Folder Metadata using Metadata API (File based)

We are trying to retrieve zip file of metadata in Salesforce. After trying in several ways we are able to get the metadata in a zip file but, it only has "package.xml" not the folder detail file as ...
2
votes
0answers
40 views

I can't download classes and triggers in Eclipse

I wanrt to download my project metadata in Eclipse also in Mavensmate IDE. The problem is that in metadata project component apex classes and Triggers does not appear.Do I need to change something in ...
2
votes
2answers
35 views

Adding values to a picklist using apex

I need to dynamically add and remove values from a custom picklist using APEX code. I want this to be reflected in the picklist meta data e.g. not only appear in record details. How can I do that ...
1
vote
1answer
21 views

Is it possible for a field to be read-only in the metadata, but update-able in a layout?

Using the REST API (v31.0), I can get the metadata for an object and look at the fields for that object. { fields: [ { ... updateable: false, } ] } Buried deep within the ...
4
votes
2answers
118 views

Recommended way to query all the fields for an object type in a SOQL query

I need to query all the available fields for an object, but retrieving each object one at a time via the REST API is not an option. // Not feasible for each account record ...
1
vote
2answers
31 views

Can we replace existing picklist values using meta data API

Suppose there are three picklist values "a","b","c".With the mentioned values there are records in that object. I want to replace "a" with "x" , "b" with "y" and "c" with "z". Can we do this using ...
2
votes
1answer
46 views

How do I get the record types that are available to a user

I'd like to retrieve the record types available for an object. Is the recommended way to do this to use the recordTypeInfos collection returned on the object's metadata?
1
vote
2answers
19 views

How to get the referenced field's name value when the field is referencing multiple types

I'm using v31.0 of the Salesforce REST API. When looking at the metadata for some of my objects, Salesforce says that the OwnerId field references two tables: Group and User. The JSON that Salesforce ...
2
votes
1answer
36 views

Migration Tool: Object Buttons, Links, and Actions?

Not seeing anything related to these in the Metadata types documenation. Can anyone give me an example of how these can be referenced?
1
vote
2answers
38 views

Deployment In Chunks Using Metadata API Deploy Method

We have a big project depending on Metadata API and we are using deploying of all components at once. But now size of components have become too large (80MB) and our server can't send files with this ...
1
vote
1answer
60 views

Metadata explorer to view workflows

There are quite a few good tools on AppExchange to view metadata components, such as objects and code, but none of them seem to be able to display workflows. Using Eclipse IDE is a bit of a pain, as ...
2
votes
1answer
30 views

How can I access the data/metadata of the Salesforce homepage via REST API?

I'm trying to make my Salesforce application as dynamic as possible. One of the things I'd like to do is pull the meta-data and data that make up the Salesforce home page. Is this possible, and if so, ...
2
votes
1answer
30 views

Layout must contain an item for required layout field: Name

I am trying to add a custom field to layout. but it is giving me an error like "Layout must contain an item for required layout field: Name". I have already created the field ...
2
votes
1answer
69 views

Version 31.0 metadata is breaking my app

I decided to switch to v31.0 metadata, needed to update some code to make it compile, but that's fine. However, now it's not working the way it used to. My code is in C#, it was used to retrieve page ...
1
vote
1answer
30 views

Can a “reference” type field reference more than one table?

Using v31.0 of the Salesforce REST API, when querying metadata for an object, if the object is of the type reference, it will have it's referenceTo field populated with the referenced table. { ...
0
votes
0answers
18 views

Retrieve all validation rule from Lead and cases

I am using PartnerWSDL for integrating salesforce with my application. I am facing one problem while creating Lead, as user has created some Validation rules in Lead Record. Lets take an example, User ...
1
vote
2answers
32 views

Is there any way to get the latest created Package version from a packing org?

I have a packaging org, where I am creating managed package. I would like to use an API to get the version number of the last created package. Is there any mechanism to achieve this?
4
votes
1answer
74 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 ...
3
votes
1answer
44 views

Edit existing Visualforce Page (ApexPage) using AndrewFawcett ToolingAPI package

In APEX there is great wrapper class to access the ToolingAPI written by Andrew Fawcett https://github.com/afawcett/apex-toolingapi There are a lot of examples including one which shows how to edit ...
0
votes
0answers
14 views

Controlling Field link broken

It seems that the Controlling Field link is broken / disappeared on one of our custom fields I detected this when I wanted to add a new picklist value to a dependent field, and found that 4 of the ...
0
votes
0answers
22 views

Find validation rules for Lead, Contact in salesforce

I am integrating Salesforce in my asp.net application by using PartnerWSDL or MetaDataWSDL. I need to find all the mandatory fields that we have in our salesforce. Like in lead we have LastName, ...
4
votes
2answers
55 views

Cannot Get Custom Quick Action to the src folder using eclipse

I have created two object-specific Actions on my Custom Object, I was trying to sync over the new quick actions that I have created to my src code using eclipse and force.com plugin. I can see those ...
3
votes
2answers
157 views

Set 'Modify All' for around 100 profiles

I want to give 'Modify All' permission for certain objects, to around 90-100 profiles in my org (excepting a few). I feel it is very laborious work.. Is there a way to do this easily through the ...
1
vote
1answer
31 views

reporting on email-to-case settings

I have several hundred email-to-case rules already set up. I am trying to find an email-to-case rule that is setting a case field (case origin) to a specific value. How could I find this? IMHO the ...
0
votes
1answer
24 views

Tidy up metadata

Are there any apps that can used to analyze the metadata for redundant fields like custom fields which are not used on any layout or VF page which is not referenced anywhere. Maybe there is some ...
2
votes
1answer
49 views

Metadata - Case Search Layout

In our project we have made couple of changes in the Search Layout of Case object. Can anyone tell me where the metadata reside for this Search Layout in package explorer (Eclipse) hierarchy ? I ...
2
votes
1answer
66 views

Metadata Apex Class deploy Java example doesn't work

I am trying to make this sample code work, http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_deploy.htm. It is just a one class java project. When I run it I have deploy.zip, which ...
7
votes
2answers
93 views

Difference between isCreateable and isUpdatable for DescribeFieldResult?

Can anyone explain the difference between DescribeFieldResult isCreateable and isUpdateable methods? Seems to me that isCreateable should apply only to an object, not to a field, but the ...
0
votes
0answers
53 views

How to create outbound messages programmatically in Salesforce? (Using Metadata API)

Is there a way to create outbound messages programmatically in Salesforce? for example a class in which make Metadata API call to create an outbound message? Any code sample?
8
votes
1answer
47 views

Metadata API usage in a managed package

If I have Apex code in my managed package that makes calls to the metadata API of the org in which it is installed to do various things, e.g. describe page layouts, create Visualforce pages based on ...
2
votes
0answers
32 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 ...
5
votes
1answer
125 views

Displaying label of an action (e.g., Save, Cancel) in Visualforce

I'm working on a global implementation project, and in building custom Visualforce pages I'd like to use the standard Salesforce labels for actions such as Save and Cancel. Does anyone know how I can ...
-1
votes
1answer
233 views

META DATA Comparison between TWO ORGS [duplicate]

Are there any app exchange apps/tools which we can use to compare the meta data between two orgs
6
votes
3answers
685 views

How do I get the length of a string field?

For a string field, is there a way to get the defined length of the field? For example say I allow a maximum of 10 chars, can I get that in apex? I am not asking how to get the length of a string ...
0
votes
0answers
36 views

Create CustomObjectCriteriaBasedSharingRule through metadata CRUD API

I'm trying to create sharing rule (critteria based) through Metadata API (wsdl imported to APEX). After many tries and fails I have got to point when I no longer know what to do. Currently I have XML ...
3
votes
3answers
86 views

Quick way to clear all classes and triggers

Long story, but I want to clear all the code from an org. I don't need to clear Visualforce pages (there is only one, and I'm deleting that manually) - just all triggers and Apex classes. Does anyone ...
1
vote
0answers
97 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 ...
13
votes
1answer
128 views

Salesforce Object with _hd suffix?

I am coming across an underscore hd ( _hd ) object in my instance, Ive not noticed this before? I have a custom object called Membershi__c I also see the following to additional objects ...
3
votes
1answer
235 views

Must specify a {http://www.w3.org/2001/XMLSchema-instance}type during creating Approval process using metadata API

I am trying to create Approval process using Metadata API but unable to figure out what i am missing. One doubt is XML don't have any symbol why which me or Salesforce could identify on which object ...
3
votes
3answers
132 views

Metadata comparison

Are there any service/known option to campare metadata on file system and some org and to identify what components have differencies. Is it possible to link this feature with Ci tool so it ...
1
vote
3answers
528 views

Force.com Migration Tool - How to correctly retrieve & deploy

I'm looking for some guidance on how this tool is widely used. We have the following scenario: Source: 1x Production org, with 1 (or more) managed packages installed. Targets: Multiple Production ...
2
votes
2answers
77 views

Finding the SObjectType from the SObjectField

As part of the implementation of an API, I would like to be able to find the SObjectType from the SObjectField: public class MyClass { // Fields are from various SObjects public void ...
1
vote
2answers
119 views

Best Practices to move metadata from sandbox to free developer org

I need to move the metadata from sandbox to free developer org.I have 7 custom objects,pages,classes,components,static resources,updates to standard objects..Please suggest the best practices and ...
6
votes
1answer
379 views

Premature End of File error while creating metadata from nodejs

I am trying to create a list view on a custom object from nodejs server. I have constructed a the SOAP(XML) body like I had done here, but I keep getting the Premature End of File error, which doesn't ...
3
votes
1answer
128 views

Is there any way via any API to track Metadata history?

I am using metadata API to retrieve the LastModifiedBy of an Object. But, it returns me only one User. I wanted to know if we can track, the Users whoever modified the Object. Is it possible by any ...
1
vote
1answer
136 views

Get address information from Metadata

I would like to get values for Address.Setting Metadata Component in Salesforce.There are stored all country and state ISO codes. <?xml version="1.0" encoding="UTF-8"?> <AddressSettings ...
2
votes
0answers
101 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 ...
0
votes
1answer
95 views

Accessing field dependancy values in the back end

On our UI we have two picklist fields where we provided field dependancy. On the front end we can see these dependancies. Now at the backend there will be a table to store these values. I would like ...