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
2answers
21 views

Can we replace existing picklist values using meta data API

Suppose there are three picklist values "a","b","c".With the mentioned values there are records in that object. I want to replace "a" with "x" , "b" with "y" and "c" with "z". Can we do this using ...
1
vote
1answer
22 views

Deployment In Chunks Using Metadata API Deploy Method

We have a big project depending on Metadata API and we are using deploying of all components at once. But now size of components have become too large (80MB) and our server can't send files with this ...
0
votes
1answer
24 views

Can approval process is add in package or not?

We don't add package in approval process, for that we create a custom object and fields also we will write apex classes. Can any body explains how to achieve this with suitable example?
1
vote
1answer
31 views

Permanent delete Custom Objects and Custom Fields

When I'm trying to delete Custom Objects and Custom Fields via metadata Api with deleteMetadata(), they not fully deleting, but moving to Deleted Objects or Deleted Fields. Is there any way to mass ...
2
votes
1answer
32 views

Use List Metadata With Standard Fields?

Question Is there any way to retrieve the "list" details, which include the field id for standard fields? Background I'm building a report on picklist values by record type and am including links ...
3
votes
1answer
52 views

Is it possible to delete a record type through Metadata API?

I'm deploying a destructiveChanges.xml file via Force.com Migration Tool to delete some listViews, Custom Fields, and Groups. I determined we also can remove some record types from Cases. I received ...
3
votes
1answer
24 views

CustomMetadata and CustomMetadataValue in Summer 14 Metadata API

In the Summer 14 (v31.0) of the Metadata API complex types are added for CustomMetadata and CustomMetadataValue. The latter appears in the values element of the former. CustomMetadata extends ...
0
votes
0answers
24 views

Metadata API and Updating PageLayout

I am following the post "Change Page Layout of objects using Meta data API in apex" and trying to update the existing pagelayout with multiple custom fields. I am able to create a new section and ...
2
votes
1answer
21 views

Layout must contain an item for required layout field: Name

I am trying to add a custom field to layout. but it is giving me an error like "Layout must contain an item for required layout field: Name". I have already created the field ...
7
votes
1answer
131 views

Access MetadataAPI via JavaScript

We created an 100% native Salesforce IDE as a Managed Package which is using ToolingAPI and MetadataAPI via APEX. This works fine. But there is one thing which really bothers people after the ...
5
votes
1answer
37 views

How does one get a list of Documents via the Metadata API?

I need to be able to retrieve a list of Documents using the Metadata API. According to the documentation, "To retrieve the list of documents for populating package.xml with explicit names, call ...
1
vote
1answer
41 views

Version 31.0 metadata is breaking my app

I decided to switch to v31.0 metadata, needed to update some code to make it compile, but that's fine. However, now it's not working the way it used to. My code is in C#, it was used to retrieve page ...
1
vote
1answer
29 views

Metadata API error loading zip

I did an export of metadata my Account object. I uploaded the same zip to be deployed using the Metadata API. Got the following error: Parser was expecting element ...
1
vote
1answer
26 views

Can a “reference” type field reference more than one table?

Using v31.0 of the Salesforce REST API, when querying metadata for an object, if the object is of the type reference, it will have it's referenceTo field populated with the referenced table. { ...
2
votes
1answer
47 views

List of workflow rules using metadata api

I read one response from you is export all data to eclipse and then use metadata api to get list of all workflow rules. I have similar requirement where i need to pull List of workflow rules using ...
3
votes
1answer
77 views

Creating contract status picklist values with the meta data api

I'm working on a small application that uses the metadata api to make some structural changes on some default objects. One of the changes is adding some picklist values to the Contract's status field. ...
3
votes
1answer
39 views

Edit existing Visualforce Page (ApexPage) using AndrewFawcett ToolingAPI package

