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
11 views

Problem importing data with standard lookup via Salesforce DX

So problem is with Contact records. There is required lookup field called Account Name ( API Account ). So i did download records with SFDX commend : sfdx force:data:tree:export --query "SELECT ...
0
votes
1answer
33 views

Trigger Test fails because check for roll-up field value in Trigger finds old value

I have a trigger on a custom object, Subscription__c, (child of Account) which is supposed to give the Account TelemarketingPrioritizedFor__c = 'Winback' if, and only if, the field ...
-1
votes
0answers
22 views

Deployment by using Salesforce DX [on hold]

What are consideration we need to follow to deploy by using SalesforceDx
2
votes
0answers
25 views

How do I access a Rest endpoint on a scratch org?

I've set up a connected app and a rest endpoint on a scratch org but can't access it through either the workbench, Postman or client code. I get the following error in each case: 404 Not Found ...
2
votes
0answers
17 views

Renaming a class results in an error from sfdx packaging 2

I've built a managed package using SFDX and the new packaging features. I recently did some refactoring on a public class in the package (note: public, not global) which included giving it a better ...
1
vote
1answer
22 views

WSDL2Apex for Visual Studio Code & Salesforce DX

Is there a WSDL2Apex extension for Visual Studio Code, which would allow us to use a WSDL Url or file to generate Apex classes in our Visual Studio Code Salesforce DX project?
0
votes
1answer
10 views

SFDX: Create a softphone layout with SFDX

Is there any way to create a Softphone Layout via SFDX? I have not found any command that explicitly explains how to do it. Any JSON configuration maybe? In case it is not yet supported, does anybody ...
0
votes
0answers
14 views

Automate Drawloop Document Package migration

We are in process of implementing SFDX in one of our project. We use Drawloop to generate documents and want to automate package installation and DDPs migration. Previously, We used to migrate DDPs ...
2
votes
0answers
23 views

Apex compile error ONLY when installing package in sandbox/prod - not in scratch

I've created an unlocked package. It installs fine in scratch, but when I install it to sandbox (or prod) I get a compile error: Apex compile failure, Details: line 116, column 29: Variable does not ...
2
votes
0answers
21 views

How does dependencies affect unlocked packages?

What happens behind the scenes when creating an unlocked package, and especially what is the difference when adding dependencies? Are the dependent packages included in the package somehow, or just ...
2
votes
1answer
39 views

Retrieve a change set from scratch org using sfdx?

I am trying to bundle up certain metadata in a change set in my scratch org. Is there a way to pull that using sfdx? I am having trouble finding the appropriate command in the documentation.
0
votes
1answer
21 views

Do installing a Managed Package (listed in AppExchange) via Salesforce CLI, create a License & Lead in package developer's LMA org?

Can anyone confirm if this is the case. Though I don't really think this should be allowed, but I'm suspecting random licenses occurring and it's a hunch that they are being generated because it is ...
0
votes
1answer
22 views

How to specify managed package dependency

My unlocked package (DX project) depends on a package from the app store, so a managed package. How do I correctly specify this in the project file? During development I've manually installed the ...
1
vote
1answer
37 views

How do I get Apex code coverage statistics when using Salesforce DX & Visual Studio Code

I am using Salesforce DX & Visual Studio Code to develop against a sandbox environment. After running an Apex test from Visual Studio Code, how can I view the code coverage from within Visual ...
0
votes
1answer
25 views

When I am trying to select December 31 from date picker built in Appiphony Lightning JS (ALJS), I am getting wrong value, as below case

Scenario 1: When I select input date Day: 1 Month: March Year: 1996 Expected result = 01/03/1996 Scenario 2: When I select input date - 31/12/1995 from the January Calendar of year 1996 Day: 31 ...
0
votes
0answers
12 views

Unlocked Package install fails: Details: “Your requested install failed” (1259856384)

I have a quite complex package that I can not get installed on any org (Sandbox, Production, Scratch Org) ... The install always fails with the following error message: Install failed, Details: Your ...
0
votes
0answers
9 views

Salesforce DX: source:force:status shows every component as a “Local Add”

