New answers tagged salesforcedx
0
votes
Accepted
.SFDX folder creates subfolder 246 and many subfolders which are totally useless
These files are not useless. They are files used to autocomplete built-in Apex objects and functions. For example, CalculateTaxRequest is for Connect.CalculateTaxRequest. If you want to be able to ...
2
votes
Accepted
updating from sfdx-cli to sf
This will be taken care by sf(v2) as mentioned in the official documentation Move from sfdx (v7) to sf (v2). Once you migrate successfully, both sf and sfdx commands will work as sfdx is now aliased ...
0
votes
Upload Metadata into Salesforce from GitHub
Andrew Fawcett's Deploy to Salesforce does exactly that. It's not the only option, but certainly one of the easiest. Other than that, for any arbitrary repo, just clone the repo locally, then use the ...
1
vote
Enable SharedActivities automaticaly for new scratch org
Scratch orgs now support Sharing Activities, this can be enabled by adding SharedActivities into your features section of your scratch org definition.
1
vote
Accepted
How can I create 2GP package version including FSL permissions
If your package is not inherently dependent on FLS you should check out the concept of unpackaged metadata.
This allows you to have metadata in a separate package directory that the package's unit ...
0
votes
Problem with PlatformEventSubscriberConfig user change being ignored
Solution in my Case:
Open Setup > Platform Events
Open Event Class with PlatformEventSubscriberConfig
At Subscriptions click on Manage
Suspend Subscription and activate it again.
Now new config ...
0
votes
Accepted
sfdx cli - Unable to create scratch org | Error authenticating with JWT- invalid assertion
We have uninstalled sfdx cli and installed it again. Resolved!
-3
votes
How to authorise a SSO org in sfdx?
This worked for me for Connecting SF org and i have SSO enabled on SF login.
If you want to connect to a custom domain org, you can use the URL https://<yourdomain>.my.salesforce.com, where <...
0
votes
Run specific apex tests during "sfdx force:source:deploy"
Due to updates in SF CLI toolkit, Adding new format for deployment using SF toolkit.
Syntax: sf project deploy start -d "relative file path" "relative file 2 path" -l ...
0
votes
Accepted
force:apex:test:run throws error in CI: "No tests were able to be executed on the org. Please verify that the source code has been pushed correctly"
About 12 hours later and the error is gone.
No changes were done to code/org settings from my side.
Those are the mysterious ways of Salesforce, I guess :)
0
votes
Accepted
Creating a second generation managed package version gives no error but doesn't create the version
The problem was that the @salesforce/plugin-packagin needed to be installed globally....
npm install -g @salesforce/plugin-packagin
0
votes
Error "filterlanguage: Invalid value specified: 1." when trying to create sfdx package version
Need to include translation workbench in the scratch org definition
"settings": {
"languageSettings": {
"enableTranslationWorkbench": true
}
}
1
vote
Accepted
Why can't I authorize my sandbox in my SFDX environment?
As with this question, the answer was a circular alias reference. I had tried to sf alias unset for my MySandbox alias, but there was also an alias from the user name to the MySandbox alias, and ...
0
votes
compactLayout removed from .object-meta.xml after "sf project retrieve start" or right click "SFDX: Retrieve source from org" 2GP
Solved my own problem. Posting this in case anyone else experiences something similar.
It turns out my .forceignore file had a line for **layouts which unsurprisingly ignores layouts when uploading ...
0
votes
How the field BusinessHoursId in Case record gets populated
you could populate the business hour manually during case creation simply by populating the Business Hour lookup field. In case you want to automate the assignment, one way in which salesforce allows ...
0
votes
SFDX: Retrieve Source from Org failed to run
I had an issue with this as well and the solution ended up being simple, I had selected too many items to pull from my Org. I cleaned up my package.xml by only selecting what I needed (classes, flows, ...
0
votes
Authorizing Dev hub from Force.com IDE2 redirects to Localhost after Authorizing Dev Hub Org
I was facing this issue because of my company VPN. On other environment like on personal PC I never got this issue. This similar issue I was facing with VS Code. The cause of issue might be different ...
0
votes
sfdx Retrieve Custom object from one org to another org
Or if you want to use the new sf command to retrieve any custom object:
sf project retrieve start --metadata CustomObject:namespace__MyObjectName__c
0
votes
Accepted
Unable to retrieve my managed package zip from my package development org (developer org - devhub)
You are mixing up two different package development methodologies.
sf package list --target-dev-hub myDevHubUser
is for developing a second-generation package. 2GPs are source-driven. There is no ...
0
votes
Accepted
Does it make sense to use ProfilePasswordPolicy metadata in an sfdx project?
Duh. The answer is "yes it does". SFDX works as expected.
The new SFDX command structure includes his informative "preview" option that explains the root of my problem:
sf project ...
Top 50 recent answers are included
Related Tags
salesforcedx × 2830salesforcedx-cli × 540
scratch-org × 319
apex × 245
lightning-web-components × 242
vs-code × 227
deployment × 221
sfdx-plugin × 162
unlocked-package × 132
managed-package × 131
metadata-api × 93
community × 91
metadata × 76
lightning-aura-components × 69
lightning × 69
visualstudiocode × 64
package × 63
sfdx-error × 57
cli × 51
javascript × 49
scratch-org-definition-file × 49
cicd × 48
git × 47
unit-test × 39
2gp × 39