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
1answer
24 views

VSCode SFDX: Retrieve Source from Org failing

I have Lightning Web Components called myList, and when I try to do SFDX: Retrieve Source from Org, to get my classes from Apex class, I get the following error: 20:32:09.428 Starting SFDX: Retrieve ...
0
votes
0answers
8 views

How to add header text to Salesforce Surveys

I am trying out Salesforce surveys and wanted to add a header texts/title to different pages in the salesforce survey so that I can categorize different survey sections for better UX feel. Is there a ...
0
votes
0answers
18 views

Reset local source tracking to latest source tracking in scratch org

I am using this command to reset the local and remote source tracking force:source:tracking:reset. I am including the --revision parameter to reset source tracking to a specific revision number of an ...
4
votes
0answers
25 views

sfdx-cli can output json. Is the output documented anywhere?

Running a sfdx command with the json flag will return different json output depending on the command. Here is an example of the kind of output returned from sfdx force:package:version:create ... --...
1
vote
0answers
18 views

SFDX test run failing when output dir provided

When I run sfdx force:apex:test:run --codecoverage --resultformat json, I get a normal output. When I add an output dir sfdx force:apex:test:run --codecoverage --resultformat json --outputdir ./test-...
0
votes
0answers
12 views

Permission ViewAllData depends on permission(s): ViewAllForecasts

Getting this error while updating the Permission Set with "View All Data" permission through SFDX/ScratchOrg. NOTE: We do not have forecast enabled.
0
votes
0answers
13 views

What is the use of nonamespace flag in the force:package:create command?

Type: string -e | --nonamespace Optional Creates the package with no namespace. Available only for unlocked packages. Useful when you’re migrating an existing org to packages. But, use a namespaced ...
0
votes
0answers
20 views

XML format for retrieving the forecast type in Forecast settings [closed]

XML format for retrieving the forecast type in Forecast settings. Please find the below code <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce....
5
votes
1answer
76 views

How to re-order standard and link buttons in object list view?

I would like to re-order the buttons in the Case list view. Where: Change Owner - standard New - standard Create New Enquiry - Link Button Here's the settings from Search layout: My initial ...
1
vote
0answers
34 views

capture sfdx command errors

One could call a sfdx command from a salesforce sfdx plugin, for example: import Report from "@salesforce/plugin-apex/lib/commands/force/apex/test/report"; ... export default class ...
1
vote
0answers
27 views

LWC1500 SFDX error retrieving 'Rich Text Area' field using @salesforce/schema

I am facing LWC1500: Invalid module id "@salesforce/schema/sObjectName.RichTextAreaField__c" when deploying through SFDX deploy. Does anybody knows why? I also tried another Rich Text Area ...
0
votes
0answers
36 views

Updating a list of records in LWC when Object is not supported by uiRecordApi [closed]

I am pretty new to LWC development and still learning the ropes. I am trying to create a custom solution for an object that does not support triggers, list views, uiRecordApi nor being the object that ...
1
vote
0answers
79 views

Error deploying field with VS Code "Method not implemented"

I am unable to deploy field changes to my dev org with VS Code, due to the following error when running SFDX: Deploy source to org: An error was encountered during conflict detection. ...
12
votes
2answers
280 views

Project structure and modular development best practices

I want to stop using the usual force-app/main/default single folder project structure in order to better organize my projects and decouple dependancies. While researching about this practice, I found ...
0
votes
0answers
31 views

Error when creating scratch org "The processMetadataValues entry for TriggerType has an invalid value."

I try to create a scratch org, but every time I get the error "The processMetadataValues entry for TriggerType has an invalid value." <processMetadataValues> <name>TriggerType&...
0
votes
1answer
15 views

Issue with installing the SFDX CLI in Linux

I had some issues with my SFDX CLI as I was not able to use SFDX commands from the terminal of my VS Code in Linux. So I looked up on the web and as part of one solution that I found on web, I was ...
0
votes
1answer
25 views

Deploying to Scratch Org in Jenkins pipeline with ant

I have a Jenkins script to generate a scratch org, make a user for that scratch org along with a password. When I try to deploy using that username and password I get build/lib/deploy.xml:26: Invalid ...
0
votes
1answer
32 views

