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

Soap Envelop for creating Picklist using METADATA API

I am looking for SOAP ENVELOPE to create picklist on a custom object using a metadata api. Thanks
1
vote
0answers
15 views

Is it possible to access AnalyticSnapshots programmatically in order to discern AnalyticSnapshotMapping[] data?

Salesforce Metadata API lists AnalyticSnapshots as a metadata type here: https://www.salesforce.com/us/developer/docs/api_meta/Content/meta_analyticsnapshot.htm and mappings as a field here: ...
1
vote
3answers
47 views

Is it possible to retrieve picklist values from SalesForce using SOQL?

I am using a .NET library - SalesforceMagic - for communication with SalesForce. I use a SalesForce API user credentials and pass data to and from via a SOQL query. It all works fine. Now, there are ...
2
votes
1answer
21 views

“Error: Must specify the metadata file” reported with Force.com migration tool

I have brought down a copy of a Salesforce org from a Git repository. When attempting to deploy it to a sandbox I'm getting the following error (suitably anonymised): <sf:deploy ...
2
votes
2answers
31 views

Deploying an Apex class with a dependency on an older managed package version.

I'm working on automating the deployment from source control to a sandbox that will be used by a single developer. I want to be able to deploy to the sandbox so that it mirrors the chosen source ...
0
votes
0answers
16 views

Exception occurred while getting data from SF via SOAP API

This is the stack trace I had encountered sun.reflect.GeneratedConstructorAccessor60.newInstance(Unknown Source) ...
2
votes
1answer
22 views

How to check if a user is a Marketing User using APIs? (metadata/whatever)

My external service requires to write Campaign/Leads/Opportunities, so it requires the user to be a marketing user. Unfortunately, this can't be added to a permission set, so I need at least a way to ...
3
votes
2answers
45 views

Override View with URL

Is it possible, via the API or otherwise, to override the View button of an object with a URL (instead of a VF page)?
0
votes
1answer
23 views

Fetch Specific object permissions for a User

I have a Custom object with many RecordTypes. A profile give just give access to one of the RT. and few permission sets which give access to different RT. Now in my class I want to fetch the ...
0
votes
0answers
24 views

Updating Picklist Values Case-sensitively

I would love to be able to update picklist values through the Metadata API. However, some of my changes are nothing but case-correction (e.g., replacing, "Hi there" with "Hi There"). I understand ...
3
votes
0answers
35 views

Can you deploy “Tab Hidden” to a Custom Object on a Profile using metadata API? (tabVisibilities)

I have a custom object called MyCustomObject.object and a custom profile called MyCustomProfile.profile Currently the tab visibility of MyCustomObject is set to "Default On" for MyCustomProfile. ...
1
vote
0answers
25 views

Different metedata element order for same component

Is salesforce still prone to spitting out metedata for two identical components (different orgs) in a different order?
5
votes
0answers
26 views

How do I determine which sObject fields are valid to use with an Outbound Message?

We are creating OutboundMessages programmatically using the SOAP Metadata API. We've discovered that not all the fields returned from svc.describeSObject("ObjectName").fields are valid to use when ...
0
votes
1answer
37 views

Error on delete Metadata List View

I'm trying to delete List Views using the Apex Wrapper Salesforce Metadata API and I'm getting the following error. Error occured processing component CustomObject__c.MyListView. In field: members - ...
1
vote
1answer
33 views

Specify namespace when creating components via Metadata API

My managed package creates custom fields and generates VF pages via Metadata API. Is there a way to create them under my package's namespace? (except for packaging those pages and fields:) At the ...
0
votes
0answers
29 views

Metadata API Case-Sensitive?

is the Metadata API Case-Sensitive? Scenario: Take for instance the following scenario: a multi-org strategy where all development is being done on a Sandbox related to Org ABC. From that Sandbox ...
1
vote
1answer
43 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 ...
1
vote
2answers
87 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
41 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
36 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
55 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
27 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
23 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
42 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
45 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
69 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
36 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 ...
1
vote
1answer
100 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 ...
7
votes
3answers
123 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 ...
2
votes
1answer
108 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 ...
2
votes
1answer
129 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
34 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
55 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
33 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
11 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
38 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 ...
5
votes
1answer
149 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
93 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
101 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
32 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
56 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
53 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
27 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
48 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
145 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
85 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
77 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 , ...
1
vote
2answers
73 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
64 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 ...