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

Creating a Workflow Rule using the Metadata API and MetadataService class

Without using the Migration Tool, I need to create a workflow rule using apex and this MetadataService class. I have the following code, and it does run, however I get a exception in my custom class ...
1
vote
1answer
12 views

Salesforce metadataApi to insert Network access Ip ranges

I am using salesforce Metadata Api to insert network access Ip ranges using apex. I have deployed classes given in github. For inserting List of Ip ranges I have added two methods in ...
1
vote
0answers
26 views

Retrieving Standard Report Folder using Metadata api

I am trying to retrieve Standard report folder names using metadata api. MetadataService.MetadataPort service = new MetadataService.MetadataPort(); List < MetadataService.ListMetadataQuery > ...
0
votes
1answer
22 views

Update a record to its default values[MetaData]

I want to refresh a record to the default values that we used while creating those fields ie in metadata. My object has around 100 fields, so manually searching and doing it is troublesome. I can use ...
0
votes
2answers
36 views

Help needed on Metadata API or Tooling API

Has anyone used Metadata API or Tooling API to bulk update Workflow, Validation Rule etc? I am trying to play with these 2 API using SOAP UI but not sure if that's feasible. Any guidance will be ...
0
votes
1answer
11 views

cannot set custom fields field level security with metadata api

I am creating a hundred or more fields on the account object. I was doing this to load test the account. Problem is none of those fields have their field level security set and I can't find a way to ...
0
votes
0answers
21 views

Programmatically get login URL of a connected app

I am reluctant to hard code or use custom setting (it's too long) for a login URL of a community. I see there are ways to access metadata API to get certain details, but was wondering is there a ...
1
vote
1answer
28 views

implication of metadata being in XML? [closed]

what is the implication of metadata being represented in XML? how is this useful to me as a developer?
1
vote
1answer
64 views

Why Force IDE is not downloading System Administrator Profile?

In my Package.xml file, I have included all the profiles as shown below: <types> <members>*</members> <name>Profile</name> </types> And when I right ...
5
votes
1answer
78 views

Updating profile via Metadata API from Apex gives weird error

I am trying to automatically enable pages for profiles (profileApexPageAccess doc) via Metadata API. Here is my method: public static void updateProfileAccesses(String profileName, List<String> ...
1
vote
2answers
136 views

Deploy in production without running tests

Salesforce has new parameters for the deploy option. http://releasenotes.docs.salesforce.com/en-us/summer15/release-notes/rn_api_meta_new_calls.htm Can we deploy to production with no run test ...
0
votes
1answer
15 views

Metadata API not working on sandboxs

I am trying to connect to the metadata Api via a python script. Essentially, I am authenticating into the SOAP Api, getting a session Id, then setting the session if in my Metadata client class. This ...
0
votes
2answers
32 views

How to execute the standard Onclick Javascript code from Detail Page Button in a Visualforce Page?

I've a custom button in the detail view of the object (type is onClick Javascript). I have a visualforce Page where I'm trying to replicate the same functionality done through the Onclick JS button in ...
1
vote
2answers
37 views

Running test via Ant does not seem to store coverage

I've been banging my head on this issue for a while now and I'm throwing my hands up and asking for help. When I run all tests in my org (either via the Run All Tests button or running them all in ...
1
vote
1answer
82 views

Metadata API - Entity of type 'CustomObject' named 'xxx' not found

I'm trying to retrieve the metadata of all the objects. I retrieve all the objects using soapConnection.describeGlobal().getSobjects() and then insert them in my custom class Tables. This is then ...
1
vote
1answer
35 views

Metadata API - deploy custom field created in a managed package object

I have created a custom field on a managed package object. I know I can retrieve the field or the object using the metadata API <types> ...
1
vote
1answer
19 views

Deploy() not updating Apex Trigger

I am testing out updating a trigger status [from active to inactive] via the Metadata Api. I have manually set up the new zip file to so that I can update this data. When I use ...
1
vote
2answers
25 views

Updating Triggers via the SOAP API

I'm working in Python and trying to use the SOAP Api to update ApexTrigger statuses. I keep getting the following error: [{'errors': [{'fields': [], 'message': 'insufficient access rights on ...
0
votes
0answers
22 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
107 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
32 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
19 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
1answer
34 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
175 views

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

how to i get datatype of any filed in SOQL?
0
votes
1answer
79 views

Continuous Integration with Metadata API and flow/processes deployment

Duplicated: Please see Flows/Processes, Version Control and CI Using CI for deploying flows/processes to the same environment results in error if existing version has been already activated: ...
2
votes
2answers
47 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
21 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
56 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
46 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
39 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
31 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
39 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
27 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
66 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
20 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
34 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
36 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
15 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
13 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
65 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 ...
11
votes
0answers
69 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
50 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
55 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
140 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
56 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
148 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
50 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
35 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
116 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 ...