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 ...

learn more… | top users | synonyms

0
votes
0answers
17 views

How can I retrieve ApexClass definitions?

I am trying to retrieve ApexClass definitions via a C# application using the Metadata API. I am able to call listMetadata for ApexClass types, however when I try to call readMetadata on those files I ...
1
vote
1answer
15 views

Programatically create pages for inline visualforce

I have following visualforce page available on Lead layout for adding as inline visualforce page. <apex:page showHeader="false" sidebar="false" standardController="Lead" ...
2
votes
1answer
39 views

How to get a “real” production org for testing

Disclaimer: I know how to create any type of orgs using the Environment Hub app. For our ISV app we need to test a feature that is deploying Apex classes to the user's org. Code-Deploying on ...
1
vote
1answer
19 views

Profile Metadata Question - False User permissions

One of our QA steps for our release process, is to identify if configuration changes have happened in production, that may have effected our repository metadata, specifically in Profiles. While ...
1
vote
1answer
24 views

a way to check current field history data retention

The Data Retention Policy for Field History states that the default values are : 18 months of production storage and 0 years of archive storage. However this value can be changed either by metadata ...
0
votes
2answers
26 views

Is there a way to retrieve Metadata dependencies via ANT?

Title pretty much says it. Just curious if there is a way to check for metadata dependencies through the Metadata API. Similar to the feature in change sets.
0
votes
0answers
15 views

deploying Salesforce via Migration tool

I have performed a couple of retrieves and pushes using the SF migration tool, but we are looking at ways to automate things (like most developers). When I look at the output from the ...
1
vote
0answers
12 views

createmetadata/Updatemetadata/Upsertmetadata does not work for flowactions

I'm able to create new workflow rules but unable to create workflow flow actions (which are intended) to act as triggers to invoke flows via the Metadata API - Create/Update/Upsert calls. I don't get ...
4
votes
2answers
67 views

Why is this Apex Class dependent on a bunch of completed Apex Jobs?

I've got a Batch Apex Class like so. (It happens to use the Dan Appleman decoupler pattern, augmented for batch. Thanks Dan!) public with sharing class Dispatcher implements ...
0
votes
0answers
35 views

Can't revoke access to fields in Profiles using field name with namespaces for ProfileFieldLevelSecurity via Metadata API

I am trying manage access to “Custom Field-Level Security” for profile using Metadata API. I see on my organization API Name of current field is "nameSpace__FieldName__c" (the same is in workbench) ...
1
vote
1answer
24 views

Clone metadata between Org to Org

What is the best way to clone metadata from one salesforce Prod Org to other Salesforce Prod Org? We are analyzing tools like Snapshot but looking for any alternatives so that all the metadata can be ...
0
votes
1answer
22 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
27 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 ...
2
votes
0answers
27 views

Metadata API: readMetadata

I read metadata from use readMetadata via SOAP API <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" ...
1
vote
0answers
9 views

Profile Login IP Range Description Missing

