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
2answers
22 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
14 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
26 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
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 ...
2
votes
3answers
75 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
58 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 = ...
1
vote
0answers
21 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
32 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
106 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
37 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
24 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
41 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
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 ...
6
votes
1answer
62 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
43 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
34 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
64 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 ...
3
votes
1answer
155 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
0answers
21 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
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 ...
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 ...
2
votes
0answers
81 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
20 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
52 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
59 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
93 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
78 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
50 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
124 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
18 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
190 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
41 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 ...
1
vote
1answer
83 views

Get translation of “Salutation” via Metadata API

Through the metadata API it is possible to query the translations of a Picklist field. In our scenario the relevant objects are Lead and Contact. We were able to get the translations except for the ...
0
votes
0answers
79 views

Accessing State/Province Picklist IntegrationValues Through Apex

In our org, we have activated State and Country Picklists, and are using different values for the integrationValue than for the isoCode. Right now, I'm looking for a way to access the Integration ...
0
votes
1answer
54 views

How to get salesforce standart objects using API

I'm trying to get all salesforce system objects such as Set, List, System and their methods. I used tooling api, namely SymbolTable class to get methods and variables of specified classes, but i can't ...
1
vote
1answer
21 views

All formula fields are not retrieved in object metadata

I have retrieved Object metadata in Eclips. However some Formula fields are not showing in object metadata. Is there any way to fetch all formula fields for all objects available in sales-force org.
1
vote
2answers
38 views

How to export and version control all metadata of an org

How to export and version control all metadata of an org, by saying that, I mean if I import all these metadata into a brand new org, it will create an identical org as the original org. THIS HAS TO ...
1
vote
1answer
24 views

Using Quickdeply from metadata API

Do I need to pass any special parameters when I use Quickdeploy using metadata api ? Or should I just use the validate option and it sends the info to the org for Quickdeploy? How does ANT know when ...
2
votes
1answer
68 views

How to get the API name of the fields used as a filter within a report?

I'm trying to get the fields used within a report. By using Reports.ReportManager.describeReport I'm able to get a lot of information about the report. Unfortunatly I'm not getting the API name of the ...
0
votes
1answer
41 views

RecordType field permissions in Metadata of Profile

I have one doubt -- Let say I have metadata of one profile = "abc.profile" Custom object = "Custom_object__c" Fields in it = Field1__c Standard Field = Record Type Now If I see MetaData of my ...
0
votes
0answers
9 views

Auth provider hardcoding executionUser

I have a community for which I have created a custom self registration form. In order to configure the registration handler, I need to specify an executionUser. How do I hardcode a user when it will ...
1
vote
1answer
31 views

SOAP updateMeta operation for CustomSite

I wanna change the homepage of a Force.com Site using the Metadata API. Nothing fancy, so: I've prepared a new updateMetadata request, set fullName to the API name of the site, put indexPage to the ...