Questions tagged [salesforcedx]

Salesforce DX is a broad reaching project touching a number of different features including: Salesforce CLI, Force.com IDE 2.0, support of standard developer toolsets, and Packaging 2.0. Since fixing unsupported Metadata API types is also a part, some MDAPI posts could be tagged, too.

Filter by
Sorted by
Tagged with
1 vote
0 answers
16 views

How do you organize your org metadata? - unmanaged packages, custom folder structure in SFDX....?

I've been considering ways to organize my company's SF metadata, with the goal of grouping together metadata that are specific to particular processes, while leaving out shared metadata. SF has made ...
user avatar
  • 3,472
0 votes
1 answer
25 views

What directories does a sfdx force:package:version:create include?

I've typically worked where there is only one root directory in an SFDX project (force-app). So I've imagined that the packageDirectories in sfdx-project.json act as the source/sources of the files ...
user avatar
  • 130k
1 vote
1 answer
70 views

How to know if a sfdx package is a second generation package (2GP)

I have gone trough the documentation about first and second generation packages to figure If our current package is a second generation package. I read the comparisons: https://developer.salesforce....
user avatar
  • 2,092
0 votes
0 answers
29 views

VSCode .gitgnore not ignoring .sfdx folder

As in the title, I've encountered a problem with the .sfdx/ folder in my repo. After cloning the project it sees some local changes in the typings/lwc and typings/tools folder. .sfdx/ folder is ofc in ...
user avatar
0 votes
0 answers
28 views

Prettier not working in VS code

I am not able to configure "Prettier" into my VS Code. Followed the following steps: Installed Prettier and selected Prettier as the 'Default Formatter' for both User and Workspace. ...
user avatar
0 votes
1 answer
20 views

Conditional apex output field

I have a data table in a visualforce page where I would like to display "nothing here" if my sObject field is empty, but if there is something written inside i would like to display it. i ...
user avatar
0 votes
1 answer
32 views

Salesforce deployment using SFDX CLI, Jenkins and GitHub

I am new to Salesforce and SFDX CLI. I need to implement CI / CD for one of my client. To start with basic I created Dev Org using Visual Studio Code and committed same to GitHub. Integrated SFDX CLI ...
user avatar
-1 votes
0 answers
24 views

How to deploy translated tabs and quickactions in salesforce from one sandbox to another

I have translated some of the tabs and quickactions in my salesforce org but not sure how to deploy by adding this in translation file. Can someone please help me out in ways of deploying these ...
user avatar
  • 1
0 votes
2 answers
46 views

Can not create Scratch org

I have an issue when invoke this line in terminal sfdx force:org:create edition=Developer -a MyScratchOrg -s -v devHub or this one sfdx force:org:create -f config/enterprise-scratch-def.json -a ...
user avatar
2 votes
1 answer
98 views

Can Digital Experience GUIDs be re-used in multiple sites in an org?

I have an ExperienceBundle for Experience Builder Sites SFDX deployment working reliably in a CI (Continuous Integration) build. I'm now working on some scripting to allow multiple instances to be ...
user avatar
  • 130k
0 votes
1 answer
54 views

How to deactivate the flow using workbench API

How to deactivate/delete flow through WorkBench API or Apex? I tried all possible ways. could anyone help out here?
user avatar
  • 101
0 votes
0 answers
21 views

VSCode - Missing Plug Icon from CLI Extension

A coworker of mine is missing his plug icon that's made available through the Salesforce CLI Integration (installed via salesforce extension pack). After going through the status bar options, trying a ...
user avatar
-1 votes
0 answers
24 views

Address settings not getting updated

I have made changes to the label field inside the address.setting xml through VS Studio code and right-clicked on the file then deployed the changes, but it's not getting updated in Sandbox even ...
user avatar
  • 61
2 votes
1 answer
55 views

When running tests during deployment, are tests ran in parallel?

Specifically, I deploy to my org using a command like this: sfdx force:source:deploy -u=<accessToken> --sourcepath ./src/main --testlevel RunLocalTests --json --wait 120 When doing this, do the ...
user avatar
  • 125
0 votes
1 answer
17 views

Error parsing file: The content of elements must consist of well-formed character data or markup

Error when deploying knowledge fields via sfdx. I am getting following error : Does anyone encounter this in the past ? I have checked and current deploying user have the knowledge user checkbox ...
user avatar
  • 2,393
1 vote
1 answer
24 views

Migrating (backing up) SFDX authenticated logins to a new machine

Is it possible to migrate/backup locally authenticated orgs to a new machine without having to re-authenticate on another machine? After running sfdx force:auth:web:login, the authentication flow here ...
user avatar
  • 167
