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

Error while deploying objects

I just tried deploying an object that doesn't exist in my sandbox and the deployment failed with the following error: File name: objects/CM123__c.object, Component name: CM123__c Message: ...
5
votes
1answer
53 views

Deploying >10k Records within Custom Metadata Type Object

I have created a Custom Metadata Type object (lets say I have called it CMDObject__mdt). I have uploaded all of my configuration records into there but there are 12k records and so I cannot deploy ...
1
vote
1answer
48 views

How to retrieve translations using Metadata API?

I'm trying to deploy the work that was done via Rename Tabs and Labels and Translation Workbench using Workbench and the Metadata API. According to this answer, my package.xml should look like ...
0
votes
0answers
19 views

Can we enable orderSetting using apex code?

If yes please guide me how to enable Order Setting using apex code. HttpRequest request = new HttpRequest(); request = new HttpRequest(); ...
0
votes
1answer
22 views

Get profile/permission set complete metadata independent of package.xml

How do I get the complete metadata of a profile or a permission set, independent of the package.xml specified in the retrieve call?
0
votes
1answer
31 views

Force.com Migration Tool & Ant

The context is simple : I need to copy metadata (spec. the Visualforce Page Access from a certain profile)from one org to another with some edition on the fly. Someone suggested me to use the ...
1
vote
1answer
28 views

Metadata API - few items are missing from admin.profile

I am using metadata API to retrieve all profiles. When I verified the downloaded zip, All profiles XML are downloaded but following properties are missing from admin.proflie . If we download profiles ...
1
vote
0answers
22 views

Update Profiles in APEX

Anything I've read indicates that there's no native APEX DDL layer for Metadata such as Profiles. It seems the only way to update profiles in Apex is to use FinancialForce's MDAPI wrapper. This is ...
0
votes
1answer
38 views

Error: Cannot create a WorkflowAlert on task or event

I am using the Metadata API to pull workflows from production and push them into a SB environment (sandbox) I get several errors related to workflow creation on the Event/Task object. We understand ...
0
votes
0answers
14 views

How to tell illuminatedcloud plugin for IDEA to auto sync branch switches to sandbox

How can I configure the IlluminatedCloud plugin for APEX dev on IDEA to look for changes during a git branch switch and sync those with my Sandbox connection? Right now when I branch switch some of ...
0
votes
0answers
26 views

Can we edit the content of a deprecated method?

I have a class that was deprecated some time back. I am trying to perform an internal refactor and remove some items that are still referenced in the methods of that deprecated class. However, when I ...
4
votes
2answers
135 views

Retrieving entire org via the Salesforce API

Is there a method in the salesforce API that allows you to retrieve the contents of the org as a zip file? For instance MavensMate, Illuminated Cloud, and every other Salesforce IDE I have seen has a ...
0
votes
0answers
15 views

Missing meta-xml files from SourceControl for Continuous Integration Build

Missing meta-xml files from SourceControl for Continuous Integration Build We are building up continuous Integration for automating deployments from Source control using Git ,Jenkin and Ant by ...
4
votes
2answers
68 views

Metadata API - Struggling With First Custom Object + Fields Creation Project

Update: First and foremost, this is all about building a proper package.xml, objects folder full of ___.object files, and profiles folder full of ___.profile files. You do that, the rest is cake - ...
1
vote
1answer
23 views

permission set metadata through Force.com IDE

I was updating some field permission through metadata in force IDE and saving it to the sandbox as I went along, everything went great as I fresh the SF interface and saw that the changes were there. ...
0
votes
1answer
10 views

Metadata - permission set documents xml missing

The metadata xml of my permission set in force.com IDE is missing CRED permissions related to the documents object. I have included documents as a part of the force.com project, yet I do not see any ...
1
vote
1answer
38 views

Metadata API - listmetadata() for EmailTemplates is empty

I was able to retrieve metadata for DashboardFolders using listMetadata(). However, the same does not apply for EmailTemplates where it returns empty. The inference from this thread is that it is not ...
6
votes
1answer
43 views

Create a CustomSite using Metadata API

