Stack Exchange Network

Stack Exchange network consists of 174 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

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
0answers
27 views

Apex test run doesn't report back to sfdx

I used to run Apex tests using sfdx force:apex:test:run -r human -c command and everything was fine. But after I've created another scratch org this command no longer produces any result, it just ...
3
votes
1answer
17 views

SFDX Second Generation Packaging - Managed Package questions

Looking at second generation packaging for managed packages and am a bit confused on feature parity with 1st gen with regards to managed packages.. Primary concern is that things are set up correctly ...
1
vote
0answers
18 views

Custom Tab not Visible after deploying Un-Managed Package to different environment

I have custom tabs and I have created Un-Managed Package and deployed it on new environment. But custom tabs are not visible on new environment. Profile level visibility is set to Default On and ...
2
votes
0answers
19 views

SFDX Can't Pull Source from Scratch Org “Metadata API received improper input” AppMenu and AppSwitcher [duplicate]

I'm using SFDX and I made a change to the visibility of my app in my scratch org but when I try to pull the changes down (sfdx force:source:pull) I get: ERROR: Metadata API received improper input....
0
votes
2answers
33 views

Does Salesforce DX support Amazon Linux AMI?

Is there any way to install Salesforce DX CLI on an Amazon Linux AMI EC2 instance or does it only support Ubuntu? If it doesn't support the AMI OS, Is there anything on the roadmap? I need to the DX ...
3
votes
1answer
37 views

Is there an SFDX plugin that allows an existing field to be updated available somewhere?

I'm in the middle of writing a Jenkinsfile so we can have one Jenkins job that handles multiple branches and multiple org configurations. For the multiple org configurations, I'm using the parallel ...
0
votes
0answers
25 views

SFDX Custom Fields not getting Deployed

I am seeing some bizarre behaviour while using SFDX force:source:push command. There are few custom fields in the source directory like given below with specific field-meta.xml files. force-app/main/...
0
votes
0answers
34 views

Why am I getting “this.log is not a function” when running sfdx CLI commands?

I've installed the sfdx CLI utility but I cannot actually run any commands, as anything I try I get the following error: ! this.log is not a function This seems to be some sort of Javascript ...
2
votes
1answer
35 views

Does sfdx force:source:deploy have major functionality that sfdx force:mdapi:deploy doesn't have?

