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

Search layout meta-data value is an Id value instead of field name

I created a new field on user in production environment and assign the field to Search Layout->User Lookup Phone Dialogs, after doing this I pulled the meta-data for this environment and checked the ...
3
votes
1answer
33 views

Can i Create Custom Button same like Create PDF button of Quotes?

when i click on Create Pdf then this pdf Preview open,i need exactly same functionality . i want to create button like Create PDF button of Quotes, i make same functionality for my custom object , ...
1
vote
1answer
37 views

Why is Salesforce metadata in XML format by default and not JSON? [closed]

When I explore the metadata from Salesforce page layouts, workflows or objects via an IDE, the metadata is all in XML format. Why is this? Why would the metadata not be in JSON, for example? Is XML ...
1
vote
0answers
13 views

Programmatically access selected Chart Colors on Picklist Values

Is there a way to find out, programmatically, if my users have selected chart colors for a picklist value? I'd like to write VisualForce (ideally in CSS, but anything is fine) that is consistent with ...
0
votes
2answers
29 views

Visualforce page creation

How can we Create a visualforce page which returns the list of Apex Classes, Triggers, Pages and Components based on the search entered in the text box.
0
votes
0answers
22 views

Removing all buttons on related lists across all page layouts through the metadata

I need to remove all buttons on related lists across all page layouts. I work with the metadata as this is a package with releases, so ultimately, I need the changes reflected in the .layout files. ...
0
votes
1answer
19 views

Updating field permissions on profile metadata file causes them to disappear from file upon save

I've created a custom profile for SF admins in our org. There are fields on every object that the profile doesn't have read access to because of field level security. Rather than going through the ...
1
vote
1answer
28 views

implication of metadata being in XML? [closed]

what is the implication of metadata being represented in XML? how is this useful to me as a developer?
0
votes
2answers
29 views

Turning a workflow on and off via apex?

I have a power user who reviews a bunch of workflow notifications. When she goes on vacation she wants to remove herself from the notifications and then add herself back. How Can I create an interface ...
0
votes
0answers
10 views

PersonalJourney.settings metadata

I recently retrieved entire org's metadata, and among other things found one settings metadata named PersonalJourney.settings, for which I can find exatly 0 results on Google. Can anyone shed any ...
0
votes
0answers
22 views

Use image from Static Resources as App Logo [duplicate]

Is it possible to reference an image in static resources as an App Logo, instead of having to reference a file uploaded to Documents? What I'm trying to do is remove any and all metadata dependencies ...
3
votes
1answer
117 views

General way to distinct between different Org types?