The Metadata API allows us to programatically list all the current public facing sites in an org. There is a class called CustomSite covering this element. Has anybody ever successfully created a new ...
0
votes
1answer
23 views

Metadata API - Salesforce Explicitly setting missing tags to false

I recently found out, with drastic consequences, that when deploying custom objects if we miss out some tags like then salesforce automatically assumes ...
1
vote
1answer
13 views

Metadata API - Organization specific due to WSDLs?

I am trying to get the Salesforce Metadata using Metadata API. I am able to retrieve them per organization. I followed the steps around here. If I develop my application, can the metadata.jar ...
0
votes
2answers
57 views

How to match profile name to ant metadata profile name and vice versa?

Probably you know System Administrator profile, if you try to migrate change to object or field or page or application or class permissions for the profile and you try to retrieve it, you will get an ...
3
votes
1answer
22 views

Are Sharing Settings of Relationship fields retrievable by Schema or Metadata/Tooling API?

Is there a way to find out in Apex code if on of the two radio options is set in an Org?
11
votes
5answers
191 views

How to keep sandbox in sync with changes from other developers?

We are a team of 9 developers, working on a large project and commits are made to master branch all the time. When I needed to work on any new enhancement I used to pull everything from master branch ...
0
votes
1answer
29 views

Permission sets metadata xml - some field permissions missing

In the permission set metadata xml in my eclipse project, fieldPermissions for some of the fields of an object are missing. Please note that: The object is included as a part of the force.com IDE ...
3
votes
2answers
68 views

Deploying SoftPhone layouts using Metadata API

Using the Metadata API/Force.com Ant Migration tool, how does one retrieve or deploy the SoftPhone Layouts for the Call Center? By SoftPhone Layout, I mean that which can be found at ...
2
votes
1answer
57 views

How to deploy a Layout with a Related List containing a Geolocation field using ant/the Metadata API?

Using ant, when doing a retrieve() of a Layout containing a Related List, containing a Geolocation field (see abridged, sanitised example below), the relatedLists node contains two entries for the ...
2
votes
1answer
71 views

how to add List of values in custom Object Picklist field options?

I have written a apex class.It will return some List of values.I want add those list of values in the picklist field " Code_Label__c" which is in Service__c Object(custom object). Public void ...
0
votes
0answers
16 views

Can I migrate metadata from a “protected” org's custom object to my org?

My goal is to move custom objects or at least the data in a custom object from a "protected org" to an org. From my research, Ant paired together with the force.com migration data tool does what I ...
2
votes
1answer
180 views

Create Flow with Metadata API - Process Builder flow from Apex

I'm trying to create a Flow from apex using the MetadataService.Flow, in this case what I want to do is: Create the flow Define some criteria Invoke an apex class (defined with the @InvocableMethod) ...
3
votes
1answer
35 views

Problems with using apex to get metadata

1.When I query the objects using Schema.getGlobalDescribe() I get wierd objects like "ApexTestQueueItem", "Announcement", "AccountContactRole", "Account_Escalation__c". I basically only want the ...
0
votes
1answer
46 views

Is it Possible to Add Value to Picklist Field by Visualforce

My scenario : I am creating visualforce page for custom object. I have one Picklist field(say, city__c). If user choose ---other--- option from the picklist, I must enable a textbox and Add button. ...
1
vote
0answers
18 views

How to update/remove managed picklist dependencies through metadata api

I am trying to use the metadata api to remove a picklist dependency on a managed picklist field. As an admin I am able to do this manually. I want to be able to automate this process. My metadata ...
2
votes
1answer
44 views

Not able to just deploy classes folder using Force Migration Tool

I am trying to deploy just classes folder as I am not able to deploy entire src folder because of size issue as mentioned in this post Here is the task I added in my build.xml: <target ...
0
votes
0answers
19 views

Metadata Live agent configuration over VF page

I wanted to expose the Live agent configuration over the Visualforce page so that users can update their configuration. Is it possible using the Apex or using Tooling api.? I have searched something ...
0
votes
0answers
42 views

Better way to truncate all entries of a Salesforce Object through API

