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
2answers
16 views

Rate limit on Metadata API?

Is there a rate limit on the Metadata API? I seem to have caused some massive problems by using the Migration Tool a bit too frequently.
0
votes
0answers
17 views

Are Duplicate Rules Supported by Metadata

I've found how to reference Matching Rules by name in Metadata, but that's only the logic to identify a duplicate. I'm looking for how to reference Duplicate Rules by name in Metadata, which will ...
0
votes
1answer
26 views

Error Adding values to pickslist on apex with metadata

i'm trying to add a new value to a picklist every time a trigger is executed, but now i'm stuck in front of a wall that i can't pass through due to the fact that i don't understand why i'm getting ...
1
vote
1answer
15 views

What metadata type can be used to extract picklist available values per record type?

It is not Fields, record types and the Picklist fields. How can I move them from one org to another org?
1
vote
0answers
23 views

Discrepancy between fullName/fileName is listMetadata call when working with a managed package

I have modified some layouts in a managed package, and would like to retrieve the Metadata for those layouts via the Metadata API. I find that I can retrieve these layouts with the following ...
0
votes
1answer
11 views

Not able to push Appexchange upgrades

I upgraded my package, however, i am not able to push upgrade due to the following error message: Salesforce Release in Progress The subscriber is not on the latest release of salesforce.com. ...
4
votes
1answer
106 views

Hitting governor limit while retrieving custom labels

In the current functionality, we retrieve custom labels from the source organization. The labels are retrieved from salesforce into another Salesforce organization. However, when retrieving the labels ...
0
votes
1answer
29 views

Provide access to visualforce page for all profiles

I am creating a visualforce page from apex, using the metadata api. To call the metadata api I am using https://github.com/financialforcedev/apex-mdapi MetadataService.MetadataPort service = ...
1
vote
1answer
37 views

Metadata Api: Unable to update to active values for picklist in record type

I am trying to update the record type to move the picklist values to the 'active values' . I am using the metadata api. Below is my code where Scope_Of_Services_Tasks__c is the name of object , ...
0
votes
2answers
33 views

allow user to create picklist values using metadata api

My requirement is to allow a user (other than salesforce admin) to allow to add picklist values by filling a value in text field and submitting form via a visualforce page. I am using javascript ...
0
votes
1answer
27 views

Is it possible to create Sharing rules via Metadata API?

Is it possible to create owner or criteria based Sharing rules for both custom and standard object via Metadata API? When I look at metadata.xml (version 32), CustomBasedSharingRules or any other ...
0
votes
0answers
17 views

How do you deploy edited Search Layouts via Metadata API using ANT or Force.com IDE?

I know how to retrieve the Metadata via this questions; Metadata - Case Search Layout And I understand that they must be retrieved via the Object or Custom Object itself and the list of components ...
0
votes
1answer
31 views

Deploy unmanaged package with Metadata API

I am trying to deploy an unmanaged package in a Metadata API zip file and access it via a namespace. My zip file has the structure: Test_Package/package.xml Test_Package/classes/ZZZ.cls ...
0
votes
0answers
27 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
28 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
52 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
30 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
29 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
32 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
18 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
15 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
80 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
42 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
28 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
25 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
28 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
33 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
16 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
24 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 ...
1
vote
2answers
117 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
103 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
80 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
77 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
37 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
135 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
37 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
2answers
96 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
75 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
24 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
10 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
15 views

CustomConsoleComponents metadata not including lookup component

<customConsoleComponents> <primaryTabComponents> <containers> <region>Right</region> <sidebarComponents> ...
2
votes
1answer
47 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
37 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 ...
4
votes
2answers
190 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
55 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
55 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
78 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
60 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
159 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 ...