I need to distinct between different Org type as follows Production Org Sandbox Org Developer Org Demo Org (created by Salesforce, sometimes called SDO - or created by partners, sometimes called ...
1
vote
1answer
30 views

Need to Upsert Data Using Tool Batch Wise

I have order and contact object which have lookup from order to contact...I have Excel sheet which has order as well as contact information in it..I need to insert or upsert this excel sheet which ...
0
votes
1answer
37 views

How to (programmatically) mass update tab visibility for all profiles?

Salesforce's UI does not provide a great way to mass update profiles for many permissions. One example of this is tab visibility. Currently, we need to go through each profiles' object permissions and ...
2
votes
2answers
47 views

Retrieving permission sets

Does the metadata api returns the object permissions in the permissions sets? I want to retrieve the object permissions for standard as well as custom objects.
0
votes
1answer
39 views

Delete fieldset using Tooling/Metadata API (JSforce)

Tried this using the following 2 snippets; both failed. Snippet 1 conn.tooling.sobject('FieldSet') .delete({ DeveloperName: fieldsetName }, function(err, meta) { if (err) ...
0
votes
1answer
20 views

Creating metadata in client org

I have some packaged code that utilizes the SF Metadata API to create VF pages, as well as modify some object metadata. The code currently is not executing on the client side (but it's working fine in ...
1
vote
0answers
65 views

How to update custom objects metadata in mavensmate

I added some fields to custom object on the org and wanted to update its metadata in my project in mavensmate. I tried to click on this object and choose "Refresh from server", it doesnt work. Then: ...
2
votes
1answer
34 views

Is it possible to determine the visibleLines() value of a multipicklist programmatically?

For a multipicklist, the visibleLines attribute value is not available from internal Schema.DescribeFieldResult.class. Is there any other way to determine what this value is for a field ...
1
vote
0answers
31 views

Update standard object fields from custom object

is it possible to update number of fields of standard object from custom object using apex and visualforce. We cannot call the API within the org. But however could we use SOQL for DML transaction ...
2
votes
2answers
40 views

Different results for Schema information in different classes - why?

I'm experiencing a very odd behaviour in my SF org. I have two classes that have an identical method: /* works */ public with sharing class classA { public static void ...
1
vote
1answer
36 views

Create custom 'Tab Style Selector' using api

I have two questions relating to 'Tab style selector' or <motif>. I am trying to create a customTab using api and in doing so I need to put in what motif I want to use. For example, it could ...
0
votes
0answers
15 views

CustomTab creation with permission as 'Default on' using api

I created a customTab using the salesforce metadata api. However, it got created with visibility as 'hidden'. As far as I could figure out, the api does provide the functionality to change the ...
2
votes
2answers
117 views

Fetching picklist values based on record type

Is there any way to fetch picklist values based on a record type. I am wondering how salesforce does it. I am fetching list of record types via ForceTK, next i want to fetch picklist values based on a ...
1
vote
1answer
51 views

Preferrered Salesforce CI / deployment solutions

I am looking at various Salesforce CI / deployment solutions that at least: Should be able to deploy based on a custom selection of metadata changes and fixed set of changes (deploy on newest source ...
0
votes
0answers
50 views

Retrieve pick list values

Does the metadata api retrieve pick list values for standard fields? We are having a tough time in getting it done.
0
votes
1answer
55 views

Why does it say my VisualForce page 'does not exist or is not a valid override for action Edit?' It exists and is valid!

I am developing a managed package that has a VisualForce page for configuration. Before I packaged everything up, I made some buttons on the page that the user can click to automatically set their ...
2
votes
1answer
23 views

Permission on Profile on different section between 2 orgs

Issue Assume 2 different orgs: Org A and Org B. Trying to move the metadata from Org A to Org B but having some hickups. Mainly on the profile level where we have the following: Org A: permission ...
2
votes
1answer
27 views

Metadata for field visibility

I am new to salesforce, so my question may seem basic. Whenever we create a field, we set the visibility/read-only for various profiles. How do i get that info in metadata? I created a field on Case ...
0
votes
0answers
60 views

Where is the Event.ClientGuid field?

Following a failed Ant deployment, I have this error message: [sf:deploy] 1. objects/Event.object (Event.ClientGuid) -- Error: Could not resolve standard field's name. How come this standard ...
1
vote
1answer
35 views

How to deploy only part of object metadata?

I am trying to use Deploy to Salesforce button. From what I understand it is capable deploying the whole object, but I only need to to add field set to existing object without overwriting users ...
2
votes
0answers
37 views

Delete Approval Process Metadata api

I have a problem: I created aproval process using metadata api(metadata api description and examples here -> https://github.com/financialforcedev/apex-mdapi), but when I trying to delete approval ...
0
votes
1answer
21 views

Trying to export field accessibility metadata for all object fields

I'm trying to find a way to export the field accessibility metadata for all object fields. It appears like I should be able to do this with my linked objects within my SQL server database using dbamp ...
3
votes
1answer
20 views

Working by remote, without accessing to sensitive informations

Suppose one has to work on the structure of an org (for introducing some change), but it is not possible to access to the informations contained in the org itself for security reasons. For example it ...
0
votes
0answers
55 views

How to get fields list and metadata of an article type using apex-mdapi?

I was trying to get fields list and metadata of an article type (ArticleTypeName__kav object), since I can't get if from the Schema.getGlobalDescribe(). That what I was trying: ...
1
vote
2answers
59 views

how to handle schema changes in salesforce and notify other systems (push vs pull)

We have some of our objects and fields synced to other systems and one of the common concern we see is the changes to these objects / fields (specifically deleting them in salesforce) are impacting ...
-1
votes
1answer
26 views

Insert ProfileLoginIpRange field's data in salesforce using PHP

I want to insert ProfileLoginIpRange field's data in salesforce using PHP. So How can i do through PHP. So that whenever insert ip's from php, it should get updated in salesforce. Please Help me out.
1
vote
0answers
28 views

Invalid field name: Contact.Activities$What

I am using force.com IDE to migrate reports. For a report of custom type Contacts with Activities, I get error: "Invalid field name: Contact.Activities$What" The report type is already deployed ...
1
vote
1answer
61 views

How to deploy <RecordTypes> metadata?

I am trying to deploy RecordTypes from one sandbox to another. Here's my XML <types> <members>My_Opportunity</members> <name>RecordTypes</name> </types> ...
1
vote
2answers
49 views

Metadata API without SOAP

I am new in the Metadata APIs of Salesforce world, but they look interesting. I want to know if I can use Metadata APIs or basically create custom objects / fields etc. on any org without using SOAP ...
2
votes
1answer
110 views

“Error: Must specify the metadata file” reported with Force.com migration tool

I have brought down a copy of a Salesforce org from a Git repository. When attempting to deploy it to a sandbox I'm getting the following error (suitably anonymised): <sf:deploy ...
1
vote
1answer
46 views

Insufficient Access when Deleting Custom Object or Tab

I'm trying to delete an Object (not a record) in Salesforce. When using ANT I receive this message: 1. objects/myObject.object -- Error: insufficient access rights on cross-reference id. When using ...
2
votes
1answer
62 views

metadata retrieve

Need a small help on figuring out what I'm missing in my XML to retrieve all the fields in Case and Opportunity. So far i manage to get almost all but there is 2 standard fields that i can't pull. In ...
0
votes
0answers
17 views

Finding Metadata definition in documentation (ChannelLayout)

I have searched Google. I have searched the Metadata API documentation and the Object Reference documentation. I cannot find any information on the ChannelLayout subscription available via MavensMate. ...
1
vote
1answer
37 views

Get external id limit for an org

For my org I need to get the number of external Ids that I am allowed to create Some time back the limit was 3, now it is 7. I have hardcoded the limit to 7 now to check if Im hitting number of ...
1
vote
0answers
43 views

How do I update a RecordType's Name or IsActive status in Apex?

I currently have RecordTypes for a particular object (Obj__c) in a production org. I'm effectively trying to eliminate these as RecordTypes and planning a migration of that data into a picklist ...
3
votes
1answer
46 views

Identify salesforce schema changes

I am backing up Account, Leads, Opportunities and Document objects. Initial level backup is full where I download using BULK API and then incremental subsequently. If there is a change in the schema ...
1
vote
0answers
25 views

Different metedata element order for same component

Is salesforce still prone to spitting out metedata for two identical components (different orgs) in a different order?
3
votes
3answers
290 views

Generate Salesforce package.xml programmatically

I want to create the package.xml base on a selection of components that a user check for example apex classes, apex triggers, then export that package or do something else. I don't care about the ...
0
votes
0answers
42 views

Metadata API Case-Sensitive?

is the Metadata API Case-Sensitive? Scenario: Take for instance the following scenario: a multi-org strategy where all development is being done on a Sandbox related to Org ABC. From that Sandbox ...