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.
2,862
questions
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 ...
0
votes
0
answers
115
views
Lightning List Dual Box
Selected Options in Lightning Dual ListBox are automatically sorted alphabetically.How to disable this.can anyone please explain
0
votes
1
answer
136
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-...
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 ...
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 ...
2
votes
1
answer
281
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 ...
0
votes
0
answers
582
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 ...
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
...
-1
votes
1
answer
384
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 ?
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 ...
0
votes
1
answer
54
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: ...
0
votes
1
answer
162
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 ...
1
vote
0
answers
133
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 ...
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
...
1
vote
2
answers
143
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 ...
0
votes
0
answers
213
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 ...
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 ...
0
votes
1
answer
380
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 ...
0
votes
2
answers
180
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 ...
0
votes
1
answer
549
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 ...
0
votes
0
answers
561
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 ...
1
vote
1
answer
462
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 ...
1
vote
1
answer
365
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?
0
votes
0
answers
214
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 --...
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 ...
0
votes
1
answer
561
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, ...
0
votes
1
answer
122
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 ...
0
votes
1
answer
830
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 ...
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/...
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 ...
-1
votes
1
answer
228
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( ...
2
votes
0
answers
565
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 ...
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 ...
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 ...
0
votes
1
answer
246
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 ...
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, ...
0
votes
2
answers
786
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 ...
0
votes
1
answer
401
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 ...
0
votes
1
answer
554
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 ...
-1
votes
1
answer
649
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:...
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 ...
2
votes
1
answer
325
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
...
1
vote
1
answer
516
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 ...
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 ...
0
votes
1
answer
578
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 ...
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,
...
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": "...
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 ...
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:/...
1
vote
2
answers
239
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 ...