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
1answer
18 views

Turning off parameter runAllTests to false while deploying code

In the migration tool, there is a parameter called- runAllTests. The same parameter can also be used for deploying code via metadata API. Can the parameter be set to false while deploying the code in ...
0
votes
1answer
23 views

What will updating a production server to Summer '14 do?

I'm trying to delete a trigger off production, but all my efforts to do so have been met with failure. My most recent attempt should work, but the IDE is first asking me to upgrade my version of the ...
0
votes
0answers
8 views

Metadata API SearchLayouts not showing updates

I'm making extensive use of the Metadata API (We have it implemented in Javascript for an admin page on a managed package). The main features we're using is the automatic creation of buttons (to ...
0
votes
2answers
36 views

New Project Creation Not Working on Mavensmate

I am using a Windows 7, 64 bit system with Sublime Text 3 build 3065 and Mavensmate version 4.0.2 My user settings are as below. "mm_workspace" : "c:\mymavenprojects", "mm_http_proxy" : ...
0
votes
0answers
19 views

REST API to get validation rules NodeJS

How do we get the list of all validation rules in SalesForce through the REST API? I'm using NodeJS. I see that there are methods in SOAP API (listmetadata) which can help, but can't find anything in ...
1
vote
1answer
17 views

MetadataAPI: Missing MetadataPort.checkStatus(String[] asyncProcessId) in MetadataService.cls v32.0

I'm updating MetadataService.cls form a older version for v29 to the current version v32 and found some members maybe missing: MetadataPort.checkStatus(String[] asyncProcessId) ...
2
votes
1answer
29 views

Using Wildcard in Metadata API

We have more than 300 custom fields in several objects. When we retrieve them using Metadata API it throws exception of "Wenservice callout failed: String limit exceeded 100000" so we are thinking of ...
0
votes
1answer
31 views

Retrieving Profile with all Components Permissions using Metadata API

We have an application which retrieve Profiles from an Organisation but if we retrieve profile without specifying custom object or other component in package.xml file then it doesn't retrieve ...
0
votes
0answers
8 views

Metadata API does not recognize customobjectOwnerSharingrule based on groups

I am using Salesforce Migration Tool to retrieve metadata including customobject sharing rules. For a specific custom object I have two sharing rules. One based on the users' role and the other based ...
3
votes
0answers
20 views

Does 'Deploy with Active Jobs' work for managed packages?

So there's this new feature: 'Deploy with Active Jobs' It lets you deploy batches and schedules even if they're running. This is great for changesets. Does it work with managed packages?
1
vote
0answers
35 views

readMetadata returns nil records, what am I doing wrong?

I'm able to list Layouts with listMetadata just fine. When I attempt to readMetadata for a Layout I get nil records back. Any ideas what might be happening? Thanks in advance for replying. SOAP ...
5
votes
1answer
72 views

Why are my default values always null for checkbox/boolean fields?

I setup a field in Salesforce: When looking at the metadata for my custom object containing this field, this is the data on that metadata field: "defaultValue": null, "defaultedOnCreate": ...
6
votes
1answer
63 views

Any way of resetting my development org to an empty state?

Is there currently any way to reset a salesforce development org to an empty state using the Migration tool. I am aware of destructiveChanges.xml but this seems to be giving me issues because of ...
2
votes
1answer
79 views

Does Salesforce auto-replace org id references in apex code in sandboxes?

I may be taking crazy pills, but it seems like SFDC is doing a find and replace on any strings with a production org id and replacing them with the sandbox org id when creating a sandbox. I can't seem ...
4
votes
1answer
60 views

What is the Best Practice for the right Training Environment?

As we all know, good user trainings are crucial to ensure a high adoption rate and a successful CRM strategy. I'm hired quite regularly by customers to provide enduser trainings. Always there is the ...
2
votes
1answer
39 views

Is it possible to create a new WorkflowRule using Metadata API?

The question is basically as in the title: Is it possible to create a new WorkflowRule using Metadata API? I'm using Java, and I want to create a workflow rule for a custom object. I've tried: * ...
2
votes
2answers
180 views

Saving mutiple files in Salesforce org with MavensMate in Sublime Text 3

I'm trying to save a large number of files for an org in a single instance (over 35 files at a time). I'm replacing numerous endpoints to a new remote site, so basically a find/replace across numerous ...
0
votes
1answer
34 views

fetch the metadata of a custom object in a apex class

my question is, is there any way to create a apex class which fetches the details of validations ,datatypes and other info. of the fields related to a particular custom object and display them in a ...
1
vote
0answers
24 views

Metadata weird changed on sandbox

I am currently using mavensmate and sourcetree. For some weird reason all the files for the objects in my repository had changed, most of them are displaying the following change: and some of them ...
0
votes
1answer
44 views

How can I get a metadata from APEX RESTful service?

I'm a front-end developer and my knowledge is little bit in Salesforce. I'm developing single-page application in AngularJS to Visual Salesforce and faced a problem with an error: ...
0
votes
0answers
49 views

Error while querying workflow rules using tooling api

I am trying to run the following query in my developer console (using tooling api): SELECT Id,Name,NamespacePrefix,Metadata FROM WorkflowRule but get an error saying 'An unexpected error occurred.' ...
2
votes
1answer
137 views

Metadata API : How to get the translated values of picklists of my object

Wanna get the translated values of picklists of my object? How can I get them in Apex. I tried using Metadata APi but invain. Can anyone suggest me?
0
votes
0answers
25 views

Salesforce Flow Metadata list / retrieve

Strange Behaviour. 1. When i perform a list operation on Flow, I get the following response. [ { "createdById": "00520000003eLmNAAU", "createdByName": "Gunish Rai Chawla", ...
0
votes
1answer
19 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
1answer
47 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
233 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
73 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
143 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
37 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
276 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
3answers
90 views

Can we replace existing picklist values using meta data API

Suppose there are three picklist values "a", "b", and "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 ...
2
votes
1answer
58 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
43 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
90 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
69 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
69 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
39 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
61 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
97 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
44 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
22 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
38 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
95 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
74 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
22 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
29 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, ...
6
votes
2answers
129 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
168 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 ...
2
votes
1answer
50 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
26 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 ...