New answers tagged

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 ...
sfdcfox's user avatar
  • 481k
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 ...
Saroj Bera's user avatar
  • 14.6k
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 ...
sfdcfox's user avatar
  • 481k
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.
Deployment Failure's user avatar
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 ...
Phil W's user avatar
  • 34.3k
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 ...
TheShadow's user avatar
  • 276
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!
Sagar Thoriya's user avatar
-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 <...
user3444999's user avatar
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 ...
Akshay Poddar's user avatar
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 :)
Andrei Migachev's user avatar
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
nstuyvesant's user avatar
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 } }
Thomas Minney's user avatar
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 ...
Chuck's user avatar
  • 877
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 ...
Andy's user avatar
  • 23
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 ...
Hemant Shukla's user avatar
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, ...
protivakid's user avatar
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 ...
sfdeveloper's user avatar
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
SamuelCarreira's user avatar
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 ...
David Reed's user avatar
  • 92.1k
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 ...
Keith C's user avatar
  • 135k

Top 50 recent answers are included