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
2
votes
1answer
30 views

Running the packaged tests while installing with sfdx:force:package:install

Is there a way to run packaged or org tests when we install a Managed/Unlocked SFDX package to an org using sfdx force:package:install?
3
votes
2answers
39 views

Change version number scheme in sfdx-project.json

For the sake of simplicity, I want to change the default version number scheme of SFDX projects from Major.Minor.Patch.Build to Major.Minor like "versionNumber": "0.1.0.NEXT" to something like "...
0
votes
1answer
24 views

SFDX VSCode Unable to Authorize an Org

I've been working using VSCode to develop Lightning Web Components for over 6 months, however today after restarting my machine I am unable to authorize my org. It was able to redirect me to the login ...
1
vote
0answers
18 views

ExperienceBundle: missing property renderPriority

I retrieved a ExperienceBundle and all the necessary dependencies from a sandbox and am trying to deploy to production. I keep having to manually add this renderPriority for a themed community. It ...
2
votes
1answer
18 views

Enable email to salesforce in scratch org definition file

I need to enable this function as part of the CI, soemthing like this: "emailSettings": { "enableEmailToSalesforce": true } But this isn't the right option, i'm having an error to create ...
1
vote
1answer
15 views

XML format for IP Ranges in Security Settings

I'm trying to use sfdx for source based development. Trying to define the range of whitelisted IPs in Security.settings-meta.xml. When I push my code to my org I get an error: Error force-app/main/...
0
votes
1answer
24 views

How to authorise a SSO org in sfdx?

You can authorise an org in sfdx via this command sfdx force:auth:web:login -r https://customer1customdomain.lightning.force.com -a customer1 When the org is SSO-enabled, I can only login by ...
0
votes
0answers
13 views

How can I create a popup form in LWC? [closed]

How to create a popup form containing an input text box with save and cancel buttons in LWC for description entry and open the component as a popup on any page? Can I use the popup form in the mobile ...
1
vote
1answer
15 views

Adding a namespace to already released packages

We already have released one unlocked package in production for six months, without namespaces. We are considering developing new unlocked packages, and we were thinking about using namespaces and ...
0
votes
0answers
11 views

Unable to download image which is stored in attachment

I have used below code,but is not working in my vf page <a href="{!URLFOR($Action.Attachment.Download, attachmentId)}" class="btn btn-info"> Download </a> AND <a href="/servlet/...
1
vote
1answer
33 views

I am getting this error: ERROR running force:source:deploy: The Flow named ListingID_Update was not found in the workspace

I am receiving this error while trying to deploy to a sandbox using sfdx source deploy commands. This the error: ERROR running force:source:deploy: The Flow named ListingID_Update was not ...
3
votes
1answer
30 views

Cannot authorize a Scratch Org via JWT - invalid_grant - user hasn't approved this consumer

I've followed the docs here to create a cert and configured the following; OAuth scopes: api, refresh_token, offline_access and web Permitted users: Admin approved users are pre-authorized Profiles: ...
0
votes
0answers
15 views

how to migrate filters

I have created too many filters on account object (under list view and filter catogory), wondering how to move it using change sets to another org, i tried to look for this in XML package too but ...
1
vote
2answers
21 views

Production Deployment of CustomLabel using VS Code (INVALID_ID_FIELD: Source validate did not run tests in the org)

I am trying to deploy customLabels to the production org. But, I am not able to deploy it as it asks to run the test classes. As we know the custom label is just the configurations, not the codes. So, ...
0
votes
1answer
12 views

The deploy is still in the Queue while saving in VSCode Project with manifest

I'm encountering an issue while trying to save a file in VSCode in a project with manifest. It is not a sfdx project. While pushing to org, I randomly get this error since a few days now : Starting ...
1
vote
0answers
11 views

SFDX - automated conversion & merge to MDAPI format

Currently we are looking into adopting SFDX on our enterprise org. A brief overview of our setup/current status: "Monolith" org Everything is under version control (GIT) - MDAPI format Working ...
0
votes
0answers
7 views

Community builder: customizing a responsive flexible layout

I successfully created a page variation and a flexible content layout. While I can freely adjust columns for desktop views, I can't control columns in mobile/tablet views. Let's say I want a layout ...
3
votes
1answer
69 views

The flag value “before insert, after insert” is not in the correct format for “array.”

