Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [metadata]

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.

Filter by
Sorted by
Tagged with
1
vote
2answers
322 views

how to deploy file with brackets in the name using workbench/ant package xml

I have to profile layouts named with brackets in the name. When retrieved the package xml have them listed as: <members>My layout (version 1)</members><br/> and the content of the ...
1
vote
0answers
138 views

How can i get metadata for dataset objects in salesforce wave analytics?

I m trying to find a way in salesforce wave analytics to get the metadata of dataset object dynamically. Since user have a flexibility to choose either Salesforce objects or to upload a CSV file to ...
8
votes
1answer
492 views

Failed to retrieve related layout via metadata namespace

Wondering if anyone has actually tried Metadata namespace. I have tried the following code in anonymous block in my sandbox: Metadata.layout attachmentLayout = new Metadata.layout(); List<String&...
10
votes
1answer
2k views

Deploy Metadata from Non-Certified Package Versions via Apex - what does it mean

In Summer 17, there is a new checkbox in Apex Settings: Deploy Metadata from Non-Certified Package Versions via Apex. I tried to google what does certified package mean but got no luck. Does it mean ...
0
votes
1answer
22 views

The best way to write a script that takes data from one field and appends it to another

I have a house number field that if it contains data, the data needs to be be moved (appended) to another (street address) field. This is a one-time operation that needs to be done to all the records ...
2
votes
1answer
2k views

Translation Workbench CustomObjectTranslation Metadata

I'm trying to retrieve the translations in translation workbench to add to Stash. My sample .xml file is below. <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/...
1
vote
1answer
987 views

Migrate Custom metadata type

I need to migrate Custom Metadata type using a package.xml. Can someone please let me know what should I put to get the metadata along with data successfully get migrated? Suppose Custom Metadata ...
4
votes
0answers
309 views

Deploy Apex Class to another Salesforce ORG via Metadata API?

So I've been looking around to see if there is a way to push Apex Classes via the Metadata API, and I'm a little confused at the documentation. I've used the Eclipse plugin before, so I know that you ...
0
votes
0answers
82 views

Continuous Integration: How To Get Over Common Ant Deployment Issues Which Often Require Manual Intervention

I've deployed many times to SFDC using the Force.Com Migration Tool & Ant. In many cases I often end up having to undertake manual steps to get around issues. An example being Flows. Flows cannot ...
2
votes
1answer
354 views

Is there a way for describing a List View and determining columns within APEX (without metadata service api)?

I've been reviewing the very promising APEX Metadata Namespace in Summer '17 (API v40.0) - Release Notes (Preview) But I'm unable to find any reference for retrieving ListViews of any Object. I'm ...
1
vote
1answer
94 views

Can someone explain me what metadata is in plain simple terms from the perspective of SalesForce

Can someone please explain me in plain simple English. https://trailhead.salesforce.com/trails/force_com_admin_beginner/modules/starting_force_com/units/starting_understanding_arch
1
vote
1answer
246 views

Code Coverage Issue while validation

How to find each class coverage for that current jobId which has been validated with only error, code coverage?
2
votes
1answer
285 views

Metadata fails to download in FORCE.COM Eclipse IDE due to exceeding 600MB limit

I am attempting to download my Salesforce Sandbox into the FORCE.COM Eclipse IDE, but it fails after about 30 minutes and gives the error message: LIMIT_EXCEEDED: The retrieved zip file exceeded the ...
2
votes
1answer
222 views

List of names of standard fields as seen in report/layout metadata

If you look at the metadata for a related list in a page layout, you might see something like this: <relatedLists> <fields>Nopulous_Gateway__c</fields> <fields>...
-6
votes
2answers
3k views

Accessing the Metadata API from APEX [closed]

What is the simplest & easiest way available to access the Metadata API from APEX (accessing the current Org) ?
6
votes
1answer
73 views

FieldPermissions.Field contains strings longer than described maximum

I'm investigating an issue where values of one of the columns on the "FieldPermissions" object get truncated when we sync them to a DB. The column in question is called "Field", and it contains the ...
6
votes
2answers
5k views