Somehow my sourcePathInfos.json gets out of sync with my scratch org. I haven't been able to identify a specific event that correlates to this, but occasionally when I sfdx force:source:push it tries ...
1
vote
1answer
29 views

Using SFDX scratch org for development that interacts closely with 3rd party packages

I'm starting development of a lightning component that will extend functionality of a third party app used in our Production. The 'app' is composed of a dozen or so interdependent managed packages, ...
1
vote
1answer
22 views

Java runtime could not be located” when starting VSCode with the Salesforce Extensions - Java Installed

I have followed the steps suggested on "Java runtime could not be located" when starting VSCode with the Salesforce Extensions. But now I still getting the following error " Code Editor ...
2
votes
1answer
32 views

SFDX: Deploy Source to Org: Very slow

I am using command: SFDX: Deploy Source to Org To deploy Apex code to a sandbox environment. But often it is taking a very long time (multiple minutes) to respond/complete. QUESTION How can I get ...
4
votes
1answer
24 views

SFDX: Deploy Source to Org: Errors do not appear as Problems in Visual Studio Code

How do I get the errors returned from command: SFDX: Deploy Source to Org To appear in the Visual Studio Code Problem Window? As this would allow us to click on the error and be taken directly to ...
0
votes
0answers
16 views

importing Custom Settings to scratch org

