Questions tagged [sfdx-plugin]

A plug-in adds functionality to the Salesforce CLI. Some plug-ins are provided by Salesforce and are installed by default when you install the CLI. Some plug-ins are provided by third parties and can be installed locally. When you have a requirement that an existing plug-in doesn’t meet, you can build your own.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 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 ...
1
vote
1answer
47 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
0answers
23 views

SFDX Plugging Debugging in VS Code

I'm working on a DX CLI plugin using VS Code. My work machine just upgraded my VS Code install to v 1.56.2. Previous version I had wouldn't even start the remote debugger. Now the remote debugger will ...
1
vote
1answer
66 views

sfdx command for Salesforce Functions is not working

When i execute command sfdx help function it throws error below » Error: command function not found I am following video https://www.youtube.com/watch?v=2XzaJ0TNwvo SFDX Version - sfdx-cli/7.105.0 ...
0
votes
0answers
16 views

Is there a way to create Trace Flags for certain user using SFDX?

I'm just tired of manually setting trace flags on my org. My question is, is it possible in any way to create trace flags using SFDX? Or is there any APEX script to create these trace flags for ...
0
votes
1answer
22 views

sfdx export products and related custom object

I have a custom object, myObject__c and on the Product2 object we have a field (Product2.myObject_lookup__c) that is a lookup to the myObject__c object. I need to export the relationship between ...
0
votes
0answers
153 views

SFDX-Git-Delta plugin not finding differences between branches in github action

I have my yml file for my github action set up like this: name: Test Deploy Delta on: push: workflow_dispatch: jobs: build: runs-on: windows-latest steps: - name: Check out repository code ...
1
vote
1answer
36 views

SFDX Plugin Development tutorial

I am following this tutorial: https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_generate_scaffold.htm I have followed in exactly down as far is the ...
3
votes
1answer
36 views

SFDX Script to copy all installed packages from one org to another one?

I have a specific error which depends on the packages installed in environment, to reproduce this error on the developer org, I need all the installed packages to install into development org. Can I ...
0
votes
0answers
23 views

show list of account record on clicking in checkbox and delete the selected account and refresh list

I want to show account record on checking a checkbox and delete the selected record and refresh list but I am getting errors. duplicate value found: duplicates value on record with id: Cannot find ...
0
votes
1answer
76 views

Can I run SFDX commands on a button click?

Is it possible to run SFDX commands on some UI events? If so, like we have used a Node.js application for it as SFDX commands are Node.js based. Are there any packages which we can install and use? ...
0
votes
0answers
59 views

Receiving error No base file for markup://c:DesignLwcDemo while deploying this to org

I am getting error No base file for markup://c:DesignLwcDemo while deploying this to org <template> <lightning-card title="Design Attribute" icon-name="custom:custom5">...
3
votes
2answers
139 views

How do you install a sfdx plugin with npm and package.json?

I'm trying to install a sfdx plugin, and the only install instructions I can find are sfdx plugins:install plugin-name. With modern development practices, we define our project's Node development ...
0
votes
1answer
664 views

SFDX: Component conversion failed: Cannot read property 'id' of undefined

Trying to Retrieve Source in Manifest from Org in VS Code. Last week this was working fine, this morning I'm getting an error Component conversion failed: Cannot read property 'id' of undefined. I ...
0
votes
0answers
340 views

VSCode deploy source to org failed to run

Starting today VSCode is giving me an error "SFDX: Deploy Source to Org failed to run". This only happens with 1 org. with every other org I do not have any issues. I don't get any error ...
0
votes
1answer
106 views

sfdx push returning No Results found on scratch org

sfdx push a fake class to scratch org is returning no results found. I have a scratch org built on production org shape. Here is the list of actions I tried, sfdx deploy first followed by creating a ...
0
votes
0answers
81 views

View LWC Locally / Install LWC dev Mobile Plugin Error

Aim: To preview LWC component locally. Problem : NOT able to install sfdx plugins:install @salesforce/lwc-dev-mobile NPM Version: 7.7.6, NODE Version: v15.13.0, SFDX Version: sfdx-cli/7.92.0-...
0
votes
1answer
29 views

Is it possible to remove metadata by installing a newer version of an unlocked package?

