Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
4 votes
Accepted

How do I retrieve the definition of a Custom Metadata Type using CLI?

To get the Custom Metadata Type itself (including its fields), you use the CustomObject metadata type. The API name just uses __mdt instead of __c. sfdx force:source:retrieve -m CustomObject:...
user avatar
  • 47k
4 votes
Accepted

Source format structure questions

The middle layers don't have names, that I've found, nor a description of how it should work. I've always used a "feature/subfeature" notation, such as "sales/opportunities", "...
user avatar
  • 430k
2 votes

Call wire method from another method in LWC

Data fetched from Wire Callouts are stored in browser cache. If you want to refresh the cached data please use refreshApex(). import { refreshApex } from '@salesforce/apex'; @wire(getRecord) ...
user avatar
  • 741
2 votes

Enable Opportunity Teams/Opportunity Split in scratch org definition file

If Opportunity Splits is enabled in the source org used for Org Shape, then it comes as enabled in the scratch orgs created using this source org. Note: Org Shape feature is still in beta https://...
user avatar
  • 41
2 votes

Mdapi deployment stucks in queue, even when there is no other deployments in progress

We also noticed a lot of deployment issues using salesforce source:deploy since 11 may 2022 to our Sandbox on instance CS88. Both deploying locally or via CI/CD using bitbucket. On status.salesforce....
user avatar
1 vote
Accepted

Uncovered lines not shown in sfdx deploy (check only) command anymore

Yes there was a change, you now need to include the --verbose flag to get the coverage. This happened several releases ago (not entirely sure when)
user avatar
  • 47k
1 vote

Mdapi deployment stucks in queue, even when there is no other deployments in progress

I believe this is a Summer 22 issue if your source environment is on that release. Nothing has officially been released from SF about this yet. We are seeing some orgs completely blocked and others on ...
user avatar
1 vote

How to open a scratch org created in another machine

I appreciate all the answers from experts. But here's another one: In Source Machine You can check the list of all ORGs that you have already used and their status too (i.e. Org is expired or not) ...
user avatar
1 vote

Call wire method from another method in LWC

Wire methods are called automatically and cannot be called directly. Simply accessing the data in the invoke method should already have the data you want to access.
user avatar
  • 430k
1 vote
Accepted

Source Format and decomposed files of object translation

You are right, wording is quite confusing in the documentation. As per my understanding: <field_name>.fieldTranslation-meta.xml This represents the translation of field label for a specific ...
user avatar
  • 17.5k
1 vote

Deploying destructive changes using SFDX with --sourcepath flag

We had the exact same issue, where we are using sourcepath for our deployments and we didn't want to use a package.xml for deployments. But using the create manifest command I managed to work around ...
user avatar
1 vote
Accepted

SFDX - CI - Named Credentials and environments

I found a workaround, i use .env files to store environement variables and i use a GitHub Workflow to substitute values in the metadata files, passwords/usernames/and tokens are stored as GitHub ...
user avatar

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