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

1
vote
0answers
10 views

Read AddressSettings with readMetadata API call

As I read the documentation we should be able to get Address Settings with a readMetadata request to the Metadata API endpoint (https://SF_INSTANCE.salesforce.com/services/Soap/m/33.0), but in my test ...
0
votes
1answer
16 views

Unable to cast type Metadata to type Layout

Does anybody have an idea why i get the mentioned exception on the following line of code: Layout layout = (Layout)service.readMetadata("Layout", new string[] {"Object__c-Object Layout"})[0]; ...
2
votes
1answer
28 views

Deploy Apex Trigger using Metadata API deploy() Method

I'm struggling to deploy Apex trigger using Metadata API from my connected app. I have created package.xml and the two trigger files - one with suffix .trigger and another - triggerName-meta.xml. I ...
1
vote
1answer
35 views

What is CustomDataType?

What is CustomDataType and how to use it? And how to create it directly in org? I can't find any description and don't see any mention about it in my organization. There is such type in Metadata ...
1
vote
1answer
33 views

Metadata API in Eclipse - File named in Package.xml but not in Zipped directory

I'm currently in a CI process. I refreshed my sandbox from production, setup my project in Eclipse, and committed all the metadata to GitHub. Now when I try to build I'm getting the following error : ...
1
vote
0answers
21 views

Error while parsing object Contract received through Metadata API caused by restrictedPicklist

I retrieve SObjects using retrieve() call from Metadata API and then I'm trying to parse them like described here in comment. The problem occurs while trying to parse standard object Contract. It ...
1
vote
1answer
19 views

No content in zip result when invoked metadata soap api in apex

I'm trying to get apex code body by invoking metadata soap api in apex code. I invoked retrieve method, got and resolved response. But in response, i found everything except apex code body, i couldn't ...
1
vote
0answers
34 views

Not able to create custom fields using deploy() call

Im trying to create a new custom field using metadata api, deploy() call. I'm using this code Also I have followed this question My directory structure is like this components.zip --package.xml ...
1
vote
1answer
37 views

Create a visible custom field through metadata api, for api 29.0 or greater

I have gone through almost all the previous questions on creating a visible custom field, but none of the posts were helpful to me. Some provide apex code, some ask to provide ...
0
votes
1answer
58 views

Creating static resource in salesforce through java code

I am trying to create static resource in salesforce through java code. I am fetching the content of a file which is stored in my system and encoding it into base64 format and putting that content into ...
1
vote
0answers
16 views

Cannot set Assigned Approver as ‘Queue:Queue_Name’ in Approval Steps of Approval Process using Metadata API

If the queue does not contains parent Object as supported Object but doesnot contains childObject as supported Object user can set Queue as approver for a approval process created on child Object. But ...
0
votes
0answers
60 views

Issue with creating Sharing rule using Spring'15 Metadata API version 33.0

Has anyone tried creating Sharing rule using Spring'15 Metadata API version 33.0? I want to create an owner based sharing rule using metadata and below is the code snippet method which is calling ...
6
votes
3answers
107 views

Metadata+ToolingAPI access on CS14 extremly slow & No Support?

We are working on CS14. Starting last Friday we are suffering form a extreme performance loss on CS14. Loading and Saving Metadata via Tooling/Metadata-API is very slow. Operations which usually ...
1
vote
1answer
53 views

Deleting custom object via destructiveChanges.xml and Metadata API deploy()

I've created a custom object in a developer edition org with the sole intention of deleting it via the Metadata API as per Deleting Components from an Organization. To do this I created the ...
1
vote
1answer
55 views

using metadata api to deploy destructive changes to delete custom fields

There is an issue that I would like to get some helps/advices. I'm creating a method in C# using Metadata API to deploy destructive changes to delete custom field as following: Create an empty ...
0
votes
1answer
23 views

How to read a ListView (restricted Visibility to me) with APEX MetadataService.cls?

During my work on this question, I'm trying to retrieve a ListView using this code: public class SFSEMetadataListView { public static void readListView() { MetadataService.MetadataPort ...
1
vote
1answer
52 views

Failing to get useful info out of metadata api about Lead Views

I am trying to use the apex metadata api I found here: https://github.com/financialforcedev/apex-mdapi I want to get all of the filters and other properties of Lead Views. I looked at the example ...
0
votes
1answer
31 views

How to retreive user information using api call and passing values in it

How to retrieve different users email , company name address using api call and passing firstname and lastname?
0
votes
0answers
9 views

how to retrieve user email address / organization using an API call ( By firstname , lastname )

Any way to retrieve user email address using api class or any automate method instead of searching single record one by one ?
2
votes
1answer
30 views

Running Metadata API in Apex as a specific user

Calling the metadata API in Apex requires admin permission (or at least the "Modify All Data" access). To run the code as a non-admin user I am thinking I need to first login as the sys admin, get a ...
4
votes
1answer
118 views

Lightning: is direct API access on the roadmap?

I'm programming developer tools and an IDE. Right now, my code is based on Visualforce and JavaScript. As described here, I would like to convert most of my API callouts form APEX to JavaScript. Also ...
2
votes
1answer
55 views

Is there a Javascript Wrapper Salesforce Metadata API?

I'm using Andrew Fawcett's legendary Apex Wrapper Salesforce Metadata API in several projects. It perfectly works and provides a new dimension of APEX programming. Now there are situations where it ...
2
votes
0answers
68 views

Force.com Migration Tool - Standard Quickactions not found during deployment

I am trying to deploy between sandboxes using the Force.com migration tool but keep getting build failures because the standard Case quickactions (Case.Email, Case.ChangeStatus, etc) used on certain ...
0
votes
2answers
28 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
1answer
40 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
40 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
24 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
41 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
13 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
127 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
49 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
56 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
59 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
0answers
44 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
53 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
35 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
36 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
61 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
40 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
44 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
49 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
20 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
21 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 ...
5
votes
2answers
103 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
51 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
31 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
27 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
30 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
1answer
41 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
20 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) ...