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

force:package:install --apexcompile package — what are the pros/cons of using it

what are the pros/cons of using force:package:install --apexcompile package? Will the package installations be prone to errors? will it have a negative effect to the destination orgs? Can't find much ...
0
votes
0answers
15 views

Error on starting Salesforce DX project

So, I'm trying to use SalesforceDX to develop. But I keep getting stuck on the configuration. It seems to work fine until I get to the pushing part. I'll post the commands I used. Created a Package ...
2
votes
1answer
26 views

What happens to files that aren't included in later unlocked packaged versions?

Let's say I have a package called 'Meetings'. Let's say I have 1 version of 'Meetings' that consists of 3 classes A, B, C. I install this package version in a Production environment. Then let's ...
0
votes
0answers
13 views

Mask Password in Jenkins [on hold]

We had requirement to mask password in Jenkins.Earlier the passwords were mentioned in Environment variables and accordingly used in groovy script as well. Can someone please help how to mask password ...
0
votes
0answers
19 views

Implement CI with jenkins to consider package.xml to deploy to Salesforce

I am implementing CI with Jenkins using Salesforce CLI. The setup worked fine is what i thought initially, however I noticed the issue as the deployment was not considering the package.xml and rather ...
0
votes
0answers
13 views

Sortable Data Grid (Enhanced Lightning Grid) - Error: Invalid datasource. Encountered runtime exception in Apex class: [sortablegrid.sdgProperties]

I am consistently receiving the following error when deploying flexipages to other sandboxes: Error: Invalid datasource. Encountered runtime exception in Apex class: [sortablegrid.sdgProperties] We ...
0
votes
0answers
24 views

Trying to get a regular expression to work in the process builder in Salesforce

