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
1 vote
1 answer
178 views

Error while Authorizing an ORG using VS Code Cannot read properties of undefined (reading 'setContentsFromObject')

Created a New Project in vs code SFDX- Create Project SFDX-Authorize Org when i try to i get error Cannot read properties of undefined (reading 'setContentsFromObject') This is most likely not an ...
0 votes
1 answer
35 views

Error retrieve from manifest in Visual Studio

I am trying to Retrieve Source from Org and I get this error: UNSUPPORTED_API_VERSION: Invalid Api version specified on URL In package.xml, it shows me: <version>54.0</version> With this ...
1 vote
2 answers
91 views

sfdx auth:jwt:grant: Unexpected arguments: -f

I am trying to connect Jenkins to the SF sandbox. I am stuck on the auth step, where I receive this kind of error: ERROR running auth:jwt:grant: Unexpected argument: Pipeline@tmp/secretFiles/e56a52e6-...
0 votes
0 answers
49 views

Vlocity Build. Error creating file. When trying to export using packExport

When I try to pull the Vlocity code using Vlocity Build, I get an export error. What could be the issue? Vlocity Build: https://github.com/vlocityinc/vlocity_build Example.YAML projectPath: .C:\...
  • 11
0 votes
1 answer
52 views

One of my scratch org environments suddenly expired. Is there a way to renew expired scratch org or at least renew the expired data?

Just already passed 30 days from the creation my scratch org Is there a way to rescue that scratch org or at least (in the future) to extend the time for above 30 days or to create a copy of that ...
  • 35
0 votes
1 answer
29 views

Retrieving all groups using SFDX

I'm just wondering if there are any considerations when retrieving groups / queues using SFDX. The problem which I'm currently facing is that I'm unable to retrieve all queues using SFDX. There are ...
  • 352
0 votes
1 answer
48 views

Not able to find .sfdx path to delete the user name in MAC

From my visual studio code I authorized my org some three months before. So the user name and token will be stored in alias.json file in the .sfdx folder. Not my org password got changed. So when I ...
2 votes
2 answers
413 views

ERROR running auth:sfdxurl:store: Cannot read properties of undefined (reading 'id')

How to Replicate: Running this command sfdx auth:sfdxurl:store -f ./SFDX_TMP_URL.txt -s -a integration to authenticate via sfdxAuthUrl. SFDX_TMP_URL.txt contains the sfdxAuthUrl value. Error: After ...
1 vote
1 answer
69 views

sfdx sgd-git-delta plugin not recognized in Jenkins pipeline [closed]

I have installed sfdx git delta plugin on my system. It works perfectly well when I execute locally on Git Bash / CMD / Visual Studio Code. But when I trigger the Jenkins pipeline, I see that sfdx ...
1 vote
1 answer
85 views

sfdx plugins are not getting installed via docker

We are using below script to install sfdx plugins on top of Jenkins via below docker file. FROM jenkins/jenkins:2.263.3 USER root RUN mkdir /.cache /.sf RUN chown jenkins.jenkins /.cache -R RUN ...
4 votes
0 answers
23 views

@salesforce/core ConfigAggregator resolving config file from VSCode root folder

I'm writing a simple VSCode extension to interact with Salesforce Orgs and I want to leverage @salesforce/core v3 features. From what I read from ConfigAggregator documentation: Aggregate global and ...
  • 41
1 vote
0 answers
47 views

sfdx-cli convert - SyntaxError: Unexpected token '.' post rollback

today I updated the sfdx-cli from version 7.143.0 to version 7.149.1; then I had to revert back (I performed an npm install --global sfdx-cli@7.143.0) because of some node dependencie s- atm I cannot ...
0 votes
0 answers
800 views

Error authenticating with auth code due to: self signed certificate in certificate chain

I am getting below error when try to authorize any org in the VS code. Error authenticating with auth code due to: self signed certificate in certificate chain After spending significant amount of ...
  • 2,320
0 votes
0 answers
49 views

Support for React Native on Android Mobile SDK ^ 8.0.0

Is there any deadline, or estimative, for a React Native plugin new version, using at least 8.x versions of the Android Marketing Cloud SDK (which supports Android API version 31)? https://salesforce-...
0 votes
0 answers
29 views

SFDX cli error thru VS code

Getting intermittant error on running SFDX cli commands thru VS code 14:15:50.351 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername C:\...
0 votes
2 answers
251 views

Reusable Bitbucket pipeline for testing

I am new to bitbucket pipeline and I am trying to build a bitbucket script where when a PR is merged to master branch it checks if there is an active scratch org or not. If an active scratch org ...
  • 11
0 votes
1 answer
159 views

How to inactivate a validate rule using SFDX command

Is there any way that we can inactive/deactivate a validation rule using SFDX command? I have researched completely. And I thought that force:source:deploy would help, but it seems to be a little ...
  • 29
1 vote
1 answer
154 views

VS Code: Commands run through Command Palette (CMD+Shift+P) won't show in Output

