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
0 votes
0 answers
160 views

Salesforce SFDX and Netskope

Following the deployment of a security solution within our park, Netskope (similar to Zscaler) We have problems with SFDX CLI and VSCode, indeed we solved a first problem concerning SSL: We added the ...
Sebastien38300's user avatar
0 votes
0 answers
114 views

Lightning List Dual Box

Selected Options in Lightning Dual ListBox are automatically sorted alphabetically.How to disable this.can anyone please explain
Mohsina's user avatar
0 votes
1 answer
135 views

How to delete Source from Org that is deployed accidentally?

Requirement: I have installed FFLib ApexMocks Framework(https://github.com/apex-enterprise-patterns/fflib-apex-mocks) and FFLib Apex Common(https://github.com/apex-enterprise-patterns/fflib-apex-...
Anil's user avatar
  • 11
6 votes
3 answers
291 views

Is there a more effective format for permissionsets?

Working source first, permission sets and profiles have a low "signal to noise" ratio where the signal is the content of the XML elements and the noise is the element layout and the elements ...
Keith C's user avatar
  • 136k
0 votes
1 answer
50 views

VSCODE Log for Replay Debugger Inconsistent with current code

After pushing code, setting breakpoints, enabling Log for Replay, running tests and Retrieving Debug logs When I step through, the pointer seems to be pointing at phantom code lines, and seems as ...
Ricardo da Silva's user avatar
2 votes
1 answer
279 views

Assert not available in VSCODE

The Assert class does not appear to be available in VSCODE with extensions installed. While I can still use the class and its methods with no errors on Push , the editor complains about it and there ...
Ricardo da Silva's user avatar
0 votes
0 answers
579 views

Error parsing file

I am having difficulties deploying reports and dashboards from dev org to another dev org. After retrieving the metadata ( report folder , dashboard folder, reports and dashboards) i want to deploy by ...
Alpar.Balo's user avatar
1 vote
2 answers
1k views

Unable to install lwc-dev-server / run sfdx force:lightning:lwc:start

I am trying to run LWC in local. I was able to install with errors C:\WINDOWS\system32>sfdx plugins:install @salesforce/lwc-dev-server Polling for new version(s) to become available on npm... done ...
PAS's user avatar
  • 121
-1 votes
1 answer
381 views

How can I make the public group is just visible for system admin?

I have created a set of users under the public groups. Now I wanted to make that public group to be visible to system admin . Basically how to control the visibility of a public group ?
Random's user avatar
  • 1
2 votes
2 answers
2k views

VS Code/sfdx: authorization fails with reason: self-signed certificate in certificate chain

I have been using VS Code and Salesforce since a year in my company laptop. I am trying to authorize VS code with my sandbox. Process I followed: VS Code> Sfdx auth org shortcut Also tried sfdx ...
Rhuan Miguel's user avatar
0 votes
1 answer
53 views

Package version creation results in field integrity exception (Case access level below organization default)

I am trying to create a package version. My dev hub has the following for case: Running a query under dev console gives me: When I try to create a package version, I get : Practice_Assignment_Team: ...
Strong Like Bull's user avatar
0 votes
1 answer
161 views

2gp error when installing unlock package into empty sandbox: Complains re existent Email Template in unfiled-public folder

We've created first version of our unlocked 2gp package. Bunch of custom email templates have been packaged as a part of unfiled$public folder (including MyCustomPackagedEmailTemplate one). Now when ...
wesaw's user avatar
  • 3,020
1 vote
0 answers
131 views

Generate a Scratch Org Definition File from an Org Shape?

Is is possible to generate a scratch org definition file from an org shape? Org Shape is still buggy. I'm running into this known issue with Experience Cloud sites. It would be nice if I could use a ...
Mark Hansen's user avatar
5 votes
1 answer
4k views

SFDX create package version throws plugin packaging error

I am trying to create a package version using sfdx command - sfdx package create -n secondPackageRety -d "Second package retry" -r secondPackage -t Unlocked Now, it throws an error ...
SEuser's user avatar
  • 1,855
1 vote
2 answers
142 views

Does CumulusCI help with the deployment of per version layout and flexi-page changes?

I'm wondering what the best way to use CumulusCI is to deploy changes that managed package upgrades usually skip. The common problem areas are: Layouts Flexipages Picklist values We package daily ...
Keith C's user avatar
  • 136k
0 votes
0 answers
209 views

DayGrid error when try to get rendered the fullcalendar library inside LWC

I'm using the fullcalendar library v4 inside a LWC. Sometimes when I reload the page where the lwc with the calendar is allocated, a console error appears. I've tried a solution found is this thread ...
Krmn's user avatar
  • 1
3 votes
1 answer
3k views

package is not a sf command?

Salesforce has recently deprecated the sfdx force:package:version:create command. sfdx asks us to use the package version create command instead. Running sf package version create, however, also ...
dev4life's user avatar
  • 510
0 votes
1 answer
376 views

Update LWR site Head Markup with metatdata

Is there any option to deploy head markup of a LWR site with SFDX and metadata instead of modifying it manually in the Advanced section of the Experience Builder site settings (following these steps ...
Pascal's user avatar
  • 1
0 votes
2 answers
179 views

Is there a way to run tests for a 2GP package in development, without creating a new package version?

I am developing a 2GP package. In order to run tests, I've had to create a new package version and install it in a scratch org (via sfdx). Is there a way to run tests after code changes without having ...
diplodocus's user avatar
0 votes
1 answer
546 views

SFDX how to get custom URL as metadata?

I have defined Custom URL as described in documentation https://help.salesforce.com/s/articleView?id=sf.custom_url_add.htm&type=5 When I use that command my site metadata doesn't contains this ...
hsd's user avatar
  • 123
0 votes
0 answers
556 views

Salesforce CLI is not retrieving permission set metadata

I am trying to retrieve metadata from a sandbox instance to prepare a deployment. Flows, Custom Objects, etc. are getting retrieved, but permission sets are not. In my package.xml file, I tried the ...
Mike Henderson's user avatar
1 vote
1 answer
456 views

Strategies to successfully create scratch orgs

Have noticed it can be very difficult to successfully create scratch orgs. Wondering if something I am doing is contributing that. Sometimes it works. Sometimes it doesn't. I have tried both of these ...
nstuyvesant's user avatar
1 vote
1 answer
364 views

How many fields required for Lightning Message Channel?

How many fields do we need to create in Message Channel in LWC to pass data to other LWC_component and can we pass array using using Lightning Message Service?
blank paper's user avatar
0 votes
0 answers
213 views

Running Salesforce Code Analyzer for method version 3

I'm trying to run the SalesForce Code Analyzer on the new version 3 to a unique method called deleteQuery and the deleteQuery has a parameter Id here what I'm using: "sfdx scanner:run:dfa --...
Matheus Mello's user avatar
1 vote
1 answer
2k views

SFDX CLI: Error authenticating with the refresh token due to: inactive user

After running the command: sfdx force:auth:web:login --setalias vscodeOrg --setdefaultdevhubusername And getting a successful result: Successfully authorized [email protected] with org ID ...
Robs's user avatar
  • 9,336
0 votes
1 answer
557 views

Need help in removing the space between the label and input field in lightning-layout-item & lightning-input-field in salesforce lwc

How can I remove space between the lightning-layout-item and the lightning-input-field on the record-edit-form in salesforce LWC. I have removed label of the element but the space still existing here, ...
user128706's user avatar
0 votes
1 answer
121 views

Can we create a user in scratch and get its SFDX Auth URL in CI or change email of the default user?

We have a CI script which build a new beta package version out of the source code in SFDX format and when the package version is built, the new scratch org is created so that a previous release ...
Patlatus's user avatar
  • 16.7k
0 votes
1 answer
829 views

Authorizing an org in VS code runs successfully but does not open any browser

I have installed my VS code, Salesforce CLI and Extension Park. When I try to authorise an org it gives me the below message but does not redirect to a browser. It says the authorisation ran ...
Divy Muffin's user avatar
0 votes
0 answers
499 views

Success Message with Toast events not working

Js code import { LightningElement, api, track } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; import {FlowNavigationNextEvent, FlowAttributeChangeEvent} from "lightning/...
Noha's user avatar
  • 13
0 votes
1 answer
120 views

how to query External Managed Account Output

I'm referring to this link and i want to find the AccountId of an external Managed account. I'm not sure how to query this. Or is there any way I can implement this to find the Account Id? Please do ...
SForce_User's user avatar
-1 votes
1 answer
227 views

Restrict all users to Change the Lookup Field

I am trying write a validation rule.I have record with lookup field which is blank and wanted to restrict all users on changing the field and this field should always be empty. AND( OR(ISCHANGED( ...
Aswini B's user avatar
2 votes
0 answers
563 views

Is it possible to deploy new pages to an enhanced lwr site with sfdx?

In my development org, I created a new page in my site using builder. I then retrieved the entire site with sfdx force:source:retrieve -m DigitalExperienceConfig:SITE_NAME_HERE which gave me the new ...
Bob Roberts's user avatar
  • 2,785
1 vote
2 answers
169 views

Sandboxes often reshuffles files like page layouts making it less git-friendly

When refreshing Sandboxes I would prefer if all metadata is exactly copied from the source org, but rather we often see files being randomly reshuffled without their content changing when we do a full ...
Freddy's user avatar
  • 203
0 votes
1 answer
31 views

Salesforce Editions and Subscriptions for a Custom Web application

I am a beginner and planning to use salesforce for my hostel management system application. When I went through salesforce documentations for my learning and familiarization, I knew that there is ...
Mr.DevEng's user avatar
0 votes
1 answer
245 views

How do you properly include metadata in an unlocked package for custom fields that already exist in Production?

When creating an unlocked, second-generation package for a new Lightning Web Component, how should you include the requirement for a custom field to exist if that field already exists in the ...
kennyc's user avatar
  • 349
0 votes
1 answer
153 views

SFDX exporting then upserting user records

I'm trying to use SFDX to export users, add a MobilePone, then upsert them back in. I used the following to get a .json file of user records: sfdx force:data:tree:export -q "SELECT Id, Username, ...
user1702965's user avatar
0 votes
2 answers
778 views

Another "apexClass is invalid. Provide the API name of an Apex class that includes an Apex data type supported in flows" question

My question is similar to this one, however in my case, my Apex classes are Dynamic, auto-generated by an External Service that I created. I started off by creating a Salesforce DX project. Next I ...
Mary Hamlin's user avatar
0 votes
1 answer
399 views

No version number was found in Dev Hub for package id and branch 'x' and version number 0.0.0.LATEST that resolved to build number 214

Today I have received the following error which seemed quite ambiguous to me No version number was found in Dev Hub for package id 0HoPACKAGEID000AAA and branch 'x' and version number 0.0.0.LATEST ...
Patlatus's user avatar
  • 16.7k
0 votes
1 answer
543 views

How to resolve orderTrigger: execution of AfterUpdate caused by: System.DmlException: Update

For one of challenges in advance apex specialist ,i am getting this error which is really confusing me, if you can help There was an unexpected error in your org which is preventing this assessment ...
Fiona Gentry's user avatar
-1 votes
1 answer
648 views

How to resolve sfdx installation problem in ubuntu 22.04

Can anyone help me with this npm ERROR. npm install sfdx-cli --global npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node:...
Ameer's user avatar
  • 21
1 vote
1 answer
2k views

Uncaught TypeError: this.template.querySelector(...).changeMessage is not a function error in LWC SalesForce

I am beginner in salesforce and now practicing lwc session by doing event handling task. And the practice tasks includes the child component method invocation from parent component.When I created the ...
Mr.DevEng's user avatar
2 votes
1 answer
321 views

"Must include..." error deploying an existing Digital Experience into a Spring '23 scratch org

The error I'm seeing today deploying experiences metadata into a Spring '23 scratch org is: Object pages for the abc__Def__c object must include a details, a list, and a related list page. To deploy ...
Keith C's user avatar
  • 136k
1 vote
1 answer
513 views

How to keep override standard New/Edit Button After the Production Deployment

I have override standard New/Edit Button of the Custom Object.As the Production Deployment happens override standard New/Edit Button will change to Standard New/Edit Button,For every Production ...
Vinitha Vino's user avatar
0 votes
1 answer
1k views

Custom Address (Country/Territory): bad value for restricted picklist field

Use Case I have a custom address field on a custom object and I want it to be prefilled with the Shipping of an Account that is a Lookup on the custom object. State and Country/Territory Picklists is ...
Gerke's user avatar
  • 157
0 votes
1 answer
576 views

How to runalltest in package.xml and deploy to org?

I have package.xml file which contains apex classes, test classess , triggers. So, I need to runalltest in the org only run test class which is contained in my manifest file and deploy to org is ...
Neetesshhr's user avatar
0 votes
2 answers
1k views

LWC Unable to install Local development server

I keep getting errors while installing the Local Development Server. I referred to many possible solutions online. I have the following things installed already. Visual Studio Code, Salesforce CLI, ...
AB L's user avatar
  • 3
0 votes
2 answers
199 views

Is there a way to capture the Package ID using Salesforce CLI (sfdx) command?

I am trying to get the ID of a specific package name using the command below: PACKAGE_ID_CORE=$(sfdx force:package:list --targetdevhubusername HubOrg --json | grep -A1 '"Name": "...
ebanster's user avatar
  • 103
2 votes
0 answers
102 views

Get OAuth scopes for managed apps using API

I am exploring the Saleforce API in order to obtain the OAuth scopes for connected applications. As an experiment, I created two connected apps: Create a connected app manually say App1 by clicking ...
Prahalad Deshpande's user avatar
0 votes
0 answers
241 views

VS Code / Apex Debugging - Error Setting Checkpoints: Required fields are missing: [ExecutableEntityId]

I am using VS Code to debug apex code. I am getting the following error when I try to update checkpoints (SFDX: Update Checkpoints in Org): Required fields are missing: [ExecutableEntityId]. URI=file:/...
Mark Hansen's user avatar
1 vote
2 answers
238 views

Error when creating beta 2GP version - Can’t create patch version

When I type: sfdx package:version:create -p 0Ho... --installation-key-bypass -b 2gp-internal I get an error: ERROR running force:package:version:create: Can’t create patch version. Log a case in ...
nstuyvesant's user avatar

1
3 4
5
6 7
58