0 votes
1 answer
19 views

How can I send a list of records (multiple forms with key-value pairs) in a single request via multipart/form-data HTTP POST

This is not about files, but about key-value pairs. And I already got below to work for ONE submission/record. How do I tweak below to support multiple record submissions? private final static string ...
user avatar
1 vote
1 answer
15 views

How to Update a Unlocked package customField picklist value Using MetaData api

I am to update my picklist value to capitalize it by deploying but i am getting this error Picklist value: In Production in picklist: Merchandise_Status__c not found <?xml version="1.0" ...
user avatar
2 votes
1 answer
26 views

Pushing LightningMessageChannel fails with "Cannot read properties of undefined (reading 'split')"

I'm trying to create a custom LightningMessageChannel to use in my aura component. I followed the documentation and created a file for the message channel: main/default/messageChannels/...
user avatar
2 votes
1 answer
129 views

Why is "HealthCloudUser is not a valid Features value" for Scratch Org?

SFDX CLI doesn't allow to create a scratch org with the "HealthCloudUser" feature enabled. Our CI and development workflow requires it as our org uses the HealthCloud package. We were able ...
user avatar
1 vote
0 answers
75 views

ERROR running auth:web:login: Parse error in file unknown on line 12

I'm trying to connect to a Salesforce using the command line sfdx force:auth:web:login -d -a DevHub, that's works well, I'm entering the user and password on the login page, then enter the user name ...
user avatar
3 votes
1 answer
56 views

Why does my scratch org creation hang forever with a ScratchOrgInfo in New status, when using the Limited Access License?

I've set up an integration into my Dev Hub from a CI server by storing the SFDX Auth URL. The authentication is successful, but when I do sfdx force:org:create, my CI job times out at 2 hours without ...
user avatar
  • 86.8k
0 votes
1 answer
28 views

Getting error when creating 2gp package version

Getting following error Add components {Profile=[Admin]} back into the package version, and create the package version again. This is my current sfdx-project json of managed package : "...
user avatar
1 vote
1 answer
28 views

Failing to create managed package with prompts

I created in-app guidance in scratch org, pulled, and ran: sfdx force:package:version:create --package "{packageName}" --definitionfile config/project-scratch-def.json --wait 10 --...
user avatar
4 votes
0 answers
21 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 ...
user avatar
  • 41
0 votes
0 answers
41 views

How to make specific range search filters in lwc & apex?

I'm a freshman who just started developing apex and lwc. I'm developing a search filter.The hard part is this. After searching for a number, it is a logic that allows all values within the error range ...
user avatar
0 votes
0 answers
41 views

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'setAttribute')

Getting below error in the console tab in on change event. I have a checkbox on click of show/hide the program based on the location checkbox. Below is the code, Can you help me with, what am missing ...
user avatar
0 votes
1 answer
43 views

How to add lightning toggle button lightining:buttonStateful in lwc component js file

I have a search page that searches the records and displays in table.I am trying to use lightning:buttonStateful in LWC js file to display a toggle button (follow/unfollow) in the column. But it is ...
user avatar
  • 29
1 vote
0 answers
23 views

In Mac, force:org:open: policy denied

I jus upgraded my Mac and now I cant connect to the org via vscode due to the error. I set node_tls_reject_unauthorized =0 sfdx_disable_dns_check=true but no luck. Error running force:org:open: policy ...
user avatar
1 vote
1 answer
32 views

Is it possible to retrieve Job ID generated by sfdx:force:mdapi:deploy -c flag so as to use that Job ID in next step using -q flag to actual deploy

I have jenkins pipeline with SFDX CLI integration. I have few stages in pipeline like login, validate. In validate I have SFDX command rc = command "${toolbelt}/sfdx force:mdapi:deploy -f ...
user avatar
2 votes
1 answer
44 views

sfdx update failing at "Updating plugins" with ESOCKETTIMEDOUT

So, it's been a while since I ran sfdx update and the update was larger than average (138 MB). After updating the CLI failed for 2 days straight, it finally worked for me this morning. The next step ...
user avatar
  • 48.3k
0 votes
1 answer
47 views

How do I actually get the git integration to work properly?

I want to have a 1:1 correspondence of the objects in Salesforce and the objects in our Git repo. Furthermore, I want to distinguish in our repo between our code, which has been carefully written line ...
user avatar
0 votes
0 answers
21 views

FSL- Apex Sharing: Share WorkOrders with PlatformTeamMembers(Custom Object)

Platform Team Member is a Custom Object with Lookup to User. Not all Platform Team Members have a user. Platform Team Member is on the related List of Asset i.e Lookup(Asset). Whenever new Platform ...
user avatar
0 votes
0 answers
40 views

