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
1 answer
28 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
20 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
34 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
22 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,758
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
40 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
77 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
57 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 ...
  • 292
0 votes
0 answers
19 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
32 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
39 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
43 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
39 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
50 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
31 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
36 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,778
0 votes
0 answers
31 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
45 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
17 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
42 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
46 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/...
  • 11
0 votes
1 answer
22 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
35 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
57 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
101 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
28 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
33 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 ...
  • 149
0 votes
1 answer
33 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
28 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
40 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
70 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
44 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
25 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
61 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
67 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
28 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
95 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 ...
  • 121
0 votes
1 answer
52 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
111 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
27 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
2 votes
0 answers
44 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
40 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
1 answer
65 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 ...
0 votes
0 answers
60 views

Updating Checkbox Field Based on Formula Field

I have 2 Custom and 1 Standard Object: Subscription_c, Term_c, Account Subscription_c has a lookup relationship with Term_c, called Subterm__c Subscription_c has also a lookup relationship with ...
1 vote
1 answer
46 views

Get the URL of an organization from its Org ID with sfdx?

I've seen similar questions asked but none of the answers provide an SFDX solution and I'm really hoping there is one. I have an organization ID, but I work with several orgs. I cannot for my life ...
0 votes
0 answers
49 views

Process response of force:source:deploy in github workflows

I am trying to learn deployment using github actions and SFDX CLI. Now there is a step where I would like to call force:source:deploy command to validate the code that will be deployed in sandbox like ...
  • 1,290
0 votes
0 answers
40 views

How to get fields to update from dropdown selection?

I have created a drop down for the events app on developer console but I can not get the fields on the student account to actually update once the selection is made nor the selections to save on the ...
  • 3
2 votes
1 answer
161 views

SFDX CLI: apex tests execution is failing with Time out error. Increasing wait parameter doesn't help

I am executing a SFDX CLI command to run apex tests sfdx force:apex:test:run -l RunLocalTests --loglevel=trace -y -c -r json -d ./tests/apex -w 20 but it fails with a Timeout error. Even when I tried ...
  • 14.7k

1
2 3 4 5
55