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
1answer
16 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
39 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
11 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
29 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 ...
3
votes
2answers
59 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
35 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
44 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
19 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
44 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
26 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
7 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
27 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
97 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
41 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 ...
1
vote
0answers
50 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
26 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
29 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
32 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
22 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
36 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
123 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
40 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
48 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
49 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
31 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
45 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
29 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
32 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
56 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
34 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
40 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
42 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
19 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
20 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
91 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
47 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
26 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
29 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
37 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) ...
0
votes
1answer
36 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
29 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
3answers
215 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
111 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
92 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
99 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
47 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
147 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 ...