In APEX there is great wrapper class to access the ToolingAPI written by Andrew Fawcett https://github.com/afawcett/apex-toolingapi There are a lot of examples including one which shows how to edit ...
1
vote
1answer
34 views

Populating a Datagrid with information retrieved from a Data Extension

I used the base app generator to create an app within which I have a Fuelux Datagrid that I would like to populate with information from a data extension. I followed the sample ...
0
votes
1answer
102 views

How to use 31.0 Api Version

i have a developer org in which i can set highest version upto 30.0 .but there is a lot of upgrades in 31.0 metadata api.How can i use 31.0 api version in my apex class and pages.
0
votes
0answers
33 views

How to create Apex Class Object Of Flow Type generated From Metadata WSDL

i am using library https://github.com/financialforcedev/apex-mdapi .i used readMetadata function for getting flow objects.but this function doesn't support flow.so only option that i am left with is ...
1
vote
1answer
22 views

Detect changes in picklist values

I have an external system which keeps synchronized with Salesforce. I have triggers in every object that send the inserted/updated/deleted records to my webservice, and every minute I send the ...
0
votes
0answers
18 views

How to get Flow Object in metadata api

i am new to soap api.i know how to get file content related to an apex class MetadataService.MetadataPort service = createService(); List<String > yy = new List<String>(); ...
3
votes
2answers
57 views

Call ToolingAPI or Metadata API in APEX without adding instance url into remote site settings

I need to upgrade the metadata in post install script, for instance, upgrade the picklist values for some fields, as those values are not updatable for the existing orgs. Not matter I tried to use ...
2
votes
1answer
81 views

Update StaticResource via APEX ToolingAPI

I'm trying to update StaticResources from APEX. Currently I'm using async methods of apex-mdapi and it works good. On the other side I'm using apex-toolingapi to update ApexClasses which works even ...
0
votes
1answer
54 views

Synchronizing (Add/Remove Items) Pick list with some External source by using Metadata API

By using Salesforce Metadata API, we can retrieve/read the pick list value. We have a pick list, which contains few values which needs to be synchronized with some external items. One solution is ...
1
vote
1answer
22 views

Retrieving Local Translations from Metadata API call

I can successfully retrieve custom labels from my SOAP call to Salesforce Metadata API. But what I need is the local translations which overrides my labels. Are these translations are packaged or ...
1
vote
3answers
45 views

Is there is a way to search metadata within Salesforce for some specifc keyword

we have a requirement where we need to search metadata within Salesforce for some specifc keywords? and also replace them. As an outside tool we can use Eclipse, but how it can be done within ...
1
vote
1answer
90 views

Metadata API exception: IO Exception: Exceeded max size limit of 3000000

I am using Metadata API to get information about org. I want to retrieve all custom fields present in my org. I am using listMetadata() method which returns list of components. Below is my code: ...
0
votes
1answer
23 views

Tidy up metadata

Are there any apps that can used to analyze the metadata for redundant fields like custom fields which are not used on any layout or VF page which is not referenced anywhere. Maybe there is some ...
0
votes
0answers
56 views

how to create validation rule through metadata api

validation rule is not creating plz help..... code i m using public PageReference Insert_Validation() { XmlDom dom2 = new XmlDom(FinalObjectXML); for(xmldom.element e1: ...
3
votes
1answer
47 views

Parsing ListViews columns from the Metadata API

I am trying to parse ListViews from the Metadata API to try to show the content I have locally. The documentation I found explains some of the fields, but not in details. For example take a simple ...
2
votes
1answer
56 views

Metadata Apex Class deploy Java example doesn't work

I am trying to make this sample code work, http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_deploy.htm. It is just a one class java project. When I run it I have deploy.zip, which ...
1
vote
1answer
141 views

How to get List View for objects in apex?

The requirements are: get all of listviews for objects. can filter each objects. For example, I want to get a map<String objectName, MetadataObject[]> map.put('permit2__c', ...
0
votes
0answers
45 views

How to create outbound messages programmatically in Salesforce? (Using Metadata API)

Is there a way to create outbound messages programmatically in Salesforce? for example a class in which make Metadata API call to create an outbound message? Any code sample?
2
votes
1answer
52 views

Custom field definition with canvas app?

I have a canvas app which uses the REST API to access salesforce data and I want to define/use a custom field on the Lead object. I found out how to add custom fields via the web interface via ...
4
votes
3answers
261 views

Metadata API Custom Field Permissions

We are using the Metadata API to add Custom Fields to the Account object in Salesforce. We are able to create the custom fields, but then the Salesforce user has to manually login to their account ...
1
vote
1answer
44 views

Is there a way to enable the metadata API for trial accounts?

According documentation , trial accounts have API access, but I'm getting this error: "API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner" When trying to use the metadata API ...
0
votes
0answers
26 views

Get translated values from Metadata API

I've just managed to access my CustomLabels through the SOAP Metadata API uing Andrew Fawcett's wrapper classes , but they are returned in the default org language, rather than using the user's ...
2
votes
1answer
116 views

Metadata SOAP API can't parse response, Apex type not found for element

I've generated an Apex class based on the Metadata WSDL file I got from my org. I call the readMetadata function and while the response received contains all the data I want, the callout fails because ...
3
votes
1answer
253 views

Set Field Level security for profile using meta-data api

I am using meta-data api to create custom fields in java class. Now I want to set field level security for different profiles. First is it possible to set this with meta-dat api, If yes than how can I ...
1
vote
0answers
37 views

Salesforce : INVALID_TYPE: This type of object is not available for this organization faultcode=sf

I am trying to update a apex class in salesforce by using metadata api but recieving this error when I call the update_x method. I have achieved to get the zip file package of the desired class and ...
3
votes
2answers
50 views

How to get a list of sidebar fields programmatically?

Is there a way to programmatically determine which fields of an object are searched during sidebar search? Also, for custom objects, how does Salesforce decide which fields should be searched?
10
votes
0answers
149 views

Did something change with deploy run test behavior with sandboxes in Spring '14?

Starting a few days ago my apex class compilation time suddenly ground to a halt. After going into the setup deployment monitoring I was at first delighted with the new deployment monitoring UI, then ...
6
votes
3answers
581 views

How do I get the length of a string field?

For a string field, is there a way to get the defined length of the field? For example say I allow a maximum of 10 chars, can I get that in apex? I am not asking how to get the length of a string ...
3
votes
1answer
65 views

How to get namespace of all packages installed in a salesforce organization?

I want to fetch the namespace prefix of all packages installed in a salesforce organization.How can I do that?
2
votes
1answer
97 views

Custom Field Creation Using Apex SOAP Call Without Configuring Remote Site Settings

If we Configure Remote site settings the below code adds custom fields perfectly. When we remove Remote site settings it throws an exception "EXCEPTION: System.CalloutException: Unauthorized endpoint, ...
1
vote
2answers
73 views

How to use metadata API

How to use metadata API. I have generated Metadata WSDL through Develop >> Api, and created an apex class through it. The generated apex class contains lot of wrapper classes. Actually I am confused ...
1
vote
0answers
18 views

Dissecting Report Metadata

What I want to do is pretty simple, but I can't seem to find a way to do it. I need to take report metadata and extract from it: API names of objects from which the report extracts data API names of ...
2
votes
0answers
104 views

Create Geolocation field type using java code

I am using com.sforce.soap.metadata.FieldType and com.sforce.soap.metadata.CustomField classes to create custom fields using java code. Now I want to create a field which is type of geolocation in ...
0
votes
1answer
37 views

Finding & Evaluating Salesforce Backup & Recovery Service Providers

Realize that anything a third-party Salesforce backup & recovery service is able to do in theory I am able to do, but short-term, I am more focused on deploying Salesforce, than recovering it. ...