Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
16 views

Estimation of Translation in Salesforce

Can anyone tell me if i want to translate the complete org into 10 different languages how much time will it take? Is there any elemnts in org that cannot be translated? If i am translating the org ...
0
votes
1answer
35 views

Is this a problem with the salesforce lint tool?

I can't push this lightning web component to my environment because its showing an error with the markup but I can't seem to get around it. Is there a workaround for this or just an issue that needs ...
0
votes
1answer
29 views

importing SLDS or Lightning CSS in LWC (Locally)

Now that LWC can be built locally I'm trying to create a simple data table but CSS won't apply. I'm sure I'm doing something wrong while importing or referencing the SLDS CSS file. Can someone please ...
0
votes
0answers
13 views

How to add ignore managed package components in forceignore file?

How to ignore packaged components in forceignore file? I tried with below but not working. can you please look and suggest to me. **/*CloudingoAgent__* *CloudingoAgent__* package namespace start ...
0
votes
2answers
16 views

SFDX - force:source:deploy ignoring apiVersion override?

Using the SFDX cli, I exported some metadata from a dev org using the manifest option along with a package.xml file. (The package .xml specified api version 37.0) Now that i'm trying to push the same ...
0
votes
1answer
20 views

Second Generation Package metadata deployment to packaging org

I'm having issues deploying my mdapi output directory to my packaging org. I'm using SFDX and second generation packages. I'm almost considering trying to create a 1GP from my source. Do the following ...
0
votes
0answers
15 views

Visualforce page iframe throwing 404 error

I am loading a site using iframe in salesforce visualforce tab. When I hit that URL in browser it's working fine and redirecting to SSO authentication. But when i load it in VF tab I am getting 404 ...
1
vote
0answers
17 views

Unable to delete object translation

I was working on a scratch org and while pulling the changes got object translations for Lead back. Also I accidentally deployed these changes to an org. Now when I am trying to delete or remove ...
2
votes
1answer
51 views

SFDX force:org:clone not working

I am playing around with the force:org:clone command(which is in BETA) but can't get it to work. Here's the command I put together: sfdx force:org:clone -u me@mysandbox.com.full -a FULL_CLONE -t ...
1
vote
1answer
24 views

[SFDX]: Warning: force:org:clone is not a sfdx command

I am trying to use the force:org:clone command(which is in BETA) but my SFDX tells me it doesn't exist. https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/...
0
votes
0answers
18 views

Aura Quick action not working for one of the profiles

I have a custom quick action button on the page layouts and it is working for all the profiles except one. Following error is coming Can someone help me with this?
6
votes
1answer
89 views

Lightning Web Component (LWC) not evaluating if:true from test

I am trying to write some Jest test for my LWC and is encountering issue evaluating the if:true attribute. Below is a sample of my code: import { LightningElement, track } from 'lwc'; export ...
0
votes
0answers
21 views

jq unable to process sfdx json output

I am trying to parse json output from sfdx commands. Somehow jq throws the below exception. Unable to figure out. I am trying this in bash shell in windows 10 environment. $ sfdx force:schema:...
2
votes
0answers
17 views

How to setup ESLint in VSCode to work with every project?

Below is the process I am doing in VSCode to setup for every project I create: run command npm init from project folder and this is creating package.json file. Run the command eslint --init and it ...
0
votes
1answer
23 views

sfdx force:source:pull -> Entity of type 'AuthProvider' named '' cannot be found

I am trying to do a sfdx force:source:pull from a scratch org where I defined and authenticated a Named Credential and Auth Provider (OAuth2 Named Principal). I get: • RetrieveFailed - Entity of ...
0
votes
1answer
53 views

Unable to run sfdx command after installing Salesforce CLI

Error: Cannot find module '../dist/versions' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) at Function.Module._load (internal/modules/cjs/loader.js:508:25) at ...
7
votes
1answer
116 views

Do SFDX commands count toward limits?

I am looking into utilizing some SFDX commands to possibly use for some data integrations and/or one-time loads. Do these commands count toward the same API call limits as API calls and Bulk API ...
0
votes
0answers
18 views

Permissions sets not be converted through sfdx

I pulled down my mdapipkg and ran covert and it isn't converting it. Not getting an error. Any idea on why that might be, a month ago it was working, not changed locally in my sfdx environment since ...
0
votes
0answers
16 views

force:mdapi:deploy fails with RunLocalTests + test coverage > 75%

As other people (see Code Coverage during sfdx force:mdapi:deploy) I am unable to move code using sfdx force:mdapi:deploy to another org due to Apex Class Coverage. But as @sfdcfox notes out: If ...
7
votes
0answers
41 views

Is there a way to automate the deployment of changed picklist values in a pipeline using SalesforceDX?

Sometimes we need to change the label or, more commonly, a value for a picklist item. Suppose we do change the fullName attribute of a picklist field, to match an external system that will integrate ...
2
votes
0answers
15 views

Permission set error while installing unlocked package

I have created an unlocked package version and while trying to install it in production, I am getting an error: Permission Create Invoice_Approver__c depends on permission(s): Read Order__c ...
0
votes
1answer
39 views

How to get non-SFDX folder structure in VS Code in Dev Hub enabled Org?

We have enabled Dev Hub in our org but we are not using Salesforce DX. Since Dev Hub is enabled, when we create projects, we get SFDX folder structure. But when we do code merge, our code repository ...
6
votes
2answers
50 views

In VSCode is it possible to make SFDX Retrieve Source From Org confirm before proceeding?

I'd like VSCode to confirm with me when I run command: SFDX Retrieve Source From Org Before proceeding, because I regularly select the wrong option when right clicking. Is there a setting or option ...
0
votes
2answers
38 views

Benefits of Salesforce integration with GitLab over salesforce DX?

Salesforce has partnered with GitLab. Salesforce DX tools enable test automation and continuous delivery,but getting started can be daunting.We have partnered together to provide templates that ...
0
votes
1answer
30 views

How to check deployment history in production org

In production org when I click on the deployment status, it shows a list of passed and failed deployments like below image if it is deployed from a changeset then in name section it shows the name ...
2
votes
1answer
101 views

How is this possible to use the Salesforce CLI after changing my user's password?

Couple of days ago, when logging in to the Org via browser, I was prompted to update my password. Last time I used Salesforce CLI was 2 weeks ago and today I had to do it again. However, no password ...
0
votes
1answer
42 views

Is this possible to map results from one SFDX command to another SFDX command?

What I am trying to do is to automatize a process of passing results from one SFDX command to another SFDX command and I struggle to implement that. My source command is sfdx force:package:...
1
vote
0answers
43 views

Why “sfdx force:auth:web:login” encounters runtime error, and how to get around it?

I am trying to develop with Salesforce DX. There is a new problem since I restarted this project after a two-month break. Every variation of the auth:web:login command fails the same way. force:org:...
0
votes
0answers
25 views

SFDX Setting Default Org “getaddrinfo ENOTFOUND localhost” problem

When I try to set a default org in vscode, errors which is shown below picture returns. I think it is related with host file but I couldn't find solution. How can I solve this? tarting SFDX: ...
0
votes
1answer
26 views

How to set the externalSharingModel for managed package objects using automation?

Related to System.runAs for CspLitePortal Profile Users recently started returning no rows, I am now wondering how to automate the setting of the external sharing model for some SObjects contained in ...
1
vote
1answer
26 views

Can managed packages be installed in parallel?

Some of our Jenkins build install three largish managed packages sequentially taking about 30 minutes. I assume that these installs cannot be done in parallel instead cutting that time down to 10 ...
0
votes
1answer
25 views

Using SFDX to retrieve the report meta data

I need to check if a field is being used in any of the reports in the org. So I created a sandbox environment and created a manifest project in VScode; then authorized the sandbox org and ran the ...
0
votes
1answer
29 views

Schedule the batch call for same Parent but Run it without Scheduler if the Parent Account are different

I've a Batch class RecordsUpsertBatch whose job is to Process the Account's Child records. In some scenario I was hitting that batch twice/multiple times back-to-back for the same Account's child list ...
4
votes
1answer
29 views

enable “Data Protection and Privacy” when creating scratch org

Is there any way how to automatically enable "Data Protection and Privacy" option during creation of scratch org (in definition file)? I didn't found any mention about this metadata in Metadata API ...
0
votes
0answers
25 views

Why it reported The metadata deploy operation failed?

First, I used the below command to do a apex class test - sfdx force:mdapi:deploy --checkonly --testlevel RunSpecifiedTests --runtests ProvisioningQuestionDelete_CC_Test --zipfile b.zip and then i ...
3
votes
2answers
69 views

Don't see option “SFDX: Push Source to Default Scratch Org” in the command palette in VS Code

I have an sfdx project opened in VS Code as workspace folder. I don't see the option for "SFDX: Push Source to Default Scratch Org" in the command palette. Other commands like "SFDX: Refresh SObject ...
0
votes
1answer
20 views

Query Data category tree structure by SOQL statement

Using SOQL statement, I want to query the Data Categories tree structure that I have created on Saleforce. How can I do this?
-1
votes
0answers
13 views

My webassessor salesforce name showing incorrect

My webassessor salesforce name showing incorrect.i called Crypton, and they are telling to raise case with Salesforce, i raised case with salesforce, but still my name is not updated. my details are ...
14
votes
5answers
939 views

What are the real benefits of using Salesforce DX?

Hopefully this doesn't across as a rant. I'm genuinely interesting in objective feedback as to what are the benefits of using DX. I know all feedback is opinionated, but one thing is saying "devops ...
0
votes
0answers
10 views

How to deploy report and dashboard folders with sharing to non scratch orgs

Can deploy dashboard and report folders using push:pull to scratch orgs, but when using source:deploy to a non scratch org getting "Error parsing flie Element (path to folder file meta.xml) on all ...
7
votes
1answer
51 views

Is this possible to rename a field using Tooling API or Ant Migration Tool or SFDX CLI?

I have tried to run renameMetadata call from Ant Migration Tool <target name="1. Rename field on Sandbox"> <sf:renameMetadata username="${sf.Sandbox.username}" password="${...
2
votes
1answer
25 views

How to change custom object fields in scratch orgs and get updated metadata with sfdx force:source:pull?

We have renamed certain fields on a working scratch org, and we expected the renaming to work correctly. However, when we perform sfdx force:source:pull the changes in validation rules flows ...
3
votes
0answers
25 views

How can “sfdx force:user:create” be retried?

We are using a Jenfinsfile in Jenkins to execute SFDX commands. The Jenkins user is connected to our Dev Hub. In one of our builds, we want to create a Customer Portal User, but in a small percentage ...
1
vote
2answers
51 views

SFDX: where can set Field-level security and accessibility?

Every time I push my app to a new scratch org, I'm having to go into each field of each custom object to set the field-level security and accessibility (except for the required fields). I didn't have ...
1
vote
1answer
19 views

Purpose of VERSIONNAME in sfdx force:package:version:create

In the SFDX CLI Docs, the commands force:package:version:create takes both a VERSIONNUMBER & VERSIONNAME. The description for VERSIONNAME is: -a | --versionname VERSIONNAME Optional The name ...
1
vote
0answers
26 views

sfdx create package version connected app error

I'm trying to create a managed package with a connected app. I have created the connected app in a scratch org and pulled it into source control (without the consumer key). After creating a package ...
0
votes
1answer
19 views

Error When Deploying Quick Action With Predefined Lookup Field

I have a Quick Action which works fine and has predefined field to a lookup record, AddressType, though it happens in all cases. When deploying to scratch org I get error Formula result is data ...
0
votes
0answers
30 views

Need to create summer 2019 scratch org [duplicate]

Can someone tell me please how can I create a scratch org that is on the preview list for summer 2019 release? I don't want to wait till June 14. Here is the page with release dates for summer 2019:
6
votes
1answer
89 views

Get Lightning Web Component (LWC) definition on a describe

I need to describe a Salesforce Org that contains LWC, but the JSON obtained with the command: sfdx force: mdapi: describemetadata -a 44.0 -u username does not define me the LWC that should be ...
0
votes
1answer
36 views

How to enable '“Enable Milestone Feed Items” in scratch org through metadata file or configuration

How to enable Enable Milestone Feed Items,Show the time remaining in actual hours, not business hours, and Enable stopped time and actual elapsed time in scratch org through metadata file or ...