I am missing the description field from the loginIpRanges for profiles. According to this doc (http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_profile.htm#ProfileLoginIpRange_title) ...
0
votes
1answer
29 views

Size of an attachment?

Is there any api in salesforce to find out the size of an attachment? I am creating package.XML in Salesforce and I would like to make sure that the size is less than 3 MB.
1
vote
0answers
16 views

Home Page Component added to Home Page Layout with Metadata API

We've added a link that uses the Metadata API to add a managed home page component to all of the home page layouts. The code seems to work and when I open up the home page layouts the component is ...
0
votes
1answer
59 views

UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1417884933-3641 (-2142224028)

I get this error id (1417884933-3641 (-2142224028)) when i try to use the Metadata API(.Net) to create a custom object with fields This is my sample code CustomObject co = new ...
2
votes
2answers
91 views

Login IP ranges list

How do I get a list of the Login IP ranges specified in each profile of my org. The list that is obtained from the data loader from LoginIP obkect doesn't seem to give results for each profile.
3
votes
1answer
60 views

How can we access Lightning Components via MetadataSevice.cls from within APEX and Visualforce

This is a spinoff form a question of: Are there any plans to update ToolingAPI.cls for APEX to v32 in order to support Lightning Components? Here we focus on MetadataAPI (in contrary to the OP which ...
3
votes
1answer
51 views

difference between metadata and tooling API

What is the difference between metadata API and tooling API? When I read the documentation, they both appear the same to me from the metadata perspective. I would like to know how I can use it for ...
1
vote
1answer
25 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) ...
4
votes
3answers
106 views

Lightning access via ToolingAPI or MetadataAPI

I assume there is no official support in the APIs right now since Aura Components are in BETA. The choice of developer tools is a bit narrow (Developer Console and Sublime Lightning) and I want to add ...
2
votes
1answer
32 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 ...
1
vote
1answer
56 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 ...
1
vote
0answers
66 views

How can I retrieve Field-Level Security Settings for Task object fields using MetaData API

I'm trying to retrieve Field-Level Security Settings for Task object standard fields like Comments or Name using MetaData API. I was trying a 'retrieve' request like this: <retrieve> ...
0
votes
0answers
16 views

How to upload content (PDF/WORD ) to Salesforce CRM Content using Metadata API?

I am having requirement to upload reports in pdf/word format to Saleforce CRM Content object. I am trying to achieve it using Data Loader in command line mode but want to explore other options as ...
0
votes
0answers
9 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 ...
0
votes
1answer
12 views

CustomConsoleComponents metadata not including lookup component

<customConsoleComponents> <primaryTabComponents> <containers> <region>Right</region> <sidebarComponents> ...
2
votes
1answer
29 views

Unable to update metadata (picklist values etc) after post install script is executed

Once a managed package is released, we have to perform several manual steps such as update picklist values, add field to layout, update field level security etc. And there are around 100's of ...
1
vote
1answer
31 views

Intermittent error when calling checkRetrieveStatus in metadata service, version 32.0

I recently upgraded my metadata service from version 29.0 to 32.0 and I'm having some difficulties with the checkRetrieveStatus method (new method as of version 31.0 - see quote). The code included ...
3
votes
2answers
146 views

Unit tests executed via metadata API failing on call to system.test.startTest

I have an CI system using Jenkins and the metadata API to automatically execute all unit tests in our packaging org. Some, but not all, of the unit tests have started failing at the point where the ...
4
votes
1answer
48 views

How do I distribute Record Type Assignments when packaging Permission Sets?

I'm trying to create a Managed Package that relies entirely on Permission Sets. No profiles! In my head, Profiles are really "owned" by each org administrator. One needs serious justification to ...
0
votes
0answers
38 views

Get list of all report names

I would like to obtain a list of all SalesForce reports under all folders - the ones available by default (ex - All reports under Accounts and Contact Reports folder) and also the custom reports. At ...
0
votes
1answer
68 views

FIELD_INTEGRITY_EXCEPTION Must specify a nameField of type Text or AutoNumber

when i am creating salesforce custom object in C# using salesforce metadata api i am getting following error: FIELD_INTEGRITY_EXCEPTION Must specify a nameField of type Text or AutoNumber CODE: ...
2
votes
1answer
50 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: * ...
0
votes
1answer
110 views

Displaying custom field description on VF page

I have a requirement where the names of the custom fields far exceed the 40 characters limit. So instead I thought I would put a keyword in the field name and the whole name in the description of the ...
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 ...
1
vote
1answer
52 views

Fectching validation rule for specific object

So i am trying to fetch validation rule for a specific object, is there any API call via which i can achieve the same ? Already done with fetching validation rule for all objects via ...
0
votes
0answers
54 views

Error when reading metadata: INVALID_TYPE: This type of metadata is not available for this organization

I am trying to get a list of all metadata objects with the given name. However, the code below fails: connection.readMetadata("ApexClass", new String[] {"SampleDeployClass"}); with this error: ...
1
vote
0answers
69 views

Can I get a Lead View to show converted Leads?

I am using apex code to give me all of the leads in a lead view like this: Database.QueryLocator ql = Database.getQueryLocator('select Id from Lead limit 1'); ApexPages.StandardSetController ...
2
votes
0answers
124 views

Accessing Custom Labels through Batch Apex

We have a mobile application which needs custom labels for different languages through Salesforce custom labels. Because of API limit on metadata api, we are planning to store all the required custom ...
1
vote
0answers
11 views

How to remove currency metadata from salesforce reports

Im trying to remove currency metadata from reports permanently . The intention of removing the metadata was to default display the currency in reports and dashboard according to User Currency ...
4
votes
0answers
69 views

How to tell if a field is not supported in metadata api?

I have the Order Status field in the Order.object file defined simply as follows: <fields> <fullName>Status</fullName> <picklist> <picklistValues> ...
1
vote
2answers
101 views

Can I create/update/delete metadata using APEX?

In particular, I want to create a custom field for Task for a specific unit test, then delete that field when the test is finished. I know Salesforce uses the Metadata API, but this seems designed to ...
0
votes
0answers
30 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
21 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
2answers
75 views

Metadata API, describeMetadata result and PageLayouts

I am trying my hand at building a package.xml dynamically to download everything from an salesforce org, so I started the Novel approach of getting the describeMetadata and iterating through it to ...
2
votes
1answer
54 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
316 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 ...