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

2
votes
3answers
50 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
36 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
20 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
28 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
72 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
24 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
32 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
21 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
31 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
38 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
51 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
57 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
41 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
50 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
101 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
30 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
19 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
33 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
43 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
59 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
20 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
13 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
43 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
53 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
81 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
77 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
48 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
39 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
102 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
153 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
76 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
70 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
52 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
37 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
23 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
61 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
36 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
30 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 ...
1
vote
1answer
133 views

In Apex limits, custom metadata records can have unlimited SOQL queries. Advantages?

Is there any way to overcome the apex limit for total number of SOQL queries issued using custom metadata records?
3
votes
1answer
33 views

How to get keyprefixes for all Metadata types

Is it possible to get a list of key prefixes for all Metadata types in Salesforce org. Not the standard objects or custom objects, but Metadata types e.g. AccountSettings, ApexPage, CustomObject etc ...
0
votes
2answers
84 views

What goes into a feature branch for CumulusCI

I'm looking to setup continuous integration, but getting stumped with our custom solution. I'm starting to look into CumulusCI managed by Salesforce Foundation. I'm having difficulty finding what "a ...
0
votes
0answers
89 views

Deployment of SiteDotComSites: Required field is missing: label

I've pulled all the metadata from a sandbox, and now as a sanity check, I'm trying to push it all back (via Force.com IDE) to the same sandbox. It all seems to work apart from siteDotComSites ...
0
votes
1answer
50 views

Delete Metadata Type using Metadata API

I have imported a few things from Excel file, using Metadata API namely Profiles, Roles, Fls,Custom Objects, Custom fields. To achieve rollback I want to delete all of them if insertion of any of them ...