I have a sandbox that has some meta data such as custom objects, permission sets, profiles, classes, and remote site settings that need to be removed. The sandbox also has an unlocked package ...
1
vote
1answer
133 views

SFDX CLI plugin dev, after running cant find node modules

I am new to SFDX plugin development. I have a node CLI tool I am trying to integrate into the SFDX CLI. I have added my js file with node modules to the directory src/commands/digitsec/s4/ When I run ...
0
votes
2answers
40 views

SFDX - Identify tests for a specific class

I am working on a github action that is supposed to validate a "delta" package of changes in a merge request in a target sandbox. For this validation process i am not supposed to run all ...
0
votes
1answer
97 views

Why are my recordtypes not being updated, they are going into the wrong folder

I have a CLI situation whereby the recordtypes I make changes too are not being updated on a retrieve. I cannot find flaws in my process, I change the connected org correctly my XML has the fields, ...
3
votes
1answer
206 views

SFDC CLI - Connected Status - Unknown

Suddently my orgs are with connected status unknown, like the image below, even though I can authorize my DevHub Org without any problem I could not find any possible solution: Even with a new ...
0
votes
1answer
51 views

sourcePathInfo.getPendingPathInfo is not a function error in source pull/push deploy/retrieve

I have updated to the latest sfdx-cli and salesforcedx and I cannot use the source commands anymore. I am using sfdx installed using npm instead of the stand-alone one. I have raised an issue in ...
2
votes
0answers
15 views

Suppressing load of sfdx.js in VS Code in debug mode

When you develop a plugin for the SFDX CLI and use the --dev-suspend flag at the end of your command in a VS Code terminal, the first thing that is loaded is a new document that contains the core sfdx....
3
votes
4answers
393 views

Errors running sfdx force:org commands [getNumber is not a function]

Since this morning, when I try to run sfdx force:org:* commands, I get the error : TypeError: (intermediate value).getNumber is not a function Yesterday everything worked fine and I did nothing else ...
0
votes
0answers
166 views

Is there a way to stop LWC Local Development Server to auto refreshing when component file change?

LWC Local Development Server auto refreshes page whenever any LWC component files change. Sometimes I change JS code but I'm not finished with it, I need to go back to console to refer the console ...
1
vote
1answer
32 views

How do I download & setup Git Bash, for Windows & VSCode?

I don't know where to get GIT Bash from and how to set it up. I am asking because the answers were not found or not obvious, install was a bit of an unknown, hence this might help someone else, so I ...
0
votes
0answers
49 views

Visual Studio Code, SFDXError with retrieve for Aura and LWC

since yesterday I started having an issue when I try to use the command SFDX:retrieve source from Org on Aura or LWC items. The command fails and I receive this error message: Also, I noticed that If ...
2
votes
1answer
315 views

unable to install sfdx scanner plugin

i am trying to install sfdx scanner. its giving me this error. anyone knows this below error warning "@salesforce/lwc-dev-server > request-promise-native > request-promise-core@1.1.4" ...
1
vote
1answer
427 views

How do I retrieve all files in VS Code?

I'm working on the Apex Specialist super badge on the Salesforce Trailhead. I'm also trying to get more comfortable with Visual Studio Code with the Salesforce extensions. I've successfully create a ...
1
vote
1answer
278 views

Node version error during Salesforce DX pre-release plugin installation

When installing the Salesforce CLI with the Spring '21 pre-release Salesforce DX plugin, I'm getting an incompatible node version error. This command: sfdx plugins:install salesforcedx@pre-release ...
1
vote
2answers
1k views

ERROR running force:source:deploy: This command is required to run from within an SFDX project

I am trying to use GitHub actions to deploy code to my developer org. While running the workflow i am getting error like. I am unable to figure where it is wrong Below is the structure in github. ...
0
votes
0answers
61 views

SFDX: Authorise an Org not working

I am trying to authorise an org using VS Code but keep getting the following sfdx force:auth:web:login --setalias jandev21 --instanceurl https://test.salesforce.com --setdefaultusername Unexpected ...
0
votes
1answer
88 views

ApexPages.currentPage().getParameters() Method does not exist or incorrect signature

I use VS Code with Salesforce Extension Pack. I have this line in my class code: string cId = ApexPages.currentPage().getParameters().get('cId'); It gets a squiggle line under getParameters() and a ...
0
votes
0answers
40 views