I could be mistaken here, but earlier when I used to use VS Code and the SFDX CLI plugins through the Command Palette (i.e. Command + Shift + P) to kick off a process (deploying code, retrieving code ...
  • 13
1 vote
1 answer
116 views

SFDX: is there a command to retrieve an inbound change set?

There is an SFDX command to retrieve outbound change sets from an org. This command works great for that: sfdx force:mdapi:retrieve -s -r ./desiredDirectory -u <username> -p <change set name&...
  • 133
1 vote
1 answer
278 views

Update sfdx package in bitbucket pipeline

I'm working on a pipeline to package and deploy sfdc code. I'm attaching the script. # CI process for SFDX image: radon57/sfdx-cli #image with sfdx installed definitions: steps: - step: &...
  • 129
2 votes
0 answers
106 views

Failure performing sObject describe connect ETIMEDOUT

I have started using VScode for my salesforce development , while i could setup my application in the IDE and retrieve all the necessary code. I find i'am unable to refresh standard object. but i can ...
0 votes
1 answer
263 views

RecordTypeId not getting uploaded from csv file to Salesforce org using SFDMU tool. Error: Value does not exist or does not match filter criteria

I am using SFDMU tool (Salesforce Data Loader SFDX Plugin) to upload csv data files to a target salesforce org. I have 3 records A, B and C in an object in a hierarchy. Record B is in a self-lookup ...
1 vote
0 answers
49 views

Error pushing code to the scratch org using DX command in the CI/CD pipline

I have set up a ci/cd pipeline using Jenkins. I am running a couple of commands using the Jenkins file. The commands like creating a scratch org, generating a password for the scratch org, converting ...
  • 101
1 vote
1 answer
255 views

Any way to fix this out of memory error installing @salesforce/sfdx-scanner?

We run our CI (Continuous Integration) build for our app using GitHub actions and part of that is to install and run the Salesforce CLI Scanner. We run on ubuntu-latest that is documented to have &...
  • 131k
1 vote
1 answer
3k views

How to retrieve email alert used in flow in VS?

I have created an email alert which is being used in flow. I am trying to retrieve that email alert in VS code, using sfdx force:source:retrieve -m workflowAlert command. But I am not able to retrieve ...
1 vote
0 answers
83 views

capture sfdx command errors

One could call a sfdx command from a salesforce sfdx plugin, for example: import Report from "@salesforce/plugin-apex/lib/commands/force/apex/test/report"; ... export default class ...
  • 1,458
1 vote
1 answer
160 views

How to retrieve metadata to a custom folder by using default method "Retrieve Source in Manifest ORG" in Visual Studio?

In my ORG I didn't add to repository the default folders like so It was done like the following image: That is, the root files starts in src/ folder instead of force-app/main/default/* It brings ...
0 votes
2 answers
159 views

SFDX commands not able to work in VS Code

SFX command is not able to load or use any one of them and throws the following error Command 'SFDX: Authorize an Org' resulted in an error (command 'sfdx.force.auth.web.login' not found) I tried to ...
  • 115
2 votes
0 answers
420 views

Unable to convert Reports from sfdx sources to metadatas - force:source:convert / force:source:deploy

For some time now, we have issues to deploy items that are defined in folders (Reports, emails, documents...) Problem: Unable to convert Reports from sources to metadata Command: MD_API_TEMP_FOLDER=./...
0 votes
1 answer
613 views

Push custom object and custom metadata type to scratch

So i retrieved custom metadata type and just custom object from my org via Ant Migration tool. After i createad a sfdx project. created scratch org and used push. It gives me error: 'Must specify a ...
1 vote
4 answers
2k views

No AuthInfo found for name always

Is there a way to full reinstall sfdx? How to delete settings? I am creating an sfdx project, auth in org and with retrieve command i am getting No AuthInfo found for name with name of another org ...
0 votes
2 answers
1k views

Open existing Aura Component in VS Code

I am new in VS Code Salesforce extension and I would like to ask if any way exist to open and edit Aura Components from VS Code. I already learned how to create new and deploy them and now need to ...
1 vote
1 answer
640 views

SFDX Custom Metadata commands

When I am executing sfdx command to generate custom metadata from custom settings object, I receive error No sObject with name My_Existing_Object__c found in the org. However object/custom setting is ...
  • 314
0 votes
1 answer
1k 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 -...
  • 263
1 vote
1 answer
128 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
0 answers
49 views

Cannot deploy source code despite it being correct and getting no errors

I am trying to deploy my code to the org (authorized in IDE of course), but the SFDX: Deploy Source to Org command fails. In the terminal, the only thing I see is === Deploy Errors 14:40:39.217 ended ...
1 vote
1 answer
65 views

Debugging No Longer Works for DX CLI

Lately in VS Code, my custom DX CLI plugin is no longer stopping when using the --dev-suspend flag, and the commands just run like normal. Breakpoints are no longer being hit when using the flag. ...
1 vote
0 answers
583 views

How to retrieve Salesforce reports (in a subfolder) using VS Code

How can we retrieve SF reports in visual studio code, I have tried below options: 1). Using manifest.xml -> Nothing happened, no reports extracted and no error shown either. 2). Using sfdx force:...
0 votes
1 answer
162 views

Getting error: cannot spawn .husky/pre-commit: No such file or directory when trying to commit, previously ran npm install

I'm having this issue with my computer when trying to commit. This happens after I run npm install for a recently created project. Thanks in advance. P.S.: I'm posting here cuz I couldn't find ...
  • 252
0 votes
1 answer
338 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 ...
  • 531
0 votes
1 answer
576 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 ...
  • 13.9k
1 vote
2 answers
366 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 ...
1 vote
0 answers
59 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 ...
  • 352
0 votes
1 answer
117 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 ...
1 vote
1 answer
1k 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 ...
  • 2,399
1 vote
1 answer
94 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 ...
  • 611
3 votes
1 answer
138 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 ...
  • 13.9k
0 votes
1 answer
299 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
0 answers
242 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">...
4 votes
2 answers
660 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 ...
  • 1,218