I want to recreate all entries of a Custom object from external source everyday. Currently I am using BULK API and if I need to do a full refresh, I follow the following steps: Query Id of all ...
3
votes
1answer
156 views

Getting Session ID in Lightning

Background I'm using Apex Wrapper Salesforce Metadata API to update some picklist values on the fly. (i.e. Every time a record is inserted/updated/deleted in Table A, I'm adding/subtracting picklist ...
1
vote
1answer
33 views

Add related list after create a lookup field with metadata API

I would like to know if there's a way to add the related list in the parent object after I've created a lookup field trough the metadata-api? this is what I'm doing: Creating the field: String ...
1
vote
1answer
44 views

Unable to deploy Account object to a sandbox

I am getting the following error when deploying from one of the sandbox. All Component Failures: 1. objects/Contact.object -- Error: Read is not a valid sharing model for Contact when Account ...
1
vote
0answers
28 views

Unable to update (corrupt?) page layouts via Metadata API. Error: Invalid field:xxx in related list:xxx

Our application uses the Metadata API to make changes to page layouts. This mostly works great, but in the last month or so we've encountered several customer organizations where we get errors when we ...
1
vote
1answer
108 views

ant deploy error - Maximum size of request reached

I used to deploy metadata using ant migration tool successfully but from last night I am getting the below error: John@John:~/mm_workspace/TEST_Project/deploy$ ant deployUnpackaged Buildfile: ...
3
votes
1answer
75 views

Get List of Tabs which are visible to particular profile

We are modifying our project UI from scratch, and for that we are creating a new bootstrap NAVBAR. Salesforce Tabs are great and are profile based. What we want is feature of boostrap and feasibility ...
0
votes
1answer
24 views

which api does dataloader uses when bulk api is not checked? What is the default API?

Which api does dataloader uses when bulk api is not checked? What is the default API ? I could see explanation for using BULK API in dataloader, but what to know which api is used in default?
0
votes
1answer
32 views

retrieving standard fields in metadata request

On retrieving metadata for sobjects, including standard ones i.e Account object, I note that I am passed back only the custom fields for this object. Any suggestions on how I include standard fields ...
1
vote
1answer
38 views

Retrieve Salesforce Standard objects using Metadata Api

Use case : Need to retrieve standard objects like Account, Case etc using Metadata Api. When we retrieve the list of objects, system objects(ApexClass,ApexTrigger etc) also appears in the list. Need ...
0
votes
0answers
27 views

converting results in numeric overflow error while creating dataset

I am trying to create a dataset in Salesforce using below CSV "Id","percentage","comments" "id0",0.0,"abc" "id1",0.1,"abc" "id2",0.2,"abc" "id3",0.3,"abc" "id4",0.4,"abc" "id5",0.5,"abc" ...
3
votes
1answer
56 views

Migrating connected apps from one dev org to another dev org with the consumer credentials remain unchanged

I have been looking for a solution to migrate my connected apps from one dev org to the other since the other one has partner privilege Is it possible by MetaData API?
1
vote
0answers
28 views

Migrating components not supported by eclipse

How do we migrate metadata from one org to another when they are supported by metadata api but not by eclipse. The examples are sharing rules and matching rules. I have managed to migrate this from ...
4
votes
1answer
44 views

Salesforce Ant Migration Tool - HomePageComponent

I'm trying to figure out when using the Salesforce Metadata API (salesforce ant migration tool) how to pull back the custom links defined within the HomePageComponents. I've pulled down a blanket from ...
0
votes
1answer
13 views

How can I improve the test coverage of MetadataService.cls (recent Version for API v35)?

I'm using the APEX wrapper for Metadata API found here https://github.com/financialforcedev/apex-mdapi Looking at the test coverage, there are a lot of lines uncovered. Can this be improved easily?
0
votes
1answer
62 views

How to update field-level-security using Metadata-API via Apex (using MetadataService.cls)

I'm trying to grant FLS access using MetadataService.cls (found here https://github.com/financialforcedev/apex-mdapi) Assume there is a field Test__c on Account with no FLS permissions granted to ...