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
27 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 ...
0 votes
1 answer
30 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 ...
  • 101
0 votes
0 answers
16 views

Step-by-step of Adopt the Salesforce ICU Locale Formats

Is it any automatization existed (from Salesforce?), that we may run in our ORGs to check all that: format(), parse(), @locale, import * from @salesforce/i18n/* to cover the whole CODE (Apex, LWC, ...
-1 votes
1 answer
21 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 ?
  • 1
1 vote
0 answers
35 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
16 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
0 answers
27 views

SFDX: Authorize an Org Failed to run

I have a problem authorizing my org via VS Code. It gives me this error when I try to run SFDX: Authorize an Org. Can someone help me with this?
0 votes
1 answer
35 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 ...
  • 2,875
0 votes
0 answers
50 views

Deployment Error on Github

While deploying a SFDX project, I am getting the below error. Did anyone came across this error before or how can I resolve this Error standard__ServiceConsole Last Modified Date(Fri Mar 10 15:23:10 ...
  • 1
0 votes
0 answers
21 views

Is there a way to upgrade a locally modified flexi-page using e.g. sfdx?

A follow up question to this How are local edits of packaged Lighting flexi-pages handled when a package is updated? Is there a way to "break" the current logic where a local flexi-page edit ...
  • 133k
1 vote
0 answers
36 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 ...
0 votes
0 answers
31 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,768
1 vote
2 answers
57 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 ...
  • 133k
0 votes
0 answers
42 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 ...
  • 1
0 votes
3 answers
94 views

org browser in vs code not working

After authorizing the sandbox in vs code, it tells me it failed. However, the org is connected successfully. I can retrieve the file from or deploy the file to the org directly in the file. it is ...
3 votes
1 answer
67 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 ...
  • 302
0 votes
0 answers
21 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 ...
  • 1
0 votes
2 answers
37 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
43 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 ...
  • 113
0 votes
0 answers
44 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 ...
0 votes
1 answer
42 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
51 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
36 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 --...
0 votes
1 answer
37 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 robs@example.com with org ID ...
  • 8,788
0 votes
0 answers
32 views

Getting error while in Install New Package Version in Your TP

Using command -> sfdx force:package:install -u MyTP --wait 10 --package GIFter@1.1.0-1 -k test1234 --noprompt Error -> Error (1): Invalid alias or ID: GIFter@1.0.0-1. Either your alias is ...
0 votes
1 answer
48 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, ...
-1 votes
0 answers
18 views

The default position for notifications in VS code can be seen in the right-down corner; however, I need to use the top-right corner

The default position for notifications in VS code can be seen in the right-down corner; however, I need to use the top-right corner
0 votes
1 answer
17 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 ...
  • 14.7k
0 votes
1 answer
50 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
49 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/...
  • 13
0 votes
1 answer
24 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
37 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( ...
1 vote
0 answers
71 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 ...
  • 2,745
1 vote
2 answers
102 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 ...
  • 164
-1 votes
1 answer
29 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
37 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 ...
  • 201
0 votes
1 answer
37 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
1 answer
30 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
49 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 ...
  • 14.7k
0 votes
1 answer
72 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
51 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: 'sfdx-cli@7.187.1', npm WARN EBADENGINE required: { node:...
  • 11
0 votes
0 answers
29 views

Upload data in omnichannel inventory by using headless commerce Upload API

I am trying to upload data into omnichannel inventory in OMS and configured with SFCC as well. Using headless commerce 'Upload API (/commerce/oci/availability-records/uploads)' sometime data uploaded ...
1 vote
1 answer
63 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
68 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 ...
  • 133k
1 vote
1 answer
31 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
116 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 ...
  • 145
0 votes
1 answer
56 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 ...
  • 101
0 votes
1 answer
126 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, ...
  • 3
0 votes
2 answers
41 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": "...
  • 103
0 votes
0 answers
28 views

ISV Debugger Setup Not Working

I have followed exact steps provided in this link https://developer.salesforce.com/tools/vscode/en/apex/isv-debugger Still, I am getting the below error, let me know how can we retrieve ISV manage ...
  • 15

1
2 3 4 5
55