AND( ISCHANGED([Contact].Years_Donated__c ), NOT(ISBLANK([Contact].Years_Donated__c )), NOT(REGEX([Contact].Years_Donated__c , "/(^|(.)(?!\2))(\d)\3{3}(?!\3)/" ) I am trying to ...
1
vote
2answers
64 views

Importing ES6 module in LWC project (sfdx)

Trying to do something relatively simple. I've 2 LWC component under the lwc folder: lwc/cmp1 and lwc/cmp2 How can I create a new ES6 module that will serve as a utils.js file and then import it to ...
1
vote
0answers
13 views

Permission error when creating package version with Custom Object

I am trying to restructure my code for sfdx, but a lot of it is (unsurprisingly) built on custom objects. One of the packages I'm trying to create has a custom object that is a detail in a master-...
0
votes
1answer
16 views

Is it possible to use Lightning Sync and still be on Salesforce Classic?

I want to sync Salesforce to Outlook. Since Salesforce no longer supports Salesforce for Outlook and my org is still using the Classic UI, can I use Lightning Sync?
2
votes
0answers
18 views

How to preserve newlines at end of files when pushing to orgs with sfdx?

Our local style guide and tooling (like Prettier) automatically add newlines to end of files. However, when I deploy that file to my organization, either with sfdx force:source:deploy --sourcepath ...
1
vote
1answer
21 views

SFDX FORCE:DATA:TREE:EXPORT Nested __r Relationship Query

I am attempting to export data using the FORCE:DATA:TREE:EXPORT CLI command, using a nested query like the following (for use in our Scratch-Orgs): SELECT ...,(SELECT ... FROM My_Custom_Object__r) ...
1
vote
1answer
33 views

Package hosting options

There are two commands: sfdx force:package:create --name "MyApp" --description "MyApp" --packagetype Unlocked -r force-app sfdx force:package:version:create --package MyApp --installationkey ...
-1
votes
2answers
44 views

Not able to create Salesforce Project in VS Code

I have installed Salesforce CLI and Visual Studio code but when i tried to create a Salesforce project with Manifest I get this error: (17:02:00.225 sfdx force:project:create --projectname ...
-1
votes
0answers
33 views

Salesforce Salesforce Salesforce [closed]

@AuraEnabled public static boolean getOppty(String key){ Opportunity acc = [SELECT Id, Product_Family__c FROM Opportunity WHERE Id=:key]; if(acc.Product_Family__c!=''){ ...
5
votes
0answers
38 views

My LWC test is not displaying code coverage

I have configured jest for Lightning web component test. My tests are running and passing but code coverage not displaying into output. Following is package.json file: - { "name": "my-...
1
vote
1answer
30 views

How to retrieve new meta from the org

I have new classes, pages, etc in the my Salesforce org. Is it possible to update the project with all new files?
1
vote
0answers
17 views

force:data:tree:export / force:data:tree:import across __r relationships

I am still fairly new to SaleforceDX. I have been tasked with putting together a sample data plan matching a small portion of our production data, for our new Scratch-Orgs. With foreign-key type ...
0
votes
0answers
22 views

Best plugins for Upload file in Share Point through Salesforce [closed]

I have to upload the files in Sharepoint through salesforce. Can anyone suggest the best plugin for upload the files.
1
vote
1answer
29 views

Analysis for SFDX Apex || sonarqube Community Edition

Is there a way to support SFDX Apex Analysis with sonarqube Community Edition version 7.2 or above. If not then is there any previous Community version which may support it ? Many thanks in advance.
4
votes
1answer
49 views

Scratch Org project-scratch-def.json features: do they matter for Enterprise and Developer Editions?

Does the features property matter in the project scratch org I have messed around adding features from documentation on Scratch Org Definition File, but it doesn't seem to impact the scratch org ...
2
votes
0answers
20 views

How to find out the code coverage for classes in different packages?

This is slightly related to this question here except that I am interested in finding out the code coverage per package. When deploying 2nd generation packages via SFDX to production environments, I ...
14
votes
1answer
210 views
+500

Why can't I deploy my Unlocked Package back in to my own Sandbox org?

The Background We are a super-sized Performance Edition organization with a number of enhanced limits, and migrating our "happy soup" to DX Unlocked packages. We previously had problems creating ...
1
vote
0answers
9 views

How to enable End User Languages, when creating a scratch org

I work on a multi language application. While I can find documentation on how to enable the translation workbench in a scrtach org definition file, how do I 'Enable End User Languages' and setup the ...
8
votes
1answer
99 views

Visual Studio Code Apex class code coverage colors

I'm looking at the code coverage results from a recent run of all the tests in an org, and I'm not sure what all the colors represent. The green and red seem fairly self explanatory: Green - covered ...
1
vote
0answers
21 views

SFDX and Puppeteer

I am trying to use puppeteer in conjunction with the DX CLI. While I can easily created a puppteer object with something like: const puppeteer = require('puppeteer'); void (async () => { try ...
4
votes
1answer
40 views

SFDX command to find the latest package version

To facilitate deploying packages, it is helpful to quickly identify what the latest package version instead of manually finding the latest package version id. I cannot find a sfdx command to install ...
6
votes
1answer
31 views

How to customize the default template for new SFDX Project in VS Code?

More specifically, I want every new SFDX project to include a ".scripts/" directory, populated with pre-written scripts (for deployments, data transformation, whatever). Another use-case could be pre-...
0
votes
1answer
19 views

timed out error in salesforce dx when on office network

When I am using my office network I am not able to deploy code to any sandbox using salesforce dx it shows the timed out error and when I use sfdx force:org:list in CLI it shows all org's connected ...
0
votes
0answers
9 views

Transaction Security || Condition Builder || Notifications for Attachment Download

I am trying to build up a Transaction Security Policy via Condition Builder that will trigger for the Attachment Downloads within my Org. However, I am not able to write the Condition Builder Logic ...
3
votes
0answers
23 views

Unable to set LastModifiedDate when creating records in bulk inside a scratch org

I've enabled "Set Audit Fields upon Record Creation" permission on a permset (as per help page). Inserting it via: sfdx force:data:bulk:upsert -s MyNS__Some_Record__c -f invs.csv -i Id -w 5 ...
1
vote
1answer
45 views

LWC Modal With Dynamic HTML Content Slot

Has anyone gotten the modal example to work with having the content variable being HTML or a template file? I am trying to reuse the modal for two different views so I am trying to dynamically set the ...
-4
votes
1answer
28 views

List has no rows error in test class salesforce

I have query SELECT Body FROM Document WHERE Name = :Name. It is giving List has no rows for assignment when i change the api version to 45.0.
4
votes
1answer
61 views

How can I fix sfdx error: “The \”path\“ argument must be of type string. Received type undefined”

I'm getting an error similar to this post and I've checked to see if I could resolve it in the same way, but it appears to be a different issue. Whenever I try to push, deploy or convert to metadata, ...
0
votes
2answers
32 views

Authentication tunneling socket could not be established

I execute these tasks: sfdx force:auth:web:login -d -a DevHub a web page was opened login.salesforce.com, I am connected I am redirected to localhost :1717 (not accessible) in the command line I have ...
0
votes
2answers
25 views

How do I see limits associated to REQUEST_LIMIT_EXCEEDED: TotalRequests Limit exceeded

After using sfdx force:source:deploy a good amount today to deploy to production (see how to here), I hit the following error: ERROR running force:source:deploy: REQUEST_LIMIT_EXCEEDED: ...
0
votes
1answer
30 views

How to upsert records on an object with a RecordTypeId?

I have a custom object called Product with Record Types (RecordTypeId). On this object, I have two record types: Standard and Model. My product.csv: Name,Code__c,Family__r.Code__c,RecordTypeId TV,TV,...
1
vote
1answer
14 views

Which wsdl attribute should I apply to the platform event file for publish behavior

I have changed a platform event's publish behavior to be publish after commit. Since we are using salesforce dx to deploy the changes, we need to capture the change in the related file. Obviously ...
0
votes
0answers
14 views

Deployment error: “invalid cross reference id” / How do I determine which Profiles are referenced in .app metadata files?

I’m attempting to migrate metadata from one org to another using a package. But my mdapi:deploy command keeps failing with “Error test/applications/Underwriting.app Underwriting invalid cross ...
6
votes
1answer
42 views

Nested Unlocked Packages requires Installation of Base Packages?

We're trying to create a nested package structure to keep our code organized. So far, we have a design that looks like this: core ^-- utils | ^---- marketing | ^---- support | ^---...
3
votes
2answers
60 views

How to use sfdx force:data:bulk:upsert on an object without an external ID?

I have a custom object (CustomObject__c) which is a child of another custom object. I want to import some records (CSV files) of CustomObject__c via SFDX (force:data:bulk:upsert). These are the ...
0
votes
0answers
26 views

Deployment Error for all Objects : “Cannot create a new component with the namespace <objectname>”

I am trying to deploy few files to a Salesforce Sandbox org from my Bitbucket repository master branch via Bitbucket pipeline for the first time. But getting a specific error for all the objects meta....
4
votes
1answer
37 views

Standardized Production to Scratch-Org Approach

We are currently in the process of moving from using Welkin Suite and Classic to SalesforceDX/VS Code/Scratch-Orgs. Is there a standardized approach or automated process for making a Scratch-Org look ...
2
votes
0answers
21 views

Issue with CLI on WSL Ubuntu

Wondering if anyone has any thoughts about this. When I try to redirect stdout in my WSL terminal I get an error about having an open pipe. But I can run the same command from Git Bash without any ...
1
vote
1answer
56 views

cannot run sfdx on my machine

I am having a problem with my machine when installing Salesforce CLI, I have included the App Path (C:\Program Files\Salesforce CLI\bin), but still, it is not recognized, when I tried doing echo %PATH%...
5
votes
1answer
67 views

Unlocked Package Dependencies

Given two unlocked packages: UP_A and UP_B. UP_B classes uses classes from UP_A (UP_B depends on UP_A). When I try to create a new version to UP_B from terminal I get the message: ClassFromUP_B: ...
3
votes
2answers
63 views

Merge Branch || git diff not including .gitignore files

I have 2 branches in SFDX enabled project. mybranch and develop. I want to merge selected changes from develop and then merge those in mybranch. As a starting point I am trying to use git diff to see ...
3
votes
1answer
46 views

Deploy custom Lightning App Home Page assignment using SalesforceDX

Which is the metadata responsible for specify the assignment of a custom lightning app home page to a lightning app? In my lightning app metadata I just have the specification of the home page tab: &...
5
votes
1answer
61 views

SFDX: Use Scratch Org without PROD Org Access. Possible?

We are planning to use SFDX Org Development Model along with CI using scratch orgs (as we have limitations on going directly to Package Development model). The plan is to use scratch orgs only for ...
2
votes
0answers
34 views

Issue to push static resource (single files and zip) using SFDX

have any of you faced issues to push static resources to scratch orgs using SFDX v46.8.0? Asking because I faced this issue and had to revert back salesforcedx plugin to 46.6.0. path\singleFile....