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
0answers
23 views

Update CustomField using metadata api

When i am trying to update any standard field, it is working: MetadataService.CustomField customField = new MetadataService.CustomField(); customField.fullName = 'Account.phone'; customField.label = '...
2
votes
0answers
16 views

Accessing SAML Login Information in Connected App programmatically

I was looking for a way to programmatically read (and potentially - write) data in SAML Login Information (on ConnectedApp 'manage-side' settings), as displayed below: I already tried using Metadata ...
0
votes
0answers
17 views

Metadata API: Updating a picklist value to make it visible for selection on record types

Was able to implement the Metadata API using @future to make asynchronous callout via an Account Trigger to add picklist values to a custom picklist field on the account. However, it is added to the "...
1
vote
0answers
27 views

Customisations with apex [closed]

I have two objects: Object A and Object B. I want to push picklist values of Object A to Object B picklist values using metadata api.How can I achieve this using code?
0
votes
1answer
40 views

Apex way to distinguish whether the change is coming from Metadata API

I am designing to integration structure of our 3rd party system from and to Salesforce. It is about data integration and I am planning to have the Request & Response structure. In the triggers of ...
1
vote
1answer
25 views

Is it possible to deploy changes to a Scheduled job using the metadata API

Is it possible for us to deploy changes to a scheduled job using the metadata API? Is it a supported component? For example, I have a class that implements Schedulable and from the Salesforce UI, ...
1
vote
1answer
24 views

Deploying a Profile with Enabled Apex Class Access & Visualforce Page Access

I need to deploy a profile from dev to staging org, and I was looking for any possible ways to include Apex Class Access & Visualforce Page Access to the ant's changeset (I would like to avoid ...
0
votes
0answers
26 views

Create and assign Navigation menu in salesforce lightning programmatically?

Is it possible to create navigation menu programmatically? I am not able to find which object is helpful for this. Which object holds navigation menus? I think we need to insert through metadata ...
0
votes
1answer
17 views

Edit Custom Metadata Records from a Managed Package

Custom metadata records seem to be great mechanism to store application configuration details, as unlike Custom objects or Custom settings, custom metadata records can be packaged with a managed ...
3
votes
1answer
14 views

Deploy/Download Profile ListView

I need to deploy & download a Profile ListView, it seems typically a ListView would be included in the object's XML, but when I try to download this it gives me this error: package.xml - Can't ...
0
votes
1answer
26 views

Retrieve Compact Layout via APEX

I need to retrieve the compact layout via APEX in order to generate the query. I would like to do something like: String entity = 'Lead'; String fields = retrieveCompactLayoutFields(entity); String ...
4
votes
1answer
33 views

How do I update Custom Label's value using apex? Which one would be a better option metadata api or tooling api? Please provide example [closed]

I'am working on post deployment automation process in salesforce. I am stuck on how should I update values in custom labels which needs tobe updated manually after a sandbox refresh.
0
votes
1answer
30 views

change object Permission by Metadata API

I want to change custom object Permission. i'm using code: financialforcedev/apex-mdapi This is my code but not working even not giving any error. MetadataService.MetadataPort service = ...
0
votes
2answers
25 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
63 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
66 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(); request.setEndpoint('https://ap2.salesforce.com/...
0
votes
1answer
23 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
35 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 Force....
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
47 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
27 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
138 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
16 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
75 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
29 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
49 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 <enableReports>false</enableReports&...
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
67 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
23 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
211 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
34 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
69 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 https://login....
2
votes
1answer
60 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
84 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
195 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
36 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
50 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
19 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
50 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 name="...
0
votes
0answers
20 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
55 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 ...
4
votes
1answer
246 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
36 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 ...