Questions about the Metadata API provided by salesforce. The API that can be used to retrieve, deploy, create, update or delete customization information, such as custom object definitions and page layouts, for your organization. This API is intended for managing customizations and for building ...
3
votes
1answer
40 views
Salesforce: API to get info of all enterprise users using admins auth token?
Is there a way from the SOAP/METADATA API to get the all the registered users of an enterprise using an API call with the admin's auth-token? I only require the email address, name and role of the all ...
3
votes
1answer
22 views
Where to edit XML for “Lookup Filter” in Force.com
I created custom lookup fields for my custom object in web UI. Some of these lookup fields have lookup field filters. I need to create the same filter for many other similar lookup fields. I ...
1
vote
1answer
30 views
Can't find ForecastingItem sObject in DescribeGlobalResult
We recently upgraded to salesforce API v27 (from 21). Documentation says that there are some new objects added between v21 and v27. ForecastingItem object is one such object. But when I get all the ...
3
votes
1answer
38 views
Removing managed package version information from meta files
I have the same problem that is mentioned in this question and while Andrew's answer explains WHY it happens, I would like to know: Is there any way to prevent/stop managed package version information ...
3
votes
1answer
35 views
How expensive is isDone() in java metadata api
I found the following code example online:
long waitTimeMilliSecs = ONE_SECOND;
// After the create() call completes, we must poll the results of the checkStatus()
// call until it ...
3
votes
1answer
110 views
Metadata API through APEX using old API version
I've been looking online and noticed different ways people are attempting to leverage the Metadata API WSDL through APEX directly (and the issues around consuming the WSDL), but I was curious whether ...
3
votes
1answer
50 views
Full List of All Accessible Types Through Metadata Api
I am looking for some official Salesforce documentation on a list of all available types in the metadata API. If I am using a package.xml file that looks like:
<?xml version="1.0" ...
6
votes
1answer
132 views
REST API: How to update active values for picklist?
I need to update the Picklist values for a custom field on a custom object. I have already populated the Available Values via the Enterprise and Metadata Java APIs, but now I need to move the newly ...
3
votes
2answers
53 views
Deploy list views of classes, pages, etc
Salesforce now allows users to define List Views for Classes, Pages, etc. But I can't figure out how to deploy these to other orgs! Typically, list views are deployed as part of the CustomObject ...
1
vote
1answer
174 views
How List all the Properties of Validation Rules through Metadata Api
I need to list all the Properties of Validation Rule like Status, Description, Error Message, Error Formula inside the Salesforce through Metadata API.
As per my understanding, we can retrieve only ...
1
vote
1answer
52 views
How is the presence or lack of managed package version data in APEX and VF meta files controlled?
From time to time I noticed that my meta files for Apex and Visualforce get changed to include specific references to managed packages version information as shown below. However, my classes don't ...
0
votes
1answer
28 views
How to use the Migration Tool with Single Sign On?
I've used the Ant Migration Tool previously, but only in an Org that allowed a username/password login. Now I'm trying to get it to work for deployment to an Org that uses single sign on, but I can't ...
1
vote
1answer
83 views
Deploying source for a Managed Package to new development environments
Our Managed Package is quite large and we are looking to spin up a couple of new Developer Edition environments for our developers. I'm wondering how others are managing the initial metadata ...
2
votes
1answer
47 views
How to add a field using the SOAP or other API
I am using the SOAP API to load data for multiple SObject types into a completely new Developer sandbox.
I have manually added external ids to many of the objects through the native interface so that ...
5
votes
2answers
252 views
Generate complete package.xml for Org
I'm using the Force.com Migration Tool for Ant more and more. I currently have several organizations at different API versions (release previews, for example). Is there a way to generate a complete ...
2
votes
1answer
49 views
Using the metadata api to Deploy actionOverrides on a Standard Object
I am trying to do as the title says and deploy an actionOverride using the metadata api. I have read everything in the developer guide (there isn't much). Has anyone had any success deploying ...
1
vote
1answer
112 views
Metadata API-based deploys hang in “queued status” since 30.11 (cs7 & cs8 sandbox) [closed]
Is anybody else experiencing this?
Several sandboxes in our Unlimited Edition seem to be having issues with deployments today (tested from Eclipse IDE and Migration Tool). The deploys just hang in ...
3
votes
1answer
83 views
Is there a hidden field deprecation feature for Managed packages?
As an ISV we dream of deprecated fields for quite a while. While skimming through a custom objects meta.xml i just stumbled over a deprecated = false in a field definition
<fields>
...
0
votes
2answers
56 views
Download WorkflowOutboundMessage type from metadata API
Attempting to perform a deploy on a set of unpackaged Workflow Rules and I'm getting an error that my workflows are missing: WorkflowOutboundMessage - is it possible to download these in the IDE or ...
3
votes
1answer
227 views
MetaData API - updating a RecordTypes Picklist
I have successfully been able to add a new value to the Picklist for Lead.LeadSource using the PHP Toolkit on the MetaData API using the following:
$sfm = new SforceMetadataClient(...)
$obj = new ...
2
votes
1answer
123 views
Contents of the metadata deploy zip file to delete a class in a production org
I'd like to use the metadata API directly to delete a class from a production Org.
In addition to deleting the class my goal is to learn about using the Metadata API. Hence
I want to avoid using the ...
1
vote
0answers
328 views
Parent entity failed to deploy
I'm trying to use the metadata api to do a destructive change call on all non-packaged components in my sandbox.
However, I keep receiving the following error:
layouts/SocialPost-Social Post ...
1
vote
1answer
110 views
How to get tab visibilities for standard tab?
Trying to put a permission set in source control that grants access to the Ideas tab. I've been able to download the tab visibility by adding the Idea as a custom object to my package.xml, but that ...
5
votes
3answers
354 views
Override Eclipse Metadata API Version
Is it possible to override the eclipse metadata api version? Often new details are available via the metadata api before the latest eclipse ide update (assuming that they actually include new stuff ...
0
votes
1answer
84 views
Permission Set Metadata Missing Tab Visiblity?
I'm trying to get some new permission sets that grant access to custom tabs into source control, but the resulting metadata doesn't contain any tab visibilities. Is this a known hole in the metadata ...
3
votes
2answers
299 views
Ant Migration Tool deleting objects with Rollup Summaries
I attended the Dreamforce '12 session Team Development and Release Management for ISVs and one segment of the session was about the tools FinancialForce use for blanking an org before deploying a ...
6
votes
3answers
593 views
How to Search Workflow Rules or Validation Rules etc in Apex i.e. Metadata Search via Apex?
Recently I'm working on building something for developers/administrators - a handy 100% force.com app allowing to search metadata. Currently this app allows you to quickly search (from sidebar) custom ...
4
votes
1answer
197 views
Programmatically obtain WSDL for Metadata API
It seems that there is a loose typed WSDL for SOAP API - Partner WSDL
Is there something similar for Metadata API or can I get a WSDL for Metadata API programmatically?
23
votes
2answers
1k views
Has anyone, ever, successfully invoked the Metadata API from within Apex?
While researching a semi-related question posted here earlier, I dug up some interesting and conflicting information regarding whether it's even possible to use the Metadata API from within Apex. I ...
10
votes
2answers
448 views
Ant vs other deployment tools
I am wondering if there are any use cases for using Ant specifically over all other deployment methods and tools?
It seems Eclipse, changesets and packages have all the functionality you need.
2
votes
1answer
183 views
Create new sharing reason from APEX
Is there a way to create a new sharing reason via APEX? Or this is only possible via the Metadata api?
Sharing reasons documentation
And if not -- is it possible to specify the 'Reason' when ...