Errors in standard object definitions

I use VS Code with Salesforce Extension Pack. I have created SFDX project with manifest; authorized my sandbox org; then refreshed sobject definitions (tools-sobjects-standardObjects). This gives me ...
1
vote
1answer
267 views

Invalid fullName, must end in a custom suffix(for ex. __c) CustomObject[1,1]

I am trying to push the code to my DX project and getting the above error on standard objects like Quote, QuoteLineItem, Recommendation and SignupRequest. I tried adding the solution provided in this ...
0
votes
1answer
63 views

Sfdx vs code Extension causes high cpu load

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.51.1 . Authorize an Org : Redirecting to Browser but after logining in the ...
3
votes
2answers
1k views

Deploying Profiles and Fields with SFDX in VSCode

We're deploying from Stage to Prod via VSCode and package.xml. We're concerned of overwriting certain existing Profiles on Production. We haven't updated Stage from Prod in too long. We still need to ...
2
votes
1answer
93 views

DX CLI - Plugin Install vs. Plugin Link

I'm able to install a custom plugin globally via npm i -g @somescope/myplugin then change into the directory where the package is globally installed and can run sfdx plugins:link and all my custom ...
1
vote
0answers
270 views

VS Code - SFDX: Retrieve Source From Org > WARNING: Infinite loop detected [closed]

Summary SFDX: Retrieve Source From Org (sfdx force:source:retrieve) throws the error WARNING: Infinite loop detected. Steps To Reproduce: From manifest\package.xml launch SFDX: Retrieve Source From ...
0
votes
0answers
82 views

Running Unit Test from VS Code Got: ERROR running force:apex:test:run: Cannot read property 'message' of undefined

I am facing the following issue when I run a UnitTest using VS Code. For instance: sfdx force:apex:test:run --tests ServiceTest --resultformat human --outputdir /salesforce/.sfdx/tools/testresults/...
0
votes
1answer
85 views

Export records from Salesforce to deploy to another org which are useful for configurations like Custom Settings

I have retrieved the metadata from sandbox to deploy it to the higher org using ANT. ANT have created folders for all the components like objects, classes, etc. But, it did not retrieved many records ...
2
votes
2answers
49 views

Where did the type ahead menu for CSS SLDS classes go?

In VSCode, there used to be a type ahead window with suggestions of SLDS classes when you start to create one. This menu no longer appears for me. For example when I would type <span class="...
1
vote
1answer
36 views

SFDX - Cannot find messages folder on npm run prepack

In my environment we cannot use yarn to do a prepack on a custom dx plugin. So, we are trying to do the equivalent of yarn prepack with npm run prepack In the latter case, the typescript compiler ...
0
votes
0answers
59 views

Vs code Sfdx Authorize org failed after update

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.50.1 . I'm unable lo authorize to dev hub . I have uninstalled multiple times ...
2
votes
2answers
454 views

SFDX: command to retrieve Compact Layout from Source org to Visual Studio Code

I want to retrieve Compact layout to visual studio code from the source org. Currently I'm using following command. sfdx force:source:retrieve -m "CompactLayout:Lead-English Courses" But ...
1
vote
0answers
112 views

sfdx:force:package:installed:list is throwing TIMEOUT error

Summary force:installed:list command is throwing time out error as Your query request was running for too long. Steps To Reproduce: 1.ScratchOrg is created 2.Installed two packages with packageID ...
0
votes
0answers
92 views

Getting an error while creating unlocked package with --codecoverage option in salesforce

As per the current requirement new versions of packages can be created only buy running the sfdx force:package:version:create with --codecoverage option, however I am getting an exception related to ...
5
votes
4answers
3k views

Error running command sfdx.force.source.retrieve.component: data.forEach is not a function

Not able to download all the classes / triggers / LWC's or anything using the ORG Browser. This is kind of a annoying issue as I cannot keep on downloading only and only the classes I require. Any ...
0
votes
1answer
71 views

Channel Program object is not available in scratch org

I'm creating a Scratch Org. Following is my command. sfdx force:org:create -f config\project-scratch-def.json --setalias My-Scratch-Org --durationdays 30 --setdefaultusername --json But then once the ...