The set of SFDX source commands has grown to include (presently beta): sfdx force:source:deploy and that seems similar to the mdapi commands: sfdx force:mdapi:deploy What is different? (In ...
1
vote
0answers
14 views

Trying to deploy HEDA package in a scratch org

I'm trying to add fields to an object (hed__Affiliation__c) in the HEDA package. But when I install the package in my scratch org with the "sfdx force:package:install" command I can't see that object....
0
votes
0answers
18 views

How to create a scratch org with managed package with changes? [closed]

I have a requirement where my Production org. has a manage package and developments are done on top of that. I want to move to Dx based development, but I'm finding it hard to create a scratch org ...
2
votes
0answers
29 views

Limitations of Apex Replay Debugger in VS Code

global class Opportunity_EmailService implements Messaging.InboundEmailHandler { public Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env) { ...
1
vote
0answers
24 views

SFDX: Authorize an Org failed

Hello i have a problem during Authorizing existing Sandbox via VS Code. I am using SFDX: Authorize an Org It will redirect me to Browser where i will put my credentials. However it will redirect me ...
0
votes
2answers
30 views

Use Visual Studio Code to work on Sandboxes and normal Developer Editions plus deploy on Production

I've used eclipse for a lot of purposes. At the beginning to write code and later mostly for deployments. Now I see, that Salesforce is focusing on Visual Studio Code for the future. I love and hate ...
0
votes
1answer
27 views

Unable to execute lightning sample test for non-Chrome browser

So, I've never done this before, so I beg a pardon if the answer is quite obvious. I wanna dive into lightning testing service, but I've faced the following problem at the very beginning. So, after ...
3
votes
1answer
62 views

Error creating Scratch Org - The Streaming request failed to handshake

I'm trying to create a scratch org using either VS Code or the command line. I'm able authenticate to my dev org using: sfdx force:auth:web:login This works correctly. However when I try to create ...
1
vote
0answers
17 views

“Unverified org Wide Email Address” Error on Workflow even if email is verified [duplicate]

We have a org wide email addressed which has been "Verified" into our sandbox. I understant org wide email addressed is unsupported metadata, so this was achieved as pre deployment step. Into our ...
1
vote
0answers
12 views

Does Unlocked Package support Person Account?

I'm having problem trying to create Unlocked Package with dependencies on Person Account. So, I would like to know if it is officially supported or not?
0
votes
1answer
15 views

how to reference a static resource in my local DX project

I'm trying to reference a .csv that is in my project as a static resource. I'm trying to use the .csv in a test data factory class. Coming from Javascript I'm used to importing files at the top of ...
6
votes
2answers
42 views

Does SFDX add any way of automating the setup of business hours?

It wasn't (and I assume still isn't?) possible to programmatically set up business hours via Apex code in unit tests: Set Business Hours in Apex Test Code Creating Holidays and Business Hours in Test ...
0
votes
0answers
15 views

SFDX force:mdapi:convert for metadata from Managed Package

I'm trying to migrate to sfdx, but right now just in the exploratory phase. The package.xml I'm working from is essentially a full org metadata pull that was generated via MavensMate, and I configured ...
0
votes
0answers
15 views

sfdx force:source:pull FAILS when topics for sobjects are set

I created a scratch org and set topics for a custom sobject. It did not give me errors during the first sfdx force:source:push, but now I cannot do a pull or push as I face this error. ERROR: ...
1
vote
0answers
13 views

force:mdapi:convert duplicate files

I've been trying to commit to having version control in our org, and I have been using DX to do so. My biggest complaint right now is that I end up having a ton of .dup files. And I don't know of the ...
2
votes
1answer
30 views

How to setup Bamboo with Salesforce CLI?

Is there any guide on how to setup Bamboo with the Salesforce CLI. We are not using SalesforceDX yet but just want to setup a job to deploy from GIT repo in BitBucket onto a sandbox. I guess the steps ...
1
vote
1answer
24 views

SFDX “Develop Against Any Org” overwrites changes

"Develop Against Any Org in Visual Studio Code" As far as I understand, the feature of VSC SFDX extensions that allows to develop against regular sandboxes, allows only to retrieve and deploy, not ...
0
votes
1answer
26 views

How to get a complete new PULL of the scratch org components?

Currently when we issue the sfdx force:source:pull -f command, SFDX only pulls the differences in components. I want to know if there is a way to get a complete refreshed copy of "force-app" ...
0
votes
1answer
44 views

Why I use Split() function have Error in lightning component like this?

var selectedField = component.get("v.selectedField"); var resultArray = selectedField.split(','); when I use split method display this error,who could tell me why? Error: Uncaught Action failed: [...
2
votes
1answer
20 views

How to “Enable access levels for sharing report and dashboard folders” with DX or MDAPI

In order to create report folders, you must check the box "Enable access levels for sharing report and dashboard folders" in Classic setup (search Folder Sharing in setup). Is there any way to ...
0
votes
1answer
18 views

Errors when building an upgrade version of a 2GP

I've got a managed package built with 2GP packaging which always returns errors if I try create new version with the ancestorVersion set. I'm not a total noob to this, as I have other packages built ...
0
votes
0answers
10 views

Font face is not supported by <c:StepApprovers Sorted By Level> in Visualforce Email Template

I using Visualforce Email Template for sending mails. Font face is not supporting for <c:StepApproversSortedByLevel> but it is supporting for <c:ApprovalEmailFrom> component. <...
1
vote
2answers
76 views

Is this possible to position label for lightning:select on the left?

<lightning:select name="SelectOrNot" value="{!v.selectField}" label="Select One" > <aura:iteration items="{!v.TheOptions}" var="po"> <option value="{!po}">{!po}</option&...
3
votes
1answer
52 views

Deploy sfdx project to another sandbox with CI

SFDX project folder structure is little different from previous folder structure where all metadata folders are inside src folder. ANT agent on our Continuous Integration tool works for the old ...
0
votes
1answer
22 views

Where & how to find out what can be automized on SFDX scratch org creation

How do I find out what can be automized regarding scratch org settings and preferences? And where? I just learned that things that cannot be directly set in project-scratch-def.json might be pushed ...
1
vote
0answers
22 views

SFDX VCS repository setup with both DX and metadata source

Is there a best practise how to organize git repository with both dx source format (using unlocked packages) and metadata format? If there would be few projects started with DX source development and ...
0
votes
0answers
26 views

I got an error when I took a command called Pull

Everyone. I'm japanese. I'm sorry,my English is not good. in trouble. please give me a solution. The command I did sfdx force:source:pull ERROR: Entity of type 'CustomField' named 'Case....
0
votes
1answer
98 views

ERROR: Invalid record ID. Specify valid record ID value

I have set up Travis CI based on the salesforce trailhead for it, I have used the .travis.yml file, completed the steps. However, when the Travis CI tries to create a scratch org (sfdx force:org:...
2
votes
1answer
59 views

How do you create a package version with dependencies on both 2GP and 1st gen managed packages

I am working in a scratch org, developed the package. Everything is working fine. I created the package. Then when I go to create the package version it always fails on Unknown types for the ...
0
votes
1answer
31 views

“ERROR: self signed certificate in certificate chain.” on SFDX force:auth:web:login

Could not find the issue hence asking, after updating SFDx to v43. When trying to connect to a sandbox i am getting - "ERROR: self signed certificate in certificate chain" I have run below ...
5
votes
0answers
62 views

SFDX Scratch Org Error: Invalid record ID

I am following trailhead steps on setting up DX and encountered this error during creating my default scratch org. The command is: sfdx force:org:create -f config\project-scratch-def.json --setalias ...
3
votes
0answers
27 views

Implement and run post-install script for unlocked sfdx package

The title basically says it all: I am using SFDX (Unlocked packages) and I am looking for the same functionality that ISVs have to run apex code post-install after a package was installed. I did not ...
2
votes
3answers
171 views

SFDX CI: Invalid record ID. Specify valid record ID value

I'm trying to follow Continuous Integration Using Salesforce DX trailhead module, however, I'm using my own repo (I didn't clone the sample repo that is provided). I've used their .travis.yml file ...
1
vote
2answers
24 views

SFDX Jenkins Setup: Scratch Org not accessible from remote machine

I am currently doing a POC for the Continuous Integration in Salesforce DX through Jenkins. My Jenkins Setup is such that the job-run creates an on-demand agent which executes the job and gets scraped ...
1
vote
1answer
17 views

How do you promote a second generation package

I have all the permission set according to the documentation. I also have a perm set assigned to create and update second gen packages. Second Gen packaging beta is enable in the dev hub org... ...
7
votes
1answer
142 views

Second Generation Packaging Confusion

Bear with me but I am completely confused as the documentation is fragmented, not entirely specific, and contradictory in places. Background I am creating an unlocked no namespace package for our ...
3
votes
2answers
186 views

SFDX: create project using manifest not available

I have visual studio code installed in my desktop and updated SFDX to its latest version. However, when I open up the command palette for 'Create project', I am seeing only the following two options ...
1
vote
1answer
66 views

How to automatically enable Recordtypes for Scratch org admin

Whenever I create my scratch org I have to manually assign Record Types to the Standard User and System Administrator profile. Is there any way to automize that?
7
votes
2answers
107 views

Scratch org is created without Alias and reports “Cannot read property 'timeout' of undefined.”

From one day to the other I am unable to create scratch orgs using the command which worked before: sfdx force:org:create -f /Users/path/to/scratch-def.json -a MY_ORG -v DevHub -s -d 30 I receive ...
1
vote
1answer
27 views

How to customize the auto-generated user of a DX scratch org

I am using SFDX to develop an app for German users. My tests assume the test-running users has EURO as default currency. Therefore my tests fail as the admin user auto-created with a scratch org uses ...
0
votes
1answer
31 views

How to connect an image to a specific email

I have a folder with 10k images - a specific image to each user I have in my system. I want to send an email and present to each user the image that belongs to him. Any idea how can I do that?
1
vote
0answers
30 views

Salesforce DX Unlock Package Trail Head

I am trying to complete the salesforce DX trail head Module for unlock Package. By the time of creating a scratch org as mentioned in the step it throws below error. ERROR: No such column 'Settings' ...