Skip to main content
22 votes
Accepted

How do I retrieve Lightning Web Components using Ant Migration tool or mdapi:retrieve command from SFDX?

The new Metadata API component is called LightningComponentBundle The following XML code should be added to package.xml: <types> <members>*</members> <name>...
Patlatus's user avatar
  • 17.2k
13 votes
Accepted

Parallel Testing with Metadata Deploy

Tests always run in serial during deployments; this helps avoid spurious errors because of CANNOT_LOCK_ROW errors. This is true for the migration tool, package installs (when applicable), and change ...
sfdcfox's user avatar
  • 495k
12 votes
Accepted

Run Specific Tests with Ant Deploy specified by command line or file

Was able to do this using ant's scripting capability. Now you can do ant deploy -Ddir=src -Dtests=Class1,Class2,Class3 <target name="deploy"> <script language="javascript"><![CDATA[ ...
Ralph Callaway's user avatar
11 votes
Accepted

Opportunity StageName metadata retrieve in API 39

there is a dedicated metadata for such standard picklist field StandardValueSet mappings between field names and standardvalueset names can be explored here so to retrieve/deploy Opportunity....
Oleksandr Berehovskyi's user avatar
8 votes
Accepted

We don't support this API version. Use API version 32.0 or later to retrieve this process

As it turns out, I needed to update my package.xml version to 38.0. After doing so, the process retrieved fine. I cannot say for sure but I believe the issue was due to the offending process being ...
Swisher Sweet's user avatar
8 votes
Accepted

GlobalPicklist no longer a valid MetaData type in 38.0?

Yes, GlobalPicklist has been replaced by GlobalValueSet. This is outlined in the relevant documentation and was mentioned in the release notes. Streamlined Metadata API for Picklists We bring you ...
sfdcfox's user avatar
  • 495k
8 votes
Accepted

Retrieve/Deploy a custom metadata type's list view?

List view fetching for custom metadata types are bit tricky. If you retrieve a List View on a Custom Setting/Custom Metdata along with the Custom Setting/Metadata object when using Metadata API ...
Pranay Jaiswal's user avatar
7 votes

Entity type 'ApexClass' is not available in this organization

This could be a profile issue. Make sure your user's Profile has the "Author Apex" permission.
Haphazard's user avatar
  • 331
7 votes
Accepted

ANT Force.com Migration Tool and Encrypted Password

You could do some sort of encryption that you can decrypt as an ant target task - like a base64 decode or something. The problem with that is anyone who's savvy enough to be able to look in the ...
Stephen's user avatar
  • 1,551
7 votes
Accepted

are there alternatives to Salesforce ANT

Generically speaking, yes, you can use almost any modern CI along with any modern build system and any modern code versioning system. I don't have specific instructions available for you, but assuming ...
sfdcfox's user avatar
  • 495k
7 votes

How To Retrieve LeadConvertSettings with Force.com Migration Toolkit

In package.xml file with 39 version of API. It works <types> <members>*</members> <name>LeadConvertSettings</name> </types>
Oleksandr Berehovskyi's user avatar
7 votes
Accepted

What version of ant-salesforce.jar am I using?

I have found some custom way, how you can detect your API version of ant-salesforce.jar. jar is an archive file, so it is possible to restore this file into components. Use WinRar or another archiver-...
Oleksandr Berehovskyi's user avatar
6 votes

Custom Field Definition ID: bad value for restricted picklist field: RecordType

I have the same error for scratch orgs on some standard objects (Account, Contact, Lead, and Opportunity). As a workaround, I found that after removing "recordTypeTrackHistory" from the ...
Thomas Minney's user avatar
6 votes
Accepted

Metadata Migration Best Practices

There are two basic frameworks elucidated on Trailhead for how to do development across orgs: the Org Model and the Package Model. Both models should use source control (such as Git and GitHub) as a ...
David Reed's user avatar
  • 93.2k
5 votes
Accepted

Error: Unknown user permission: ManageCssUsers

That permission corresponds to the "Edit Self-Service Users" checkbox on the profile. In my case, enabling communities for my org added that permission option. References: https://help.salesforce....
Alejandro De Gregorio's user avatar
5 votes

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

Bit of an old question, but since there's no answer yet, I'll post my experience. I got the same message when I tried to deploy a field from sandbox A to sandbox B. The field was named Nationality__c,...
user254875486's user avatar
5 votes
Accepted

What is the best way to migrate code from external consultant?

Manually moving is not scalable and there will be additional challenges like everytime your external developer org needs to sync the changes you do to your sandbox organisation . The scalable and ...
Mohith Shrivastava's user avatar
5 votes

Standard Picklist Fields in Metadata API v39

You can still get the picklist values for standard fields using the StandardValueSet. To get the Account.Type field values, put this in your package.xml: <types> <members>AccountType&...
user254875486's user avatar
5 votes
Accepted

Migrating Dashboard - component missing indicatorLowColor attribute

I managed to solve this for now, but it's far from perfect. Basically, after I pulled the dashboard metadata from source org, I opened it and found the <componentType>Table</componentType>...
smukov's user avatar
  • 5,593
5 votes
Accepted

How to get dependent classes for a trigger?

You have not specified if you want this programmatically, so my guess is that you can get all dependencies with change sets. Create a change set, and then add your trigger on it. Click on "View/Add ...
Renato Oliveira's user avatar
5 votes
Accepted

What is the best way to mass update the field labels of a custom object in Salesforce?

An IDE is arguably the easiest way to edit fields. Simply pull down the object, edit all the labels, then save the changes. You can do this in MavensMate, Force.com IDE, and others that support the ...
sfdcfox's user avatar
  • 495k
5 votes
Accepted

LIMIT EXCEEDED during ANT retrieve call

Your package.xml file probably includes a large number of wildcard entries and is executing against a large, heavily customized environment. The Id of the specific metadata entry that precipitated the ...
David Reed's user avatar
  • 93.2k
5 votes
Accepted

Can't retrieve non-customizable CustomObject named: Product

The API name for the Salesforce Product object is Product2. Put that in your package.xml and you should be able to retrieve the metadata. Note that the same is true of Pricebook (Pricebook2), but not ...
David Reed's user avatar
  • 93.2k
4 votes

Generate complete package.xml for Org

If you are using vs code there is an extention to build package.xml using point and click Salesforce Package.xml generator extension for VS Code https://marketplace.visualstudio.com/items?itemName=...
Vignaesh Ram's user avatar
4 votes

Salesforce Continuous Integration : Only components in the same namespace as the organization can be created through the API

You have to either remove the managed package items, or install the managed packages. You can use InstalledPackage to help automate the process if you want to go down the path of installing ...
sfdcfox's user avatar
  • 495k
4 votes
Accepted

Issue: Long pending time when deploying to develop org

Sadly, this is a Known Issue with no scheduled resolution date: https://success.salesforce.com/issues_view?id=a1p3A000000enp0QAA For posterity: Summary: Intermittent slowness observed on NA35 ...
daveespo's user avatar
  • 2,673
4 votes
Accepted

Jenkins Salesforce CI server setup

You have number of options here 1.Using EC2 EC2 is from amazon and have seen number of enterprises using EC2 2.Using Google Cloud Containers https://cloud.google.com/container-engine/ 3....
Mohith Shrivastava's user avatar
4 votes
Accepted

ANT migration tool - fail to deploy to sandbox

Translation Workbench is not enabled. You need to enable in Setup under the Translation Workbench menu. See Enable and Disable the Translation Workbench for more details. To get started: From Setup, ...
sfdcfox's user avatar
  • 495k
4 votes

How to get dependent classes for a trigger?

One programmatic way to do this is to use the Tooling API's SymbolTable. This complex Type includes the externalReferences. The externalReferences will detail any dependencies that the ApexClass or ...
Daniel Ballinger's user avatar
4 votes
Accepted

Ant migration tool edits package.xml?

If package.xml is the source, and is in the destination/retrieve folder, it'll be updated. Otherwise, if it's elsewhere, or it has a different name, it won't be. This is a part of the metadata API, ...
sfdcfox's user avatar
  • 495k

Only top scored, non community-wiki answers of a minimum length are eligible