I am running into a problem, while trying to import Custom Settings to my scratch org. sfdx-project.json { "packageDirectories": [ { "path": "force-app", "default": true } ], "namespace": "...
1
vote
0answers
26 views

DX: Export/import products with prices

I'm using the sfdx force:data:tree:export (and import) commands to grab some sample data from by sandbox to use with scratch orgs. I want to export some products to use with testing. The products ...
1
vote
1answer
13 views

Does Lightning Professional give access to Salesforce DX, COA and Enviroment Hub?

We want certain users to have access to Salesforce DX, some to have access to Channel Order App (COA) and some to Salesforce Environment Hub. We wanted to know if buying Lightning Professional ...
3
votes
2answers
25 views

How to prep scratch org with currencies

When creating my Scratch org, I've added the MultiCurrency feature, and that works, but I still need to go in manually to add the currencies and set the company currency. Is it possible to to this via ...
0
votes
0answers
17 views

Continuous Integration Using Salesforce DX

I am setting up Continuous Integration Using Salesforce DX. I have set the environment variable using set and still I am getting ERROR: client identifier invalid. I am using below command ...
0
votes
1answer
27 views

How stable is SalesforceDX specs ? How does weekly CLI release maintain backward compatibility

The metadata api source structure has its limitation but it is stable given it is part of metadata API specs, which guarantees full backward compatibility for at least 3 years. That means you can set ...
5
votes
1answer
42 views

DX structure : /main/default, but it doesn't have to be right?

This Salesforce official doc says: Static resources must reside in the /main/default/staticresources directory Is this an outdated document? In my understanding, you can put this in your own ...
0
votes
1answer
31 views

How to create Salesforce DX project sub-modules using Visual Studio Code / Salesforce DX CLI

I would like to break my project into multiple submodules: project - config - module-1 -- main --- default ---- classes - module-2 -- main --- default ---- classes - etc Is there a Visual Studio ...
6
votes
0answers
56 views

SFDX: ERROR: INVALID_OPERATION: rollbackOnError option must be true on a production org. When using Salesforce DX pre-release and Visual Studio Code

I have a Visual Studio Code project which has beed authorised against a production environment. I am using the Salesforce DX CLI pre-release: sfdx plugins:install salesforcedx@pre-release When I ...
4
votes
1answer
89 views

How to run Apex anonymous code from Visual Studio Code

Is it possible / How would I run a block of Apex anonymous code from Visual Studio Code?
3
votes
1answer
35 views

How to switch between Salesforce DX orgs/projects when using Visual Studio Code

BACKGROUND Imagine you're working on 2-3 Salesforce projects each with a different target Orgs (sandboxes for different companies). You're actively working on project 1 (coding, running tests, ...
1
vote
0answers
24 views

Unlocked packages behaving like managed packages

Sorry if this question has been asked before (please point me to the answer if that's the case). I have created and installed an unlocked package successfully in a scratch org. I want to go ahead and ...
3
votes
1answer
25 views

(SFDX - Package Version Creation) — These entities are not supported: (Site)

I'm currently trying to create a package version, but I'm encountering this error: These entities are not supported: [Site] The commands I used for creating a package and package version are the ...
0
votes
1answer
28 views

Deletion of custom field on standard object not detected by force:source:pull

I did the following: In my scratch org I created a custom field (on a Standard Object). Then I executed force:source:pull so I had that custom field in my project folder. I created a new scratch org ...
2
votes
0answers
28 views

SFDX Pull error: Entity of type 'ListView' named XXX cannot be found

While trying to pull changes from a scratch org (sfdx force:source:pull, tried with and without -f), I'm getting this error: Entity of type 'ListView' named 'Note_Relation__c.My_Notes' cannot be ...
0
votes
2answers
26 views

SFDX Development with a Base and Extension Package

Have a bit of an issue trying to develop a workflow to integrate SFDX.... Situation: Base Package Extension Package Base package needs extension package to be installed to operate functionally. ...
0
votes
2answers
51 views

Is it Possible to perform a CLI command in APEX class?

I found the command sfdx force:package:installed:list -u here in this post Query for Package Ids installed on an org? It's a line from SFDCfox's answer. I'm interested in the results that he ...
1
vote
1answer
39 views

HTTP Callout from salesforce to private server URL(VPN connected)

Can we hit a private server URL with HTTP request from Salesforce ?? or the server should always be public. I have make the Post callout which was written in Rails (hosted on Private server- VPN ...
0
votes
1answer
72 views

Visual Studio Code code-completion against Sandbox Org with Salesforce DX

How do I tell Visual Studio Code to use the Symbols from the Sandbox org? I would like to develop Apex using Visual Studio Code, and get code completion based on the configuration / meta-data in a ...
0
votes
0answers
27 views

source:push ERROR: <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre>

I have pulled all custom fields from standard Account object from our sandbox, using manifest and ANT Converted it to dx format using sfdx force:mdapi:convert -r ./codepkgdevRet -d ./mdapipkgdev ...
8
votes
2answers
175 views

Using DX without dependencies hell?

I am thinking of leveraging DX but don't want to go through the dependencies management hell and the whole packaging mess. Basically, I am thinking of just store code in the repo using SFDX and use ...
6
votes
1answer
42 views

Salesforce DX Project Folder Structure

By default the Salesforce DX CLI creates a project with folders: force-ap -- main -- default -- aura And all the examples have files organised by type: classes objects layouts profiles etc....
4
votes
2answers
93 views

How to pull changes from Developer Org when using Salesforce DX CLI

How do I push and pull changes to a Developer Org using Salesforce DX CLI? When I used this command: sfdx force:source:pull I get this error: ERROR: MemberName, IsNameObsolete FROM ...
0
votes
0answers
12 views

How to move picklist on standard object fields into package and convert into dx format

I have added new picklist values into opportunity object,but i am not able to move them into package ,to convert it into dx format could you help me?
4
votes
0answers
55 views

DX: Cannot generate password for additional users

I have a script used weekly to create a scratch org used by a few users for shared config activities (we have not transitioned our non-developer, config only BAs to using the full DX toolset yet). ...
1
vote
1answer
28 views

Help deploying SFDX metadata to a Patch Org?

I'm using SFDX for development, and I've got a managed package in my packaging org. I need to tweak some things and don't want to increment the version... but I don't know how to deploy to a Patch Org....
4
votes
1answer
24 views

Will Salesforce DX work with a custom profile?

Does anyone know if I HAVE to use the standard user profile if I want to assign the Salesforce DX permission set?(I know I can also use sys admin)Or will it still work if I give them a custom profile? ...
0
votes
2answers
78 views

SFDX: how to delete a package

In the documentation, there is a command sfdx force:package:create. This works. If I then issue the command sfdx force:package:list, it perfectly shows the package I just created. Now the question is, ...
2
votes
1answer
16 views

force:package:version:create: Cannot read property '0' of undefined

I created a package that contains some account customizings such as record types and custom fields for accounts, flows, custom objects and a couple of rest endpoints to expose functionality. I can ...