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

Renaming Layout fullName via SOAP API

Is there any possibilities to rename fullName of Layout via SOAP API? I've tried to do it using renameMetadata method in Metadata SOAP API. But failed with an error. Request: <soapenv:Envelope ...
3
votes
2answers
36 views

Are ISV apps allowed to create unmanaged metadata dynamically?

I'm trying to create a developer tool for the AppExchange that is able to create unmanaged Apex classes dynamically (for example, after clicking a button in the app.) Does salesforce allow ISV apps ...
0
votes
2answers
29 views

Test class to run any Organization

I have a class which takes any record id and returns fields name and it's values as well as relationship record's values. Now to write a Test class, i have to create a record. I can try with inserting ...
1
vote
1answer
21 views

Is it possible to detect that an org has lightning enabled through any available API?

So far as I've searched, this isn't possible, but any suggestions would be appreciated. I'd like to be able to link to an organization's Storage Usage screen from the UI of my external application, ...
1
vote
1answer
20 views

Java - Metadata Api readMetadata() not returning corrrect info

I am trying calling readMetadata() method in java to return all instances of a metadata type in my sandbox: For example calling readMetadata("ApexClass") will return the api names of all apex classes ...
1
vote
2answers
29 views

Call metadata API during package install

I have a package which deploy some functionality to organization and to be completely installed I need to add custom button to quote layout. As I know - there is no way to add custom button from Apex, ...
4
votes
1answer
37 views

Explanation of Metadata API process

Let me start by saying I have never worked with any of the Salesforce API's and I'm trying to understand just how they work. I am attempting to make Metadata API calls from one salesforce org to ...
0
votes
1answer
21 views

Writing custom Api methods to access salesforce data in IOs salesforce Mobile app. [closed]

I want to write some Custom methods to access the salesforce data in IOS mobile App. I am new with salesforce Mobile. I have Installed Salesforce IOS SDK , But I am not aware that how should I write ...
2
votes
1answer
36 views

Salesforce Connecting two orgs through API

I want to be able to access an org's metadata from a visualforce page in another org. My needs are: Connecting my org (acme) to another org (acme2) From a visualforce page in acme, I want to be ...
1
vote
1answer
36 views

Does global picklist supports Localisation?

Please help me on below points: I have a requirement where I need to make global picklist values as per locale. How can I achieve this. I don't want to use it through custom labels as it has around ...
0
votes
0answers
11 views

Activate Lightning Record Page via Metadata API

I can deploy Lightning Pages, aka Flexi Pages with the Metadata API. In order to active a Lightning Page, I can do so in the Page-Builder via Setup-Home -> Object Manager -> Account -> ...
1
vote
0answers
27 views

Field Integrity Exception for Name

I am trying to create a Related List with a custom object using the Metadata API. When I make the call I get a Field Integrity Exception saying that the field "Name" does not exist on my object. ...
1
vote
0answers
24 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
23 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
21 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
42 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
26 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
29 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
36 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
20 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
17 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
28 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
48 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
32 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
68 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
75 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
20 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
28 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
38 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
25 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
57 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
18 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
30 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
87 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
37 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
11 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
60 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
46 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
14 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
74 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
24 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
235 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
39 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
71 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....