2gp, 2 dev hubs, 2 repositories, 1 namespace. Will there be ancestry issues?

I have a 2gp, namespaced package working great. My question is, if I want to experiment in a fork of my git repository, wipe out my sfdx-project.json file in the fork, link it to a NEW dev_hub in the ...
6
votes
1answer
166 views

How do I enable functions in my DevHub org?

I have enabled DevHub in my developer edition org. But I am still not able to enable "Salesforce Functions". Any idea?
1
vote
1answer
27 views

How to retrieve metadata to a custom folder by using default method "Retrieve Source in Manifest ORG" in Visual Studio?

In my ORG I didn't add to repository the default folders like so It was done like the following image: That is, the root files starts in src/ folder instead of force-app/main/default/* It brings ...
0
votes
0answers
24 views

Delegated Authentication Login in Salesforce

I've to create a Delegated Authentication in Salesforce with LDAP. I've the POST call with the generated token (I've used Axiomsso Herokuapp) that return me the SID: POST: https://test.salesforce.com/...
0
votes
1answer
19 views

SFDX: Is it possible to retrieve and deploy Lead record type assignments for the Salutation standard value set?

I made some changes in the Salutation standard value set which I'd like to move across Sandboxes. For the picklist itself it's easy as the Salutation StandardValueSet is possible to retrieve via the ...
0
votes
1answer
26 views

Is it possible to link a namespace frome a developer org to a developer hub

We currently have an unlocked package with a namespace linked to a developer edition hub since at the time we where not aware of the limitations. Since we have the limitation to only do 5 package ...
1
vote
1answer
59 views

Access token doesn't change with JWT flow

I have a connected app to use the JWT flow and I generate the access token with sfdx force:auth:jwt:grant command. I noticed that the obtained token is always the same even after a day. I would expect ...
0
votes
0answers
15 views

Can we override a New Standard button to launch a Flow in Salesforce?

Is that possible to override New standard button to lunch a Flow in lightning? any advice will be helpful. Thanks
3
votes
1answer
46 views

SFDX: How to retrieve the active, but not the newest version of a Flow?

While working on a Flow implementation, one can create multiple versions of it. Let's say I have my first release ready, Flow's name is "TestFlow". I'm retrieving it with the following ...
0
votes
0answers
29 views

Queue Deployments Using DX Requires Setup in UI

I have a queue for new opps that looks like this: <Queue xmlns="http://soap.sforce.com/2006/04/metadata"> <doesSendEmailToMembers>true</doesSendEmailToMembers> <...
0
votes
0answers
59 views

Salesforce DX push failed to scratch org with error parsing package.xml-meta.xml file

After created a scratch org, I pushed my visualforce page and got error: Error force-app\package.xml-meta.xml Error parsing file: Element {http://soap.sforce.com/2006/04/metadata}types invalid at ...
1
vote
1answer
23 views

Error: Main markup cannot be empty. If you are trying to delete the Lightning definition bundle, directly delete the bundle instead

I need a help here, i am trying to deploy the Aura components by using Azure Devops CICD for salesforce. i am getting the error : Error: Main markup cannot be empty. If you are trying to delete the ...
0
votes
0answers
100 views

sfdx force:org:list working with cmd but not working with powershell

I have weird issue. i am trying to execute this command. sfdx force:org:list this command is working fine in cmd.exe but it fails in powershell in cmd.exe == Orgs ALIAS USERNAME ...
0
votes
0answers
50 views

cant authenticate SFDX salesforce behind proxy

I am trying to authenticate with salesforce using SFDX CLI. the authentication is working fine when i am on my personal pc over home network. when i tried to authenticate at linux machine in our Lab. ...
1
vote
1answer
40 views

Remove duplicate rules using sfdx

I need to remove the standard duplicate rules before deploying all my metadata into my scratch org. I am deploying my own duplicate rules so now the standard ones are useless. For production and other ...
1
vote
0answers
42 views

DOMException: Failed to execute 'insertBefore' on 'Node' [closed]

Getting Below error in the console Uncaught (in promise) DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. at ...
0
votes
1answer
37 views

sfdx problem on wsl - CMD.EXE was started with the above path as the current directory. UNC paths are not supported

I try try install SFDX on my WSL (Ubuntu 20.04 LTS on WSL with Windows 10). Looks like the version 7.119.2 has been installed, but when referencing sfdx, it doesn't hit the one installed on Linux, it ...
2
votes
0answers
19 views

Migrate to husky v7 pre-commit hook

how do you migrate the pre-commit hook in an sfdx project to husky v7? I've tried running husky-4-to-7 but got the following error: ⚠️ pre-commit hook may need to be manually updated to be run via ...
0
votes
0answers
10 views

lightning:unsavedChanges not works with console application

lightning:unsavedChanges not works while doing tab switch in console application. It works fine on tab switching in standard application. Any thoughts?
3
votes
1answer
42 views

How can I see all my active Orgs in the VS CLI and remove the expired ones?

So I want to remove the expired Scratch-Orgs and get a list of my valid Orgs including the scratch orgs?
0
votes
1answer
37 views

Do SFDX projects really need multiple jsconfig.json files? [closed]

I have a project with folders breaking up web components into groups, generally by the role of the user who will be using them, along with a folder for components shared across the app. So my projects ...
3
votes
1answer
73 views

Question about Unorganized Org/Sandboxes

So I'm fairly green when it comes to development. I left a company that had an insanely structured enterprise Salesforce organization with many teams and joined one that I'm realizing is pretty much ...
3
votes
2answers
124 views

How can I see the sfdx version Number in the cli?

So I am trying to see the exact version of the sfdx I am using any hints?
1
vote
1answer
30 views

Error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY When using Bulk API 2.0 to insert 850 pricebookEntries

I am using postman to access the Bulk API 2.0 and am trying to import mass PricebookEntries into a new Pricebook. It worked seamlessly on my ScratchOrg and now it says: ...
0
votes
0answers
22 views

SourceMember records behavior and lifespan

With source-tracking activated scratch and dev orgs you will find the SourceMember sObject on Tooling api. I have observed that whenever a change is made in the org, a record is created in its table, ...
4
votes
1answer
37 views

sfdx source push command interruption

When I am deploying metadata using sfdx force:source:push to my scratch org, if for whatever reason I decide to interrupt the process CTRL+C (missing metadata, or need to change a file) and then re-...
2
votes
0answers
24 views

CumulusCI error - 'utf-8'

When I try to run command like cci service connect github or cci org scratch dev <alias> --default I've received error 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte I ...
1
vote
0answers
23 views

How to package a custom domain name for Experience (Community)

I have an experience that is packaged in an unlocked package. In production, we are using a custom domain, but we are not using that in the sandboxes. Whenever we deploy the package to production, ...
1
vote
1answer
22 views

CumulusCI 'utf-8' error

When I try to run command like cci service connect github I've received error 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte. I am working on WSL. CumulusCI version: 3.44.1. ...
1
vote
1answer
19 views

PermissionSetGroups in Unlocked Packages

Is there any restriction to PermissionSetGroups in Unlocked Packages? saulo_XXXXX@SAULOS-MBP commerciallending % sfdx force:package:version:create \ --package "XXXXXXXX" \ --path force-app \ ...
1
vote
0answers
12 views

Unlocked Packages: permission set names error on creating a package version

When executing sfdx force:package:version:create to create a (namespaced) unlocked package version I am getting the error bellow: ERROR running force:package:version:create: Multiple errors occurred: ...
1
vote
1answer
25 views

BulkAPI 2.0 Import PricebookEntries via Postman getting this error:STANDARD_PRICE_NOT_DEFINED:Before creating a custom price, create a standard price

I have setup the Postman requests to talk to the salesforce BulkAPI 2.0 because the dataLoader doesn't work (MacBook M1). The import of the pricebookentries fail at a point because when I import the ...
0
votes
0answers
23 views

How can I show a "div" that pops up from within a "div class='slds-scrollable_x'" over all other elements?

THE CONTEXT: I am in the process of implementing via HTML and SLDS styling, a datatable that is inline editable and has resizable columns. When the user clicks on a cell, an input 'pop up' is shown to ...

1
2 3 4 5
47