If I execute the following; sfdx force:apex:trigger:create --help Then I get output that includes; EXAMPLES $ sfdx force:apex:trigger:create -n MyTrigger $ sfdx force:apex:trigger:create -n ...
1
vote
2answers
1k views

Deployment to Production Org using VS Code

I need one help to deploy different components like classes, triggers, objects, profiles, permission sets, etc from sandbox to the production org. I used following command to deploy all the items on ...
0
votes
2answers
38 views

LWC Not Redering HTML

I am starting out creating a lighting web component, following the Hello World Example. I have set up a Sandbox environment and Authorised the org in VS Code. I have set up a project with manifest and ...
0
votes
1answer
26 views

How can I write a schedule for this batch inside the same class

global class NumberOfContactsBatch implements Database.Batchable<SObject>, Database.Stateful { global Database.QueryLocator start(Database.BatchableContext context) { return ...
1
vote
0answers
28 views

Deploying a community to a scratch org error

I've been given a task to get familiar with SFDX and working with metadata. Currently have a sandbox org with a couple of flows, a community, various custom objects, etc.. that I'm pulling the ...
2
votes
1answer
28 views

Unable to navigate code path for a specific project in VS Code

I am having trouble with navigate the code path by using "Go to definition" / "Peek Preview" for one project. I also don't see any SFDX commands on Command palette. The project has below structure. (I ...
6
votes
1answer
49 views

How can sfdx force:community:create be used to setup a Community in Continuous Integration?

These SFDX community commands are available, but on my first try just running these commands: sfdx force:community:create --name Portal --templatename 'My Template' --urlpathprefix portal sfdx force:...
3
votes
1answer
71 views

“Can only throw this exception type from VisualForce or Aura context” error on sfdx force:source:push

Our CI (Continuous Integration) build has started failing today on the sfdx force:source:push with this error: cvnp.ContentDocumentLinkTrigger: System.LimitException: Can only throw this ...
0
votes
0answers
28 views

how to update field in Lightning Web Component?

In my Lightning Web Component, I have a picklist field called Applicant_attendance__C according to the value of the picklist field the Stage__c field should get updated. Stage field is a read-only ...
1
vote
1answer
39 views

How get a product with a certain UnitPrice?(can I do this in a single request?)

SOQl [SELECT Name,Rating__c,(SELECT Product2Id,UnitPrice FROM PricebookEntries WHERE UnitPrice =: certainUnitPrice) FROM Product2 LIMIT 4] It return all product with some empty UnitPrice
0
votes
1answer
23 views

how get map value and keys which I got (let fieldVAlues =response.getReturnValue();) from the apex method(getPicklistValues)

ComponentController getPicklistValues : function(component) { // let fields = component.get("v.picklistfieldMap"); let fields = new Map([ ['v.typeMizerOptions' ,'...
0
votes
0answers
22 views

Lightning Web Component Navigation Mixing

From One LWC I am trying to open the custom object New Creation Page but getting below error : "This page isn't available in Salesforce Lightning Experience or mobile app" Below is the codes ...
0
votes
1answer
26 views

Cannot find “Custom Settings” in Org Browser (Visual Studio Code, SFDX) [duplicate]

I creating a Custom Setting in a sandbox, called Global Settings (Global_Settings__c). I am trying to pull the Custom Setting into my SFDX project via Visual Studio Code, but "Custom Settings" does ...
0
votes
0answers
21 views

Deploy Standard Object Picklist Values to Scratch Org. API version 48

I'm getting dependency errors when I attempt a test deployment Lead.Status picklist values to a scratch org using force:mdapi:deploy (API 48). The pickilst values are in LeadStatus.standardValueSet-...
0
votes
1answer
17 views

why my handler cant detect changing data attribute <aura:attribute name=“soqlRequestString” type=“String” access=“global”/> passed from MainComponent [closed]

ElectronicCigaretteTableComponent.cmp <aura:component controller="ProductController" implements="force:appHostable,flexipage:availableForAllPageTypes" access="global"> <aura:...
0
votes
0answers
26 views

Can we load a lightning Tab without clicking on it

Currently I have hosted LWC component directly on Lightning Flexi page. But since the data which I'm showing in this lightning component is coming from Callout. And for few of the record data is too ...
0
votes
0answers
21 views

force:source:deploy is not a sfdx command error while trying to deploy through Jenkins

I am trying to setup the CI / CD through Jenkins. I have installed the Jenkins locally and have created a new pipeline project. I am able to successfully authenticate the org using JWT. However, i am ...
0
votes
1answer
42 views

Topics enabled for objects not getting deployed to packaging org

While trying to deploy TopicsForObjects in the packaging org I receive the following Error: Error metadata/package.xml package.xml You cannot install or upgrade a package that has a ...
4
votes
0answers
50 views

SFDX: Deploy Source to Org takes 10+ minutes

Lately, using the Deploy feature from SFDX, components are taking a painfully long time to deploy to the org. This is happening even when deploying a single component. Has anyone else run into this ...
0
votes
0answers
14 views

sfdx force:org:open I can't open in chrome on my macbook pro 2016

I have set up my salesforce environment on macbook pro 16 inch. In macbook pro 16 I just can't get sfdx open to start from chrome but it always start from safari. What I am missing here. I have ...
0
votes
1answer
58 views

Failed to deploy settings to scratch org

I am getting this error while creating the scratch org: [![enter image description here][1]][1] { "status": 1, "name": "ProblemDeployingSettings", "message": "Failed to deploy settings to ...
1
vote
1answer
32 views

Unlocked package name changed or package delete option

I have below questions: Can we change the name of a created unlocked package? Also can we delete any unlock package which is already created? Please provide solution if available.
2
votes
1answer
128 views

Why does VS Code's Org Browser retrieves metadata with different file extensions than Metadata API and what are possible consequences of that?

Let's say I have a Custom Metadata created on my Org: MyCustomMetadata. Downloading its record within Org Browser: Command used: sfdx force:source:retrieve -m CustomMetadata:MyCustomMetadata....
1
vote
1answer
17 views

Is this possible to migrate user records from one organization to another using SFDX?

I am trying to migrate users from one org to another using SFDX. If I include ProfileId and UserRoleId, I receive errors Reference UserRole not found for UserRoleId. Skipping record undefined and $ ...
1
vote
1answer
39 views

Best tool for seeing highlighted covered Apex Code while writing test class

Currently I do most of my development in VScode using sfdx. For writing test classes, I need to see which lines are covered in Apex classes I write. In DX, running commands (see below) to get ...
2
votes
2answers
20 views

Deploying through SFDX source command with -x parameter

I have a pipeline that deploys through a command: sfdx force:source:deploy -x manifest/package.xml -u Prod -l RunLocalTests But my issue is even when I use a package.xml with two fields for Case,it ...
0
votes
2answers
80 views

How to deploy/retrieve ManagedContentType metadata?

I tried to use package.xml in Visual Studio Code, when I retrieve it, it give me the error in the screen shot. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Package xmlns="http://...
1
vote
1answer
28 views

Cannot retrieve WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from package.xml through sfdx cmd

I want to retrieve all my WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from my sandbox and deploy them to another one. Here is my package.xml file : <?xml version="1.0" encoding="UTF-8" ...
1
vote
0answers
27 views

I want to cover the onBlur event in javascript by writing JEST test case in LWC

In my html component i've used an onBlur attribute in div. While writing the test case for the same i am unable to cover the javascript method which I've called in html. My div looks like this <...
0
votes
1answer
18 views

ERROR force:data:tree:import CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY entity type cannot be inserted

My issue is whenever I am trying to sfdx import user records to another org I get this error: ERROR running force:data:tree:import: {"hasErrors":true,"results":[{"referenceId":"ProfileRef1","errors":...
0
votes
1answer
22 views

SFDX: Push Source to Default Scratch Org failed to run (no stated errors just exit code 1)

When pushing code with no visible error I receive the message below: 15:43:39.203 sfdx force:source:push --json --loglevel fatal 15:43:43.134 sfdx force:source:push --json --loglevel fatal ended with ...
1
vote
1answer
21 views

How to use forceignore to ignore all fields on an object and add exceptions

I am trying to do an ignore on all fields on the object Account and only want to add the custom field Name__c on the object Account. How do I achieve this I tried the following: # Ignore Object **/...
0
votes
0answers
18 views

Unexpected Argument with Salesforce DX JWT Auth [duplicate]

I am trying to use JWT to authorize an org so I can use an automated build tool. The command I am running to authorize JWT is: sfdx force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile assets/...

1
2 3 4 5
31