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
1answer
9 views

Updating Triggers via the SOAP Metadata API

I'm working in Python and trying to use the SOAP/Metadata Api to update ApexTrigger statuses. I keep getting the following error: [{'errors': [{'fields': [], 'message': 'insufficient access rights on ...
0
votes
0answers
12 views

Metadata API Retrieve all objects - Can't retrieve non-customizable CustomObject error

I am trying to retrieve all the objects using Metadata API. I am not using package.xml file but hardcoding it as: private void setPackage(RetrieveRequest request, List<Table> tables) { ...
4
votes
2answers
77 views

Metadata Deploy - test code coverage report is broken in Metadata API v34.0 (Summer 15)

Let's say I have two classes - AccountController - contains logic - TestCoverage - contains tests for AccountController With API v32.0 it was (and still is) possible to deploy .zip which contains ...
2
votes
0answers
25 views

Create folder in salesforce using Metadata

How to create folder using Matadata in documents in Salesforce. public static MetadataService.MetadataPort createService(String session, String instance) { MetadataService.MetadataPort ...
0
votes
0answers
10 views

How do I find when a Custom Label was created or modified from API

How do I find when a Custom Label was created, modified, or who Created or Modified it from an API ? I have checked Partner WSDL, Metadata API and Tooling API but none of them give out this ...
-2
votes
0answers
28 views

Exporting data from SalesForce as a JSON file [closed]

I'm trying to build an app for one of my clients which shows A rated leads on a google map as an annotations depend on leads addresses. I'm not familiar with SalesForce itself, for that reason I'm ...
2
votes
1answer
27 views

How to get formula field compile size from api

Is there a way to get the compile size of a formula field through the metadata api or the tooling api? I have found "calculatedFormula" on the metadata api and "formula" on the tooling api but ...
2
votes
1answer
130 views

How to get data type of any object's field in SOQL

how to i get datatype of any filed in SOQL?
-1
votes
1answer
34 views

Continuous Integration with Metadata API and flow/processes deployment

Using CI for deploying flows/processes to the same environment results in error if existing version has been already activated: flows/YYYY-1.flow -- Error: The version of the flow you're updating is ...
2
votes
2answers
41 views

Retrieving permission sets

Does the metadata api returns the object permissions in the permissions sets? I want to retrieve the object permissions for standard as well as custom objects.
1
vote
1answer
17 views

Creating MasterDetail field through Apex MetaData Api does not appears in Parent Related List

Gurus, I'm creating a MasterDetail field in the child object with the following code: Schema.DescribeSObjectResult parentObj = Schema.getGlobalDescribe().get('account').getDescribe(); ...
3
votes
1answer
41 views

How to verify whether a particular API has been enabled for an user/org?

We have an app which will use Salesforce API call's to do some functions using salesforce data. User will login into salesforce using OAuth and we have corresponding connected apps created in ...
2
votes
1answer
30 views

Mapping in Data Loader seems is case-sensitive

I noticed that in the Data Loader mapping file (.sdl) names of fields of target objects must have exact the same spelling as on target Org (mean case-sensitive). Data loader does not show any error or ...
0
votes
1answer
20 views

Delete fieldset using Tooling/Metadata API (JSforce)

Tried this using the following 2 snippets; both failed. Snippet 1 conn.tooling.sobject('FieldSet') .delete({ DeveloperName: fieldsetName }, function(err, meta) { if (err) ...
1
vote
1answer
21 views

Analytics API .. how do I get list of all reports metadata?

I am trying to access Reports metadata from Metadata API . Following is the documentation I am using Analytics API If I have list of report ids , can I extract the metadata of all reports in a ...
1
vote
1answer
35 views

Can not create Foce.com site via ant tool

Just tried to deploy new salesforce custom site via Metadata API (ant tool) and also tried Eclipse but target org returns the following message: The Force.com Site subdomain has not been set in the ...
0
votes
0answers
17 views

Metadata API, package.xml, ApexClass - manual says Allows Wildcard, results say otherwise

I am attempting to snapshot a complete deployed production configuration for change control purposes. The Metadata API Developer's Guide states that ApexClass allows the wildcard to be used (pg 101). ...
6
votes
2answers
60 views

How to get the DE-Orgs Namespaceprefix? (NOT the Namespaceprefix from the scope of an object or class)

The are a lot of solutions to get the namespace of an specific object or class, e.g. ApexClass myClass = [ select NamespacePrefix from ApexClass where Name = 'SomeClassNameHere' ]; But ...
0
votes
1answer
19 views

Creating metadata in client org

I have some packaged code that utilizes the SF Metadata API to create VF pages, as well as modify some object metadata. The code currently is not executing on the client side (but it's working fine in ...
2
votes
1answer
32 views

Is it possible to determine the visibleLines() value of a multipicklist programmatically?

For a multipicklist, the visibleLines attribute value is not available from internal Schema.DescribeFieldResult.class. Is there any other way to determine what this value is for a field ...
1
vote
1answer
26 views

Create custom 'Tab Style Selector' using api

I have two questions relating to 'Tab style selector' or <motif>. I am trying to create a customTab using api and in doing so I need to put in what motif I want to use. For example, it could ...
0
votes
0answers
14 views

CustomTab creation with permission as 'Default on' using api

I created a customTab using the salesforce metadata api. However, it got created with visibility as 'hidden'. As far as I could figure out, the api does provide the functionality to change the ...
0
votes
0answers
11 views

To send all sales force instance data Using Meta data api in apex

I am using Meta data api in apex to send its data. The problem here is that i have to give name of each component individually is there any way to send all data present in that instance by fetching it ...
3
votes
1answer
44 views

Adding custom fields to standard Lead object via API

I'm currently using the Salesforce REST API to send data from our client app to our users' Salesforce accounts. While some of our data fits into the stock fields of a Lead object, we will also ...
9
votes
0answers
52 views

Which kind of issues will be shown at trust.salesforce.com and which issues will be omited?

In the context of a different question, we encountered a deployment performance degradation on EU5 of between 6000% to 10000% using Metadata-API. This means that work (saving a single APEX file to the ...
2
votes
1answer
34 views

Why does readMetadata() give me incorrect data?

I have a script that uses the metadata API to update the 'New' and 'Edit' action overrides for Account so those actions navigate to a couple of custom VisualForce pages. The script works. I can use ...
0
votes
0answers
45 views

Retrieve pick list values

Does the metadata api retrieve pick list values for standard fields? We are having a tough time in getting it done.
0
votes
1answer
35 views

Why does it say my VisualForce page 'does not exist or is not a valid override for action Edit?' It exists and is valid!

I am developing a managed package that has a VisualForce page for configuration. Before I packaged everything up, I made some buttons on the page that the user can click to automatically set their ...
4
votes
2answers
130 views

EU5 not usable for development: Metadata-API deployment on EU5 unresponsive

Today I encounter a severe performance degradation on Metadata-API deployment speed on EU5. I'm waiting > 950 seconds (sometimes > 1500 seconds), when it usually deploys in < 25 seconds... This is ...
1
vote
2answers
38 views

.NET, CustomObject named in package.xml but was not found in zipped directory

I have successfully retrieved my package with the metadata api. If I deploy said package with deployOptions.singlePackage=false, I get a successful deployment, with 0 components deployed. I've also ...
3
votes
1answer
91 views

How to debug the mysterious “duplicate value found: <unknown> duplicates value on record with id: <unknown>” error

I've just spent several hours trying to fix a deployment that was failing with the following extremely helpful error message: Error: objects/Opportunity.object(2098,13):duplicate value found: ...
0
votes
1answer
41 views

How to get reportType for many reports

I'm currently getting some basic information regarding all of my reports like so: SELECT Id, Name FROM Report I have around 5000 reports. I'd like to be able to get the type of report as well ...
1
vote
1answer
24 views

How can I set an ActionOverride with metadata API? (Using JSforce)

I am trying to use JSforce to set (update) the type, content, and comment fields on Account's New and Edit actionOverrides. I've been reading the documentation for the SalesForce Metadata API as well ...
1
vote
3answers
77 views

What is the best tool for using metadata API in python?

We use Salesforce REST and Bulk APIs extensively and now we have reached a point where we have to use the metadata API. Our use case is pretty trivial. We only have to create a custom object using ...
0
votes
0answers
26 views

IP's not showing in Salesforce

I am setting the Login IP Range on a Profile from PHP. I am getting Success Message but i am unable to check in which profile ip inserted. Here I posted both Code and Success Message. ...
2
votes
0answers
15 views

Assigning User to a Profile through MetaData Api

I am .net Developer, creating some POC on SFDC Metadata Api, so please bear with me if i ask silly question. I am able to create a Profile and permission set in SFDC org, through metadata api. But am ...
-1
votes
1answer
22 views

Insert ProfileLoginIpRange field's data in salesforce using PHP

I want to insert ProfileLoginIpRange field's data in salesforce using PHP. So How can i do through PHP. So that whenever insert ip's from php, it should get updated in salesforce. Please Help me out.
1
vote
0answers
26 views

Invalid field name: Contact.Activities$What

I am using force.com IDE to migrate reports. For a report of custom type Contacts with Activities, I get error: "Invalid field name: Contact.Activities$What" The report type is already deployed ...
1
vote
2answers
44 views

Metadata API without SOAP

I am new in the Metadata APIs of Salesforce world, but they look interesting. I want to know if I can use Metadata APIs or basically create custom objects / fields etc. on any org without using SOAP ...
3
votes
0answers
22 views

Data Loading Sequence for Account ParentId

I would like to know the proper data loading sequence. I know to start with Accounts then Contacts and so forth. I used an External_Id__c field for the id pulled from prod. So how do I map the ...
2
votes
1answer
55 views

How to write Address.settings in order to implement Country Picklists via Metadata API (eclipse)?

In order to implement Country Picklists on standard address fields I'm following the documentation here: ...
1
vote
0answers
23 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
134 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
78 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
58 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
28 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) ...
3
votes
1answer
29 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
76 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
30 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
31 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 ...