retrieve a package using the deployment Id

I want to know how to retrieve a deployed package given the id in a zip format with all the deployed components and its package.xml : I can access the list of components that have been deployed using ...
user avatar
  • 2,393
0 votes
0 answers
38 views

sync git with salesforce, including deletions?

I'm starting with a new project and I'd like to start fresh. Unfortunately, for various reasons, my Salesforce instance is already cluttered up with a lot of metadata I would like Git to be my source ...
user avatar
1 vote
4 answers
90 views

how to deploy chat button type omni-channel using SFDX

I am trying to deploy my chat button with routing type omni-channel using SFDX and this error occurred: You must select at least one skill. what do I need to make?
user avatar
-1 votes
0 answers
18 views

Lighting web component and flow related

One flow is calling out one lwc in which we were taking radio button input and based on that input new record was getting created on another object with the help of flow.now requirement is multiple ...
user avatar
0 votes
1 answer
40 views

how to convert integer to bool in html?

I have below code where hold.Property__r.Holds__c is a numeric value due to which I am getting error. Can someone suggest how we convert this field to bool <div if:true={hold.Property__r.Holds__c} ...
user avatar
1 vote
0 answers
54 views

Problem's are returning errors linking to incorrect file locations giving "The editor could not be opened because the file was not found"

I recently did a new install of VSCode and SFDX CLI on a new Macbook. So versions are recent. I have updated SFDX since this error but it still exists. sfdx-cli/7.152.0 darwin-x64 node-v16.15.0 What ...
user avatar
0 votes
0 answers
13 views

Is it possible to retrieve metadata for Authentication Configuration from MyDomain using sfdx or mdapi?

The following settings are located at Setup -> My Domain (Authentication Configuration section) I'd like to be able to retrieve and deploy the settings (Specifically the "My Portal" ...
user avatar
  • 147
2 votes
1 answer
190 views

How do I retrieve the definition of a Custom Metadata Type using CLI?

I have created a custom metadata type in my dev org. I want to pull that cmdt (and included fields) down to my machine using the CLI (sfdx command). I found this command but it only retrieves a record ...
user avatar
  • 145
1 vote
1 answer
24 views

SFDX Push Error - You cannot add a master-detail relationship to a managed custom object

We have been developing a managed package which we are using 2GP and scratch orgs to build. This past sprint I had no issues pulling from github, pushing to scratch and proceeding with development. ...
user avatar
  • 197
0 votes
0 answers
32 views

Stuck trying to log on to SalesForce Rest API

I wrote the following c# code to try to get initially logged on to my salesforce sandbox. I've set up the connected app, etc within the sandbox. No matter what I try, I get back "invalid grant&...
user avatar
  • 11
0 votes
1 answer
29 views

Illuminated Cloud 2 claims that the sfdx executable does not exist or is not executable in my Linux install, why?

When adding the path provided by which sfdx to the little popup after creating a SFDX project in Illuminated Cloud I get the following error: The configured Salesforce CLI executable does not exist ...
user avatar
0 votes
0 answers
46 views

System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, role type must match user type: []

I Am getting this error System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, role type must match user type: [] Stack Trace: Class.TestDataFactory....
user avatar
  • 1
0 votes
0 answers
39 views

LWC jsPDF-autoTable plugin not working as expected

I am importing both the cdn static resources for jsPDF and the jsPDF-autoTable plugin. Here is how I am loading it in: import { LightningElement } from 'lwc'; import { loadScript } from 'lightning/...
user avatar
0 votes
0 answers
77 views

VS Code and SFDX (salesforce) error: self signed certificate in certificate chain

I'm using Windows 10 + VS Code + Salesforce. From some point when I need to connect to Salesforce org. (make a push or just open it) I get the error "Error: self signed certificate in certificate ...
user avatar
0 votes
0 answers
38 views

no CustomField named Event.IsVisibleInSelfService found - Managed Package

Trying to upgrade the managed package from another Org getting bellow error. XXYY_Manager: In field: field - no CustomField named Event.IsVisibleInSelfService found XXYY_Manager is a Permission set. i ...
user avatar
0 votes
0 answers
31 views

Public Docker image with sfdx and ant installed

I need a public Docker Image that has sfdx, java, ant and bash install. I was using this docker image abhisheksaxena7/salesforcedockerimg which contains the following : FROM alpine RUN apk update RUN ...
user avatar
  • 2,393
0 votes
0 answers
44 views

VS Code cannot run SFDX commands from palette

When trying to authorize an org using the VS Code palette I get an error saying that permission is denied If I try the same using the terminal with the command sfdx force:auth:web:login --instanceurl=....
user avatar

1
2 3 4 5
51