Standard Picklist Fields in Metadata API v39

Standard Picklist Fields were renamed in the Metadata API from "CustomField" (v37) to "StandardValueSet" (v38). Now, in v39 they are back to "CustomField", but when you retrieve one of this Standard ...
0
votes
0answers
26 views

Reports Metadata using Apex

I need to get the metadata of the reports using apex in jason or XML format. Can anyone help me to achieve this without using metadata api. Thanks
5
votes
3answers
2k views

Unknown user permission: ManageSandboxes

Using the Force.com Migration Tool (Ant) v1.9.4 to deploy from one sandbox to another both on Spring '17 results in 21. profiles/Admin.profile -- Error: Unknown user permission: ManageSandboxes 22. ...
0
votes
1answer
66 views

Where can I find 'Bookings' Data

I am developing for salesforce and was told to look up a "Bookings" table in Salesforce. It is supposed to contain information such as the sales amount for an opportunity or some related transaction ...
1
vote
2answers
1k views

Global Value Set

I have created a GlobalValueSet using salesforce metadata api. Now I am creating a new field on a existing object using SF metadata api which is going to use this GlobalValueSet, but somehow its ...
1
vote
0answers
127 views

Metadata/Tooling API - Identify orphaned email alerts (workflow actions no longer associated to an workflow)

I was looking to cleanup some of our orgs metadata and identify the email alerts that do not have an active workflow. Is there a way, besides parsing the metadata and finding metadata tag matches on ...
0
votes
1answer
267 views

Describing Objects through schema

Is there any way i can write following information from Org. SF-Object Name SF-Field Name SF-API Name SF-Type SF-Length SF-Possible Values I intend to write them into csv files. I was trying ...
1
vote
1answer
2k views

How to Update Picklist values along with record types using metadataservice?

I have used the following code to add new picklist values to the picklist field called "Tags__c" in contact object. The code works and the new picklist values are getting created successfully but they ...
3
votes
0answers
81 views

Lightning Experience: Can standard Listview Charts be shared and deployed as Metadata?

I've created several Charts in Standard Listviews on Tabs in LEX. So far they work as expected and look like this: Now logging in as an other user I've noticed that the charts are not available. Only ...
0
votes
1answer
230 views

Use access token from Rest API to access Metadata?

Can we retrieve Metadata like apex classes, VF pages, WF rules rtc... from different org via rest api while I have the access token to that Org? Or else there are any other way to access those ...
0
votes
1answer
432 views

Is it possible in salesforce to fetch All Buttons (Standard objects and Custom) meta deta

Is there any way i can fetch meta data for custom button. I want to query all values for custom button to check if there is String hardcoded in that .
1
vote
1answer
305 views

Unable to deploy edited Metadata using Mavensmate (Sublime Text)

I'm new to using mavensmate and deploying metadata using the metadata API in general but I was wondering if you could guide me in the right direction or confirm that this is an issue: I've created a ...
0
votes
2answers
616 views

How to retrieve workflows associated to an Object , using metadata API?

I want to search for all the workflows associated with an object. can someone please help me with this. How this can be done using metadataservice.cls that has been generated using WSDL ? Which ...
0
votes
1answer
37 views

Is there any other way than Metadata API how custom application to custom tabs assignment can be retrieved?

Is there any other way than Metadata API how custom application to custom tabs assignment can be retrieved? Can this be done through Apex code? SOQL? Can this be done through SOAP API? Can this be ...
0
votes
1answer
246 views

Track User online, away and offline status in salesforce

We have a need to track the activity of the agents using salesforce. In other words, we need to track the hours the agent has been online and away per day in salesforce. Is there any OOB functionality ...
3
votes
1answer
2k views

GlobalPicklist no longer a valid MetaData type in 38.0?

Trying to migrate a global picklist using a 37.0 package.xml, but if I change the version to 38.0, I get an error that GlobalPicklist is not supported in API version 38.0. Anyone notice it?
1
vote
1answer
592 views

Can't deploy reports with workbench

I've retrieved some reports from my org, made changes to them and am trying to deploy them again through workbench. Everything went well until I try to deploy my zipped directory containing the ...
0
votes
2answers
757 views

Shortcut to fetch all formula field which have hyperlink in full ORG

Is there any way like script or soql to fetch to all formula field to fetch hyperlink in org. As salesforce is looking for java script disable in hyper link, we are looking for fetching all formula ...
1
vote
1answer
2k views

Deleting specific picklist value by using MetadataAPI

Is there any way to delete specific picklist value by using Metadata API I've created below code by using MetadataService Class which you can find from here but it returns picklist values as null. ...
0
votes
0answers
45 views

Access Sandbox meta data from a different Org

I want to access Metadata of a salesforce org (either developer or sandbox) from another salesforce org. I think I can use oAuth 2.0 to access it. basically what expected here is the user to access ...
0
votes
1answer
194 views

how to report on date a field was created on?

Is there a way (easy) to report on the creation date of each field of each object in Salesforce? For example, I want to see a list of all the fields for the Account object along with the date the ...
2
votes
2answers
107 views

Custom Field as Name Field

How do i set a custom field to be the name field of a particular custom object? So far, I have created a custom object and while doing so I have create a namefield by using: <...
1
vote
0answers
306 views

How to retrieve data using METADATA API and to change profile settings

What is the metadata endpoint url to get retrieve custom field/object/tab data? For ex, I have been using this url - https://<instance_url>/services/Soap/m/28.0 to create custom objects. ...
2
votes
2answers
66 views

Is there any way to map between Standard Profile Name to its matching metadata file name?

Is there any way to map between Standard Profile Name to its matching metadata file name ? I.e. 'System Administrator' should be mapped to Admin etc. Thanks.
0
votes
1answer
119 views

Salesforce Profile/Custom Tab Metadata API

i have been trying to push custom tab and data using soap/metadata api. But couldnt change the permission set and field permissions. URL:https://na35.salesforce.com payload: <?xml version="1.0" ...
11
votes
3answers
2k views

Updating an object API name when referenced by code - impossible!

Salesforce makes this process very difficult, and despite advice given by great guys on here I have become incredibly frustrated trying to make this work. I am trying to change a custom objects API ...
2
votes
0answers
91 views

How Long To Re-Index External Id Field? [closed]

I have a Custom Object in salesforce which has 50k+ records with one of the field as external id. I accidentally unchecked External Id and saved it. Now when I recheck External Id and save, it says ...
3
votes
0answers
1k views

Metadata Deployment Stuck in the Pending Status

I am attempting to deploy some metadata configurations from a production instance to a dev instance. I am using SublimeText/MavensMate to handle the deployment. I can see the deployment arrive ...
2
votes
1answer
127 views

What is special about this lookup field?

When using the Social Customer Service package, I noticed that the Parent field on the Social Post object had a unique lookup I hadn't seen anywhere else in the system. Upon further investigation I ...
2
votes
1answer
121 views

Can I Read A Formula Field's Logic With Apex?

I have a test class that iterates through a bunch of "educational programs my company offers" and makes sure that each program is properly embedded in our org's schema. (I've got a utility class that ...
1
vote
2answers
191 views

Deploying metadata From Production to Developer Edition

I'm trying to learn the smooth of pushing the metadata from production to developer edition or any other sandbox. I have installed MavensMate (MM) on my computer and I get the latest metadata from ...
0
votes
0answers
429 views

Retrieve metadata of EmailTemplate HTML and Text version

I'm trying to fetch an EmailTemplate using metadata api, file-based retreive() call. The request is being made using SOAP api to make the retrieve request through javascript. I'm getting only the ...
4
votes
2answers
5k views

How to query the 'Metadata' field from 'FieldDefinition' with SOQL?

I tried the following SOQL query: select id, DataType,NamespacePrefix, DeveloperName, Metadata from FieldDefinition where EntityDefinition.QualifiedApiName = 'Account' AND DurableId ='Account....
0
votes
1answer
775 views

Remove custom field or workflow alert via ant migration tool

Is it possible to remove workflow alerts or custom fields via ant migration tool? If yes: how do I do that? <types> <members>Convention_Approved_Email_Send</members> <...