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

What will updating a production server to Summer '14 do?

I'm trying to delete a trigger off production, but all my efforts to do so have been met with failure. My most recent attempt should work, but the IDE is first asking me to upgrade my version of the ...
2
votes
0answers
16 views

Metadata API: readMetadata

I read metadata from use readMetadata via SOAP API <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" ...
1
vote
0answers
7 views

Profile Login IP Range Description Missing

I am missing the description field from the loginIpRanges for profiles. According to this doc (http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_profile.htm#ProfileLoginIpRange_title) ...
0
votes
1answer
21 views

Size of an attachment?

Is there any api in salesforce to find out the size of an attachment? I am creating package.XML in Salesforce and I would like to make sure that the size is less than 3 MB.
1
vote
0answers
11 views

Home Page Component added to Home Page Layout with Metadata API

We've added a link that uses the Metadata API to add a managed home page component to all of the home page layouts. The code seems to work and when I open up the home page layouts the component is ...
0
votes
1answer
34 views

UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1417884933-3641 (-2142224028)

I get this error id (1417884933-3641 (-2142224028)) when i try to use the Metadata API(.Net) to create a custom object with fields This is my sample code CustomObject co = new ...
2
votes
2answers
81 views

Login IP ranges list

How do I get a list of the Login IP ranges specified in each profile of my org. The list that is obtained from the data loader from LoginIP obkect doesn't seem to give results for each profile.
3
votes
1answer
43 views

How can we access Lightning Components via MetadataSevice.cls from within APEX and Visualforce

This is a spinoff form a question of: Are there any plans to update ToolingAPI.cls for APEX to v32 in order to support Lightning Components? Here we focus on MetadataAPI (in contrary to the OP which ...
3
votes
1answer
33 views

difference between metadata and tooling API

What is the difference between metadata API and tooling API? When I read the documentation, they both appear the same to me from the metadata perspective. I would like to know how I can use it for ...
1
vote
1answer
17 views

MetadataAPI: Missing MetadataPort.checkStatus(String[] asyncProcessId) in MetadataService.cls v32.0

I'm updating MetadataService.cls form a older version for v29 to the current version v32 and found some members maybe missing: MetadataPort.checkStatus(String[] asyncProcessId) ...
4
votes
2answers
77 views

Lightning access via ToolingAPI or MetadataAPI

I assume there is no official support in the APIs right now since Aura Components are in BETA. The choice of developer tools is a bit narrow (Developer Console and Sublime Lightning) and I want to add ...
2
votes
1answer
29 views

Using Wildcard in Metadata API

We have more than 300 custom fields in several objects. When we retrieve them using Metadata API it throws exception of "Wenservice callout failed: String limit exceeded 100000" so we are thinking of ...
0
votes
1answer
30 views

Retrieving Profile with all Components Permissions using Metadata API

We have an application which retrieve Profiles from an Organisation but if we retrieve profile without specifying custom object or other component in package.xml file then it doesn't retrieve ...
1
vote
0answers
47 views

How can I retrieve Field-Level Security Settings for Task object fields using MetaData API

I'm trying to retrieve Field-Level Security Settings for Task object standard fields like Comments or Name using MetaData API. I was trying a 'retrieve' request like this: <retrieve> ...
0
votes
0answers
10 views

How to upload content (PDF/WORD ) to Salesforce CRM Content using Metadata API?

I am having requirement to upload reports in pdf/word format to Saleforce CRM Content object. I am trying to achieve it using Data Loader in command line mode but want to explore other options as ...
0
votes
0answers
8 views

Metadata API does not recognize customobjectOwnerSharingrule based on groups

I am using Salesforce Migration Tool to retrieve metadata including customobject sharing rules. For a specific custom object I have two sharing rules. One based on the users' role and the other based ...
0
votes
1answer
9 views

CustomConsoleComponents metadata not including lookup component

<customConsoleComponents> <primaryTabComponents> <containers> <region>Right</region> <sidebarComponents> ...
2
votes
1answer
26 views

Unable to update metadata (picklist values etc) after post install script is executed

Once a managed package is released, we have to perform several manual steps such as update picklist values, add field to layout, update field level security etc. And there are around 100's of ...
1
vote
1answer
21 views

Intermittent error when calling checkRetrieveStatus in metadata service, version 32.0

I recently upgraded my metadata service from version 29.0 to 32.0 and I'm having some difficulties with the checkRetrieveStatus method (new method as of version 31.0 - see quote). The code included ...
3
votes
2answers
85 views

Unit tests executed via metadata API failing on call to system.test.startTest

I have an CI system using Jenkins and the metadata API to automatically execute all unit tests in our packaging org. Some, but not all, of the unit tests have started failing at the point where the ...
3
votes
1answer
40 views

How do I distribute Record Type Assignments when packaging Permission Sets?

I'm trying to create a Managed Package that relies entirely on Permission Sets. No profiles! In my head, Profiles are really "owned" by each org administrator. One needs serious justification to ...
0
votes
0answers
33 views

Get list of all report names

I would like to obtain a list of all SalesForce reports under all folders - the ones available by default (ex - All reports under Accounts and Contact Reports folder) and also the custom reports. At ...
0
votes
1answer
59 views

FIELD_INTEGRITY_EXCEPTION Must specify a nameField of type Text or AutoNumber

when i am creating salesforce custom object in C# using salesforce metadata api i am getting following error: FIELD_INTEGRITY_EXCEPTION Must specify a nameField of type Text or AutoNumber CODE: ...
2
votes
1answer
38 views

Is it possible to create a new WorkflowRule using Metadata API?

The question is basically as in the title: Is it possible to create a new WorkflowRule using Metadata API? I'm using Java, and I want to create a workflow rule for a custom object. I've tried: * ...
0
votes
1answer
60 views

Displaying custom field description on VF page

I have a requirement where the names of the custom fields far exceed the 40 characters limit. So instead I thought I would put a keyword in the field name and the whole name in the description of the ...
1
vote
0answers
24 views

Metadata weird changed on sandbox

I am currently using mavensmate and sourcetree. For some weird reason all the files for the objects in my repository had changed, most of them are displaying the following change: and some of them ...
1
vote
1answer
45 views

Fectching validation rule for specific object

So i am trying to fetch validation rule for a specific object, is there any API call via which i can achieve the same ? Already done with fetching validation rule for all objects via ...
0
votes
0answers
43 views

Error when reading metadata: INVALID_TYPE: This type of metadata is not available for this organization

I am trying to get a list of all metadata objects with the given name. However, the code below fails: connection.readMetadata("ApexClass", new String[] {"SampleDeployClass"}); with this error: ...
1
vote
0answers
58 views

Can I get a Lead View to show converted Leads?

I am using apex code to give me all of the leads in a lead view like this: Database.QueryLocator ql = Database.getQueryLocator('select Id from Lead limit 1'); ApexPages.StandardSetController ...
2
votes
0answers
85 views

Accessing Custom Labels through Batch Apex

We have a mobile application which needs custom labels for different languages through Salesforce custom labels. Because of API limit on metadata api, we are planning to store all the required custom ...
1
vote
0answers
11 views

How to remove currency metadata from salesforce reports

Im trying to remove currency metadata from reports permanently . The intention of removing the metadata was to default display the currency in reports and dashboard according to User Currency ...
4
votes
0answers
62 views

How to tell if a field is not supported in metadata api?

I have the Order Status field in the Order.object file defined simply as follows: <fields> <fullName>Status</fullName> <picklist> <picklistValues> ...
1
vote
2answers
81 views

Can I create/update/delete metadata using APEX?

In particular, I want to create a custom field for Task for a specific unit test, then delete that field when the test is finished. I know Salesforce uses the Metadata API, but this seems designed to ...
0
votes
0answers
25 views

Salesforce Flow Metadata list / retrieve

Strange Behaviour. 1. When i perform a list operation on Flow, I get the following response. [ { "createdById": "00520000003eLmNAAU", "createdByName": "Gunish Rai Chawla", ...
0
votes
1answer
19 views

How to get a list of updated metadata objects using Metadata API?

i.e. I want to get a list of all CustomObjects, ApexClasses etc. which were updated since a given point in time. The only thing I have so far is: for (String type : types) { ListMetadataQuery q1 ...
2
votes
2answers
61 views

Metadata API, describeMetadata result and PageLayouts

I am trying my hand at building a package.xml dynamically to download everything from an salesforce org, so I started the Novel approach of getting the describeMetadata and iterating through it to ...
2
votes
1answer
46 views

Is “All Related Objects” field of an object's Feed Tracking options available in metadata?

After enabling "Publisher Actions" for Chatter, you can tick a checkbox called "All Related Objects" for a specific object in Setup > Customize > Chatter > Feed Tracking. This will turn on the ...
1
vote
1answer
232 views

Retrieve Folder Metadata using Metadata API (File based)

We are trying to retrieve zip file of metadata in Salesforce. After trying in several ways we are able to get the metadata in a zip file but, it only has "package.xml" not the folder detail file as ...
2
votes
0answers
35 views

Writing JUnit test cases for Salesforce APIs

I want to write JUnit test classes for a project involving login, creation, updation & deletion of various custom objects, fields, tabs, custom settings, etc. most of them utilizing metadata API ...
3
votes
0answers
71 views

Unable to Override Add Products on Order - Deployment Error

My co-worker overrode the Order Product's (OrderItem) Add Products related list button on the Order with a Visualforce page. He did this in the web UI without any issue. The Visualforce page is an ...
1
vote
1answer
13 views

Retrieve CustomObject Definition without its Declarative information

With the help of Metadata API we can fetch CustomObject definition easily. But somehow we need only CustomObject details not its custom fields, ListView etc. I looked in available metadata type but ...
4
votes
2answers
73 views

How does Eclipse pull metadata from Standard Objects

I want to do what Eclipse is doing: pull metadata for Standard objects. I basically need to inspect what Views, WebLinks, and Validation Rules Opportunity has in my org. For Custom objects I do the ...
1
vote
3answers
90 views

Can we replace existing picklist values using meta data API

Suppose there are three picklist values "a", "b", and "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 ...
1
vote
2answers
67 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 ...
1
vote
1answer
163 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
68 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
82 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
48 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
46 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
60 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 ...