Questions tagged [salesforcedx-cli]

Questions relating to the `sfdx` binary that is supplied as part of the tools suite for Salesforce DX.

Filter by
Sorted by
Tagged with
4
votes
0answers
25 views

sfdx-cli can output json. Is the output documented anywhere?

Running a sfdx command with the json flag will return different json output depending on the command. Here is an example of the kind of output returned from sfdx force:package:version:create ... --...
0
votes
0answers
11 views

Field Validation Error while deploying Einstein Dashboard

I have a dataflow called "Market_Dataflow". While deploying this dataflow in lower environments, it got validated and deployed without any error but while deploying into Production, we were ...
0
votes
0answers
12 views

Permission ViewAllData depends on permission(s): ViewAllForecasts

Getting this error while updating the Permission Set with "View All Data" permission through SFDX/ScratchOrg. NOTE: We do not have forecast enabled.
0
votes
0answers
20 views

XML format for retrieving the forecast type in Forecast settings [closed]

XML format for retrieving the forecast type in Forecast settings. Please find the below code <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce....
0
votes
1answer
15 views

Issue with installing the SFDX CLI in Linux

I had some issues with my SFDX CLI as I was not able to use SFDX commands from the terminal of my VS Code in Linux. So I looked up on the web and as part of one solution that I found on web, I was ...
0
votes
1answer
25 views

Deploying to Scratch Org in Jenkins pipeline with ant

I have a Jenkins script to generate a scratch org, make a user for that scratch org along with a password. When I try to deploy using that username and password I get build/lib/deploy.xml:26: Invalid ...
0
votes
0answers
65 views

Not able to invoke, Java, Javascript or Typescript function locally (MAC OS)

I have updated my sfdx to latest version nagendrasingh@Nagendras-MacBook-Pro javascriptfndemo % sfdx version sfdx-cli/7.121.8 darwin-x64 node-v14.18.0 Ny node version and npm version both are good ...
0
votes
0answers
29 views

Queue Deployments Using DX Requires Setup in UI

I have a queue for new opps that looks like this: <Queue xmlns="http://soap.sforce.com/2006/04/metadata"> <doesSendEmailToMembers>true</doesSendEmailToMembers> <...
0
votes
0answers
100 views

sfdx force:org:list working with cmd but not working with powershell

I have weird issue. i am trying to execute this command. sfdx force:org:list this command is working fine in cmd.exe but it fails in powershell in cmd.exe == Orgs ALIAS USERNAME ...
0
votes
1answer
37 views

sfdx problem on wsl - CMD.EXE was started with the above path as the current directory. UNC paths are not supported

I try try install SFDX on my WSL (Ubuntu 20.04 LTS on WSL with Windows 10). Looks like the version 7.119.2 has been installed, but when referencing sfdx, it doesn't hit the one installed on Linux, it ...
1
vote
1answer
27 views

2GP Package Information

I am creating 2GP unlocked packages, no issue. I have created a DevHub, completed all my pre requisites (Enabled Dev Hub, 2GP), attached namespace org to the devhub. When I am trying to get the ...
3
votes
1answer
42 views

How can I see all my active Orgs in the VS CLI and remove the expired ones?

So I want to remove the expired Scratch-Orgs and get a list of my valid Orgs including the scratch orgs?
3
votes
2answers
124 views

How can I see the sfdx version Number in the cli?

So I am trying to see the exact version of the sfdx I am using any hints?
0
votes
0answers
27 views
2
votes
2answers
64 views

Update active flow via sfdx

Is it possible to change the status of an active flow to inactive via sfdx? I tried it with sfdx force:data:record:update and following query: SELECT ActiveVersionId, MasterLabel, DeveloperName from ...
3
votes
0answers
251 views

Payload Error - Unknown type name 'CustomFieldTranslation' specified in package.xml

I want to deploy / retrieve CustomFieldTranslations for any object to a Sandbox, but receive an error: Unknown type name 'CustomFieldTranslation' specified in package.xml I tried to deploy via path, ...
4
votes
2answers
163 views

Show Changed But Undeployed Files in VS Code

I'm working on a Lightning App site where I'm developing locally using Visual Studio Code, and then deploying my changes to my default org (I'm using the Salesforce CLI Integration extension). Is ...
0
votes
0answers
42 views

Dynamic rich text component not letting the field(checkbox) used in it's filter to but ineditable

Requirement: Display a message/pop up/banner on Lead and Account record pages to make it evident that Lead or Account are of particular department. There is a checkbox which could be used to identify ...
0
votes
1answer
117 views

How to export import JSON data for objects with record types using sfdx command [duplicate]

I wanted to export the objects data with record types from one scratch org to another scratch org. I tried with this command: > sfdx force:data:tree:export -q c:/soql/cObject.soql -u SourceOrg -p -...
1
vote
1answer
45 views

SFDX command in VS Code have improper

I use the Ctrl+Shift+P to run a Create a new Apex class command. However, I the a pop-up with an error message saying that command sfdx.force.project.create was not found. The problem is that somehow ...
0
votes
1answer
42 views

How is one to organize metadata under unpackagedMetadata setting specified folder in sfdx-project.json?

I want to build a package version of a third party library (Reltio) but I have a some errors that are popping up when I try to create a package version: Request in progress. Sleeping 30 seconds. Will ...
2
votes
1answer
164 views

When running sfdx force:apex:test:run we get the error "Your request exceeded the time limit for processing. connection was cancelled here"

We have test classes that we are running from the Salesforce CLI. If we run them from the Salesforce UI, the tests all pass fine. When running the same test classes from the CLI, however, most of the ...
2
votes
1answer
1k views

ERROR running force:org:create: The requested resource does not exist

When I run this command I get the following error. sfdx force:auth:web:login -d -a TestDevHub sfdx force:org:create -a TestDevHub -s -v <developer_email> edition=Developer The first command is ...
0
votes
0answers
28 views

Lookup field not updating using force:data:tree:import in SFDX CLI

I have two custom objects Client and Brand. Brand has lookup of Client object. I need to pull data from one sandbox org and push these data in scratch org. Using sfdx force:data:tree:export I am able ...
0
votes
2answers
30 views

How to import variables into static resouce .js files?

Example There are 3 .js scripts / files as a static resource. First.js Second.js CommonVars.js I am doing something like this in CommonVars.js CommonVars.js var myCommonVars = { NAME : 'STACK', ...
0
votes
1answer
112 views

ERROR running force:source:retrieve: Cannot read property 'id' of undefined VS Code

I am trying to retrieve the Salesforce metadata in VS Code with the below command, sfdx force:source:retrieve -x ./manifest/package.xml This was working fine prior to today, but suddenly I have ...
0
votes
1answer
81 views

CLI path is set to C:\Program Files but VS code is reading it from AppData\Local\sfdx\client\bin\ and it's causing errors

"C:\Users\me\AppData\Local\sfdx\client\bin\..\7.110.0-85b006b\bin\sfdx.cmd"' is not recognized as an internal or external command, operable program or batch file. can i just delete the ...
1
vote
2answers
52 views

How to make VScode auto fix missing semicolons Apex?

Hey does anyone here know how to make VSCode auto fix missing semicolons instead of just show where it is missing? I Started setting up Prettier and it will format apex code but not replace double ...
1
vote
0answers
57 views

Retrieve source in manifest from Org

I'm trying to retrieve classes from my test org using package.xml. Recently the operation fails immediately with the following error; 10:35:14.995 Starting SFDX: Retrieve Source from Org Socket is ...
0
votes
0answers
42 views

Unable to execute sfdx force:lightning:test:run -a jasmineTests.app in my scratch org from CLI on windows system

I am unable to execute this command sfdx force:lightning:test:install in my scratch org from CLI. It gives a warning. sfdx force:lightning:test:install Result: Warning: force:lightning:test:install is ...
0
votes
0answers
28 views

cannot push code to scratch org because of error related to managed object [duplicate]

all From last week, we run into some issue that our DX build cannot push code to a scratch org for below errors. Error force-app/main/default/objects/AAMeta__mdt/fields/VVVV__c.field-meta.xml ...
0
votes
0answers
25 views

Issue while creating scratch org

I am facing an issue while creating a scratch org, Steps i followed is: Initially i have installed vscode, salesforce cli & extensions in vscode, configured their bin path in environment variables....
0
votes
1answer
17 views

Use current version of manage package in org when deploying via Salesforce CLI

I have this folder/file in my dx project: foundation/main/default/installedPackages/HealthCloudGA.installedPackage-meta.xml The file HealthCloudGA.installedPackage-meta.xml contains the following: &...
0
votes
1answer
55 views

Value of sfdcLoginUrl in sfdx-project.json doesn't seem to matter

I'm working on a Salesforce Lightning App project in Visual Studio Code (w/ Salesforce extension), and when I right click on a file and choose "SFDX: Deploy This Source to Org", it deploys ...
0
votes
1answer
157 views

Avoid strange error 'The "path" argument must be of type string. Received null', when fthe path is not null

When I execute the command sfdx force:source:deploy -u o14 -p CPQFields I receive an error The "path" argument must be of type string. Received null, despite the path CPQFields is not null ...
0
votes
1answer
27 views

How to ensure that static resources created by me in my sandbox are pulled to my local IDE (IntelliJ)

I tried to pull the static resources using Illuminated cloud as well as through sfdx commands, but can not see the static resources created by me in the static resources folder (in the local IDE)
4
votes
1answer
150 views

Is there a way to deactivate a Flexipage from the command line?

If you try to delete an active flexipage from the cli, you'll get the following error: You can't delete an active Lightning page. Open the page in Lightning App Builder and click Activation to ...
0
votes
0answers
31 views

Recently developed Lightning component not getting pulled in to my local source

I have initialized a new scratch org and then created a lightning component in the scratch org using developer console. This is a simple component just to test the pull request. I can see that my ...
1
vote
1answer
37 views

Is there a way to use the Metadata API "purgeOnDelete" option within Salesforce DX / CLI?

I'm trying to erase a lot of custom fields. I've managed to delete them, but they still exist in deleted fields. The metadata API has a "purgeOnDelete" option to address this, but I don't ...
0
votes
0answers
59 views

SFDX commands not working from API version 52.0 in CLI

Today, when I tried to use the regular command to fetch list of orgs of Salesforce in CLI terminal, it throws me an error/warning as below: And I'm unable to login to my salesforce orgs too. Like no ...
0
votes
1answer
18 views

Linux version of SFDX fails to provide results for "sfdx force:user:list" command

When I tried to build a dynamic script in GitHub Actions using SFDX, I have been puzzled by the weird behaviour of sfdx force:user:list --json command in linux version of SFDX. In MacOS version of ...
0
votes
0answers
29 views

Unable to update a picklist field value with a new vlaue using SF CLI

I am trying to update a picklist field value from my automation framework and I am just unable to. Does anyone know why? C:/QA/sfdx/bin/sfdx.cmd force:data:record:update -s Cycle__c -i ...
0
votes
1answer
55 views

Salesforce CI CD deployment

CI/CD sfdx deployments using Saleforce CLI by default deploys all the metadata into the Orgs. Is this recommended ? Or should we limit the deployments to changed components alone (using package.xml)? ...
1
vote
1answer
125 views

Salesforce CI CD deployment commands

Currently we are following ChangeSet deployment model and want to switch to Org deployment model to support CI/CD process by taking advantage of Salesforce CLI commands. But, for deployment to Orgs ...
0
votes
2answers
274 views

Unable to update or uninstall sfdx cli

I'm unable to update my sfdx cli. Installed via the installer here: https://developer.salesforce.com/tools/sfdxcli I've tried uninstalling via the instructions provided, but sfdx remains installed. I'...
1
vote
1answer
30 views

Is it possible to turn on the Apex Replay Debugger permanently or for the entire day from VSCode

Every time I use the VSCode command to turn on the Apex Replay Debugger, it expires in less than an hour, and then I have to re-run the command to turn it back on again. Is there a way to turn it on ...
1
vote
1answer
54 views

Getting core_3.sfdc.isInternalUrl is not a function when I try to create scratch org in Salesforce from VS code

Below is the error Starting SFDX: Create a Default Scratch Org... 04:42:18.799 sfdx force:org:create -f config\project-scratch-def.json --setalias trailhead --durationdays 7 --setdefaultusername --...
0
votes
1answer
31 views

SFDX export related records for data upload to a scratch org

I have a relationship between Account and MyCustomObject__c where Account.CustomField__c is a lookup to MyCustomObject__c. When I try to export the field on the Account and related records using sfdx, ...
2
votes
1answer
180 views

Authorized an org in VS Code but not getting "Deploy this source to org" option

I authorized an org through VS Code, but at the bottom left it still says "No Default Org Set" rather than the org alias. I did this by running: sfdx force:auth:web:login --setalias ...
0
votes
0answers
16 views

SFDX. Import PricebookEntry2 to standard Pricebook2

I want to import price book entries and relate them to standard price book on scratch org. I'm using sfdx force:data:tree:import. But I can't relate my new price book entries with the already existing ...

1
2 3 4 5
13