Metadata contains all the customization you can do to your salesforce organisation. Use this tag for specific questions about the metadata itself. Use the metadata-api tag for questions on deploy/retrieve/update/delete of the metadata with salesforce organisations.

learn more… | top users | synonyms

1
vote
0answers
20 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 = '...
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
1answer
36 views

What does the standard__DataAssessment metadata refer to?

I am trying to deploy some profiles to an environment but it is failing. The error states In field: application - no CustomApplication named standard__DataAssessment found. The metadata entry is ...
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
3answers
39 views

Is it possible to extract managed package metadata using Force.com IDE

I tried to search online but I couldn't confirm that is it possible to extract managed package metadata using Force.com IDE? If so, how can I do it?
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
17 views

Unable to insert ListView via the REST API

When I try to insert the ListView object using the REST API I get the following error: [{"message":"entity type cannot be inserted: List View","errorCode":"CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY","...
1
vote
2answers
19 views

How to create multiple custom labels?

I need to create many custom labels at once. These are all for the same VF page, and I'm grouping them in a category. However, creating many in the web interface is just too repetitive and slow. I've ...
0
votes
0answers
39 views

Getting error while updating related list page layout using metadata service api

ATAL_ERROR|navpeIIll.MetadataServiceExamples.MetadataServiceExamplesException: Error occured processing component navpeIIll__Fund__c-navpeIIll__Fund Layout. Invalid field:navpeIIll__Legal_Name__c in ...
1
vote
2answers
26 views

Is there a way to check a field's accessibility through API

The standard field Email on CampaignMember object is not available through API, for which we use the workaround of having another custom field so that its accessible through API. Is there any way to ...
0
votes
0answers
17 views

How can I pull all of the standard object/field descriptions from the SOAP Rest API documentation into a flat file/xls

I am currently implementing a metadata repository for a client, which will house Salesforce and data warehouse metadata. A large part of this is capturing the description field. We have descriptions ...
0
votes
1answer
46 views

Can we convert a Visualforce Tab into a Lightning Tab by updating xml metadata in Eclipse?

I've a Visualforce Tab, which is mobile ready and now I've created a new Lightning Component that works great in Mobile/Lightning. So now, I want to make sure that my visualforce tab is pointing to ...
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 ...
2
votes
2answers
96 views

Comparing meta data between two sandboxes. Easiest Way

We want to compare two sandboxes with the confiugration,apex classes and VF pages,Triggers etc. Is there any easy way to doing so, i know there is tool Dream Factory Snapshot but this is paid. Is ...
3
votes
1answer
68 views

Getting User - List View mapping using apex

Is there any table or any other way(metadata/rest api) we can query the list views of a particular object that a user/group has access. Example: SELECT Name FROM table_x WHERE UserOrGroupId = '1234....
1
vote
0answers
27 views

Ant retrieve doesn't include specific quickactionlistitem in layout metadata

We are using a simple ant script to retrieve certain types of metadata in our org, including various page layouts. On one such layout, we have some quickactions. We've noticed that when using the ...
3
votes
1answer
37 views

How to determine a list of Opportunity fields by API name that are on the page layout?

How to determine a list of Opportunity fields by API name that are on the page layout? For example for the Opportunity Object: I have created a custom field whose API Name is "My_Custom_Field__c" I ...
3
votes
2answers
156 views

Deploying community from Sandbox to production

I have created a community in my sandbox and want to deploy it to the production org. Please suggest what is the best way to achieve. Any detailed documentation around steps would be much appreciated!
3
votes
0answers
25 views

Search Roles in salesforce metadata

There are 3 roles which I want to know if it is referred in metadata or not. But my question is using which keyword I need to search the roles ? Currently I am using Role and UserRole keyword to ...
1
vote
0answers
39 views

Is there any way to get the ID of a Process Builder to apex class?

I want to get the ID's of all the Process Builder (that I created) into an Apex Class. Is there any way to do this by means of Metadata API (or) Is there any API directly to retrieve them?
0
votes
2answers
27 views

Is it possible to migrate all UserRoles from one sales force Org to another sales force org using ANT tool?

How to move roles from sales force to sales force.could you please help me ? thankyou..
1
vote
2answers
44 views

Get creation date of metadata using Apex

As the title says, is it possible to get dynamically get the creation date of custom metadata using Apex? I would like to know, for instance, which fields were created since 03/01/2016, in which ...
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 ...
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 ...
6
votes
1answer
64 views

How to maintain Process Flows in source control?

Salesforce appends a version number to the metadata file name. This prevents us from tracking in source control, since Git tracks files by name. Any good methods of tracking flows in git or other ...
3
votes
1answer
45 views

Search salesforce metadata

On deleting some fields I can see the references of those fields in classes/pages that are being used. However I don't see which reports/templates the field is being referenced in. Where exactly can I ...
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 ...
4
votes
1answer
81 views

Can I rename API names of fields in a change set?

I have a field in two sandboxes with the same ID (they both came from production). The field is on the Opportunity Let's call them sandbox1 and sandbox2. I changed the API name of the field in ...
4
votes
1answer
243 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 ...
1
vote
0answers
23 views

Given the name of a managed package, how can I find the namespace prefix? [closed]

I know this can be done with a metadata retrieve and by examining the package.xml. Is there an easier way?
1
vote
1answer
43 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 ...
4
votes
1answer
48 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 ...
2
votes
1answer
109 views

How do I use the WorkBench to retrieve metadata?

I'm trying to figure out how to retrieve Field Audit Trail metadata using the WorkBench, and I'm stumped. I used the WorkBench to deploy a zip file named package-Dev.zip, which contained the following ...
1
vote
1answer
21 views

Can't Query Picklist Value not Defined in MetaData

I've got a picklist Activity1__c with 2 values that don't actually exist in the metadata: "Reverse Reference - Completed" and "Reverse Reference - Incomplete". In other words those picklist values ...
0
votes
1answer
26 views

Is there a way to do a Mass Update on the Record Type selection?

Is there a way to do a Mass Update of the Record Type Selection flag on the User (Set Up >My Personal Information > Record Type Selection > Set Opportunity = True for multiple users) In what object ...
0
votes
0answers
28 views

Metadata for assigned Home Page Layouts

I've just created a customised Home Page Layout and assigned it to a couple of profiles. I now want that assignment to be deployable to other sandboxes via metadata. Is this possible? Or does this ...
1
vote
1answer
60 views

Error: field integrity exception: unknown (required must not be specified)

Got the following error when tried to deploy metadata via ant migration tool Error: field integrity exception: unknown (required must not be specified) Field metadata configuration is the ...
3
votes
1answer
65 views

What to consider in converting picklist to look-up relationships?

A client currently has a number of Task Record Types that have picklists. The picklists are typically related to accounts of a given RecordType. In some cases, they're lists of child accounts that ...
3
votes
0answers
127 views

Difficulties retrieving Metadata from Sandbox

I'm doing work in an org's sandbox where we're not able to retrieve all of the org's metadata using either Eclipse or MavensMate. We've refreshed the sandbox and still have the same problem. I've ...
1
vote
1answer
85 views

How to restore a deleted class?

I tried with below option. ApexClass deletedClass = [SELECT id FROM ApexClass WHERE name = 'DeletedClass'][0]; My class is not found in ApexClass. Any other option?
-1
votes
4answers
45 views

Visualforce building

I would like to develop a vf page, which displays three columns from one object. Field Name | Help Text | Description of the fields. I would like to capture these above mentioned details in a ...
2
votes
0answers
53 views

Person Account RecordTypes metadata

I have Person Accounts enabled in my sandbox org. When I pull the (objects/Account.object) metadata in Eclipse I don't see any Person Account record types in Account.object. I can see record types ...
1
vote
0answers
42 views

IMPORTING DATA - Is there a sequence when it comes to importing?

It there an actual way to import records? I know the sequence is this for standard objects 1. Accounts 2. Campaigns 3. Contacts 4. Opportunities 5. Cases 6. Solutions 7. Pricebooks 8. ...
1
vote
1answer
158 views

Can no longer add/remove metadata components via Eclipse IDE

Recently Eclipse stopped picking up any new metadata components from the server. Via the Salesforce UI I am able to see new classes and VisualForce pages, but when I go to "add/remove metadata ...
1
vote
0answers
19 views

List Metadata Missing CaseComment?

Are there any restrictions on which standard objects are returned with a list metadata call for CustomObject or Workflow? Taking a stab at fixing a mavensmate bug which builds it's project manager ...
1
vote
1answer
229 views

Deploying .settings - Error: Not available for deploy for this organisation

I am trying to deploy some .settings files to an org. The org is a sandbox of where the original metadata was pulled from. This is the following error I am receiving, but it's not very descriptive. ...
0
votes
3answers
44 views

extract all metadata which was created or changed

i need to provide a package.xml file that explicitly lists all contents / metadata that got created or changed in dev sandbox. are there any tools that can simplify this task. does anything need to be ...