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
21 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
12 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
9 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
25 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 ...
7
votes
0answers
41 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
29 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
37 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
30 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
119 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
26 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
59 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
30 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
votes
0answers
15 views

Query Profile using ReadMetaDat

I am trying to query profile using ReadMetaData method, by passing MetaData type and Full Name. MetaDataApi.Metadata[] __metaData = service.readMetadata("Profile", new String[] { "Admin" }); This ...
1
vote
0answers
11 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
50 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
25 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
12 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
21 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
21 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
votes
0answers
15 views

Update ProfileLoginIpRange via metadata API

How can i update ProfileLoginIpRange via metadata API with php or Apex?
1
vote
2answers
43 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
20 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
41 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
95 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
54 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
43 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
23 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
26 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
62 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
29 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
30 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
59 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
33 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
41 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
40 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
32 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
2answers
77 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
95 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
56 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
38 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
93 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
33 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
29 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
57 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
58 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
84 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
50 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
125 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 ...