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:...
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", "...
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)
...
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://...
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....
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)
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 ...
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) ...
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.
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
salesforcedx × 2471salesforcedx-cli × 492
scratch-org × 297
apex × 202
lightning-web-components × 198
vs-code × 186
deployment × 178
sfdx-plugin × 135
unlocked-package × 122
managed-package × 104
community × 87
metadata-api × 78
lightning × 72
lightning-aura-components × 63
metadata × 59
visualstudiocode × 58
package × 56
javascript × 42
git × 41
scratch-org-definition-file × 41
cli × 38
unit-test × 35
cicd × 35
visualforce × 34
sfdx-error × 33