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
1answer
8 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
20 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, ...
0
votes
2answers
36 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
13 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
27 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
24 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. ...
2
votes
0answers
37 views

Metadata API Call: Web service callout failed

I am creating sample example from http://andyinthecloud.com/2013/10/27/introduction-to-calling-the-metadata-api-from-apex/ I am getting following exception on Click of the button Whats wrong? Web ...
3
votes
1answer
44 views

Fetch List of Custom Objects present on another Org

I have a requirement where I need to fetch list of objects present on another Org. I tried it using metadata service but could not fetch.Any Idea how this can be done using Partner WSDL or ToolsLink ...
1
vote
0answers
25 views

Find the field is mandatory or not

I am developing an application for Salesforce integration. My requirement is to get all the validation rule and Mandatory fields from Lead category like we have lead status as mandatory in salesforce ...
4
votes
1answer
32 views

How to get the content of an existing apex class using metadata api

I was able to get the names of all the apex classes in an org using metadata api with Java public void getApexClasses() throws ConnectionException { ListMetadataQuery[] queries = new ...
0
votes
0answers
22 views

ReportFolder obj created but not FolderShare objs?

Begging your understanding, My app creates 3 FolderShare objects , a ReportFolder object, sets the FolderShare objects to the ReportFolder obj, finally creating the ReportFolder object, to wit: ...
7
votes
1answer
165 views

Are full backups & recoveries not possible?

While it appears that Salesforce supports backups of data & configs, it also appears that a complete backup is not possible. Have I misunderstood the meaning of this page? For example, does this ...
1
vote
1answer
22 views

another “must specify a attribute type for metadata element” question

I solved my metadata connection problem so now have hit the next obstacle, trying to create a com.sforce.soap.metadata.Folder object using com.sforce.soap.metadata.Folder aFolderObj = new ...
2
votes
2answers
22 views

EnterpriseConnection works, MetadataConnection doesn't

I have a method import com.sforce.soap.enterprise.*; import com.sforce.soap.enterprise.sobject.*; .... public static EnterpriseConnection connectToSalesforce() throws ConnectionException ...
2
votes
1answer
42 views

Create new Visualforce page dynamically

I want to define and create a new VF page dynamically, in Javascript or Apex (or whatever I can use). Is this possible at all? If so what technology allows this (e.g. Metadata API) and is there a ...
0
votes
1answer
29 views

How to get Lookup metadata using Salesforce Metadata API

I have a C# program where I have 3 ListBoxes. The 1st list includes all CustomObjects. The 2nd list displays all of the CustomField’s for the selected item in the 1st list. The 3rd list should show ...
4
votes
0answers
32 views

How to query metadata changes in a sandbox based on dates

We are trying to compare our development sandboxes now which have become totally out of sync because of changes done by independant teams for a few releases. Do you guys know of any free apex code ...
3
votes
1answer
88 views

Must specify a {http://www.w3.org/2001/XMLSchema-instance}type during creating Approval process using metadata API

I am trying to create Approval process using Metadata API but unable to figure out what i am missing. One doubt is XML don't have any symbol why which me or Salesforce could identify on which object ...
1
vote
2answers
45 views

Best Practices to move metadata from sandbox to free developer org

I need to move the metadata from sandbox to free developer org.I have 7 custom objects,pages,classes,components,static resources,updates to standard objects..Please suggest the best practices and ...
6
votes
1answer
148 views

Premature End of File error while creating metadata from nodejs

I am trying to create a list view on a custom object from nodejs server. I have constructed a the SOAP(XML) body like I had done here, but I keep getting the Premature End of File error, which doesn't ...
2
votes
1answer
39 views

Getting Consumer Secret Via API

I'm trying to automatically create apps in new pods as they are added. When I create apps, I'm able to get all the values but Consumer Key. Is there a way to get it through code? I know it's ...
3
votes
1answer
42 views

Is there any way via any API to track Metadata history?

I am using metadata API to retrieve the LastModifiedBy of an Object. But, it returns me only one User. I wanted to know if we can track, the Users whoever modified the Object. Is it possible by any ...
1
vote
1answer
23 views

What features in profile setting are manually migrated and which ones are automated to production

We are planning to migrate around 30 profiles to production from our development sandbox. We want to know on profile settings like tabs, custom object permission, general administrative settings ...
1
vote
1answer
64 views

Get address information from Metadata

I would like to get values for Address.Setting Metadata Component in Salesforce.There are stored all country and state ISO codes. <?xml version="1.0" encoding="UTF-8"?> <AddressSettings ...
2
votes
0answers
44 views

Can the MetadataService.cls be used to create Workflows via Apex?

I'm trying to use the MetadataService.cls provided by FinancialForce.com to create Workflows. The problem I am having is that the declaration for the "workFlow" class and its related components does ...
0
votes
2answers
48 views

How to know if a custom field is referenced in Workflow or Validation rule using Metadata API?

Is there any way to find out if a field is used in Workflow or not. I tried working with Metadata API's listMetadata call which returned me file properties . But no information about Field referenced ...
3
votes
3answers
118 views

Is there a way to obtain a listing of Apex classes, triggers, and components by date?

I'd like to be able to pull a listing of Apex classes, triggers, and components that have been created or modified after a certain date. Is there an easy way to do this?
1
vote
2answers
106 views

Editing a Static Resource via Apex with Metadata API

I have recently found a way to create a Static Resource via the Metadata API - see this article. So, I was curious if it was possible to not only create a static resource, but to either: Edit the ...
4
votes
1answer
105 views

Query API Limits

Is there a way to programmatically query how many API calls an organization has made for the 24-hour period? We have a program that imports data from external databases to SFDC in a fancy way, and we ...
3
votes
1answer
71 views

What is the maximum character limit for a multi-select picklist?

What is the maximum length of the string of values that a multi-select picklist can return? If the picklist items can be up to 40 characters and users can select 100 of them, that implies that you ...
7
votes
2answers
134 views

Is there a programmatic way to tell if an Apex class is batchable?

Is there a programmatic way to determine which Apex classes in my Org are batchable (i.e. implement a batch interface)? I have looked at the Metadata API but it does not seem to have any method for ...
1
vote
1answer
111 views

Dynamically set remote site Setting in Apex

I have created a managed package that uses tooling API for updating class, trigger etc. Everything runs fine with all sorts of testing. I have created this package in my Developer org. I had to set ...
2
votes
1answer
125 views

Customize “Recently Viewed” list views

I have been asked to customize the generic "Recently Viewed [object]" list views that are present for Salesforce objects (note: I do not mean the [object] Tab Search Layout.) The only problem is that ...
3
votes
2answers
85 views

Salesforce Metadata API

Is it possible to delete an apex class or apex trigger using Metadata API? Please guide. I tried using https://github.com/financialforcedev/apex-mdapi but it did not work.
2
votes
0answers
197 views

Failing to update picklist on task object via metadata API

I am using the metadata API from Apex code thanks to Andrew Fawcett's very helpful code to do this. I have a some Apex code that goes and updates a series of multiselect picklists with the same set of ...
6
votes
0answers
80 views

Managing presence of <objectPermission> tags in profiles

When retrieving profiles for custom objects in a project.xml manifest, the returned profiles do not contain the objectPermissions object for objects that they do not have access to (ie no CRUD ...
3
votes
1answer
60 views

More than 1 developer package named 'MyPackage' exists in this organization. Please rename one of packages so that it has a unique name

First I was getting this error when tried to import the package from XML using Metadata API (I use force.com CLI for that). The package with this name really exists in the organization, but it ...
2
votes
1answer
76 views

Is it possible to update managed package contents using Force.com Migration Tool (ANT Tool)

Is it possible to update managed package contents like apex class/trigger of an installed instance of a package authored by another publisher using Ant Tool using deploy target? If then how to give ...
2
votes
1answer
215 views

Generate SOQL based on existing report using Metadata API

I know there's been several topics like that, but none of them has any usable answers, so I'm starting a new one. My current task is to build a tool that lets the user select any of the existing ...
5
votes
1answer
251 views

How to delete list view from metadata?

We have a requirement where we have to delete list views. So I thought we could do something like this (this is similar to the create example mentioned here): HTTP h = new HTTP(); HTTPRequest req = ...
6
votes
1answer
112 views

using deploy to create a new custom object not working and no errors

I'm struggling for awhile, must be something very simple... I'm using metadata api deploy to create a new custom object without success and no errors returned. My guess would be something with zip ...
4
votes
1answer
53 views

How to Enable publisher actions Programatically using API?

Is there any way to enable publisher actions (Accessed manually through Setup->Customize->Chatter->Settings->Publisher Actions) while installing a package using API? Can metadata API be used for ...
4
votes
1answer
108 views

RecordType Label Error: Duplicate Values Not Allowed

I deployed a new RecordType to an Opportunity (where other RecordTypes/Sales Processes already existed). I notice that my RecordType, when selected on a new Opportunity, returns bad data for my Stage ...
2
votes
1answer
71 views

Best way to manage Custom Object layouts through API?

I have a Ruby on Rails application. I am asking the user for the object name that they use for invoices, i.e. "Invoice__c". With use of the metaforce gem the app creates the field "PDF_Link__c" on ...
1
vote
1answer
134 views

Parsing Metadata API XML

I am looking to leverage the Metadata API to help audit the security of a system on a single splash page (primarily to see Profile based permissions on different configurations). As I poke around the ...
4
votes
3answers
246 views

Are profile and permission set metadata files getting all project objectPermissions?

I have a project in development. There about 45 new SObjects to the org but there is also a couple of new profiles for the org. The permissions on several existing SObjects have been specifically ...
2
votes
1answer
368 views

Can I call salesforce metadata api from apex code?

We have a requirement were all customer orgs should get approval process. So we are planing to create a post installation script and use salesforce meta data api to create a approval process. Is my ...
2
votes
1answer
122 views

fullName is missing in Custom field in Metadata api v29.0

i downloaded a metadata wsdl.created apex class MetadataSerbvice.i wirte a simple code MetadataService.CustomField cf = new MetadataService.CustomField(); cf.fullName ="Asset.ProductLine__c"; but ...
3
votes
1answer
90 views

Trimming WSDL file manually guidelines

i need to update a custom picklist field of standard object.i need to add a value when an object is inserted.i download metadata wsdl file .but its very big .and i am not getting how to trim it ??any ...
3
votes
1answer
2k views

Using Meta data api in apex

i know if u have to create a field in apex then u have to call meta data api of salesforce.i found only this link for implementation https://github.com/financialforcedev/apex-mdapi is there any other ...