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
1answer
18 views

Jenkins Job with SFDX command doesn't deploy the code and doesn't give an error

SFDX Version: sfdx-cli/7.84.2-a2868a68d5 win32-x64 node-v12.18.3 Jenkins Job has 3 steps. Step1: Pull the project from Git Step2: Authentication D:\project\jobname>sfdx force:auth:jwt:grant --...
1
vote
0answers
15 views

Create Protected Metadata During Unlocked Package Version Creation?

My company owns a managed package with a feature licensed in the FMA. Inside the managed package we have a button the user presses to flip a protected metadata setting to enable the Objects/Fields ...
0
votes
1answer
17 views

Trigger to limit products being added across all opportunities

I have a use case where I need to limit the number of two products that can be added across all opportunities. For example "Product A" and "Product B" can only be cumulatively ...
3
votes
0answers
14 views

Scratch Org Case Language field is not presented

I want to have the Case Language field in a scratch org. Base on the documentation it would be present with the service cloud. The language of the case. This field is available in all Enterprise, ...
2
votes
1answer
31 views

unable to install sfdx scanner plugin

i am trying to install sfdx scanner. its giving me this error. anyone knows this below error warning "@salesforce/lwc-dev-server > request-promise-native > request-promise-core@1.1.4" ...
0
votes
1answer
18 views

SFDX: Move from Changeset Deployment to Org Development Model

I'm planning to move from changeset Deployment approach to org development model which can provide more flexible and scalable environment for development. Also it can provide source tracking in ...
0
votes
1answer
27 views

Auto-Populate phone as formatted

I want my phone field to be auto-populated as below after record is saved. +XX (XXX) XXX-XXXX I've tried regex to format. But, it's working only if I enter a formatted phone number. Can someone help ...
0
votes
0answers
8 views

Selenium Testing- Two Factor Authentication problems [closed]

I have a little problem when it comes to automate my test cases through my organization salesforce sandbox account. I'm getting two-factor authentication message which I get a phone message. I created ...
0
votes
0answers
8 views

Content Security policy Error? [closed]

I have created an Aura Component having two picklist sObject & List View but unable to edit any of the records in the listview and getting Content Security Error?
0
votes
0answers
9 views

Content Security Error? [closed]

I have created an Aura Component having two picklist sObject & List View but unable to edit any of the records in the listview and getting Content Security Error?
0
votes
0answers
18 views

Identity Provider Architecture [closed]

We're implementing a Salesforce project which will be used by Internal Users as well as external partners (Salesforce Community). We're starting to think about SSO and have a couple of options. 1- ...
-1
votes
0answers
17 views

Salesforce Apex Class Error / action.SetCallback returns error in Aura component

As part of a project, we are building a table that has different row level actions for users. One of the row level actions is to "Approve" the transaction. We would like this to update and ...
-1
votes
1answer
40 views

How to bulkify my code in a better way? [duplicate]

I’m learning on how to code in Apex, and I’m trying to figure out how I can bulkify my code in a better way so that I won’t get SOQLExceptions. Scenario: Whenever I upload a lot of records using data ...
2
votes
1answer
41 views

LWC jest issue with getRecordNotifyChange - TypeError: (0 , _uiRecordApi.getRecordNotifyChange) is not a function

I am using 'getRecordNotifyChange'https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_get_record_notify in a "Modify" LWC component, to flag a record as ...
0
votes
0answers
23 views

Create a Named Credential programmatically

Salesforce newbie here. I've successfully created a Named Credential manually in my local scratch org. Now, I'm having a hard time to create the same Named Credential programmatically. Does anyone can ...
0
votes
2answers
23 views

AccordionSection Collapse all

i'm facing an issue with a button to collapse All/Expand All of a lightning accordionSection the problem is that i have a loop on the accordionSection, so the button only collapses/Expands the first ...
0
votes
0answers
16 views

Add new custom object to existing profile by metadata api

I have a few new custom objects in my unmanaged package and i want to give permissions to existing profiles in the target org. How can i do that? What i tried is the following xml file in my package: &...
1
vote
1answer
108 views

Node version error during Salesforce DX pre-release plugin installation

When installing the Salesforce CLI with the Spring '21 pre-release Salesforce DX plugin, I'm getting an incompatible node version error. This command: sfdx plugins:install salesforcedx@pre-release ...
1
vote
2answers
55 views

Mapping MultiSelect Picklist values into Dropdown List in LWC

I am trying to retrieve selected values of multivalued picklist from the Salesforce record and mapping them into a dropdown list of a LWC component. In order to retrieve, I have used wire adapters as ...
0
votes
1answer
31 views

Exception while getting the LWC bundle for reference @Salesforce/schema/Account.Name

I am creating a lightning-record-form component to display records from Account Object: This is the js file: import { LightningElement } from 'lwc'; import Account_Name from '@Salesforce/schema/...
3
votes
1answer
498 views

VSCODE: Unable to Authorize to an ORG

I'm having the same problem. For me, I'm not getting redirected to my salesforce Org. This is what I see in VSCode 12:22:15.474 sfdx force:auth:web:login --setalias DevOrg --instanceurl https://login....
1
vote
1answer
42 views

SFDX Salesforce CLI : Update a field to NULL

I have the following CSV of 12 Account records. As can be seen, I am deliberately setting the name to NULL for an Account record (highlighted). I am using the following SFDX/Salesforce CLI command to ...
1
vote
2answers
80 views

ERROR running force:source:deploy: This command is required to run from within an SFDX project

I am trying to use GitHub actions to deploy code to my developer org. While running the workflow i am getting error like. I am unable to figure where it is wrong Below is the structure in github. ...
1
vote
1answer
42 views

SFDX : SOQL Query/Output

I am currently learning Salesforce DX/CLI to pull in data from my org. I use the following syntax to extract Accounts data. sfdx force:data:soql:query -u vpy.lightninglearn@gmail.com --query "...
4
votes
2answers
154 views

SFDX Permission set assign command failing in latest version 7.84

In earlier versions < 7.84.2 sfdx force:user:permset:assign command was working fine, but in latest version it is throwing error Permission set "U" not found in target org. Do you need to ...
0
votes
0answers
15 views

How to exclude remotely added listview from pull using .forceignore

When I run command: sfdx force:source:status I get output: Remote Add ClaimCoverage.All_ClaimCoverages ListView Remote Add ClaimCoverage....
0
votes
0answers
37 views

Anyone experiencing deployment being 'stuck' using SFDX?

I am currently experiencing issue with deployment using SFDX being "stuck" without completing the deployment with no errors. This seems to have happened about 4 hours ago. I am ...
4
votes
1answer
67 views

Update.forceignore for Spring 21 Compliance

SFDX is giving me this error message: Fix the following lines in your .forceignore and add '# .forceignore v2' to your .forceignore file to switch to the new behavior. (node:12432) Warning: **...
0
votes
1answer
39 views

Remove component from Unlocked Package programmatically

My org is using multiple unlocked packages to organize components by purpose. This has caused the process of package version creation to be incredibly long due to a chain of dependencies. Combining ...
0
votes
0answers
38 views

SFDX: Authorise an Org not working

I am trying to authorise an org using VS Code but keep getting the following sfdx force:auth:web:login --setalias jandev21 --instanceurl https://test.salesforce.com --setdefaultusername Unexpected ...
0
votes
1answer
33 views

Adapt font to container size

I'm looking for a solution to this problem: I have a lwc that get passed a text and displays it, but when it's too long (being a title I can't truncate it) I'd need to resize it, to make sure the ...
1
vote
2answers
31 views

Annual revenue throws error : “Illegal Integer” with char 1000000000 and above

In my below code I am getting error as Illegal integer. public void refedgeAnnualrevenue(list<Account> newAccts){ for(Account ac : newAccts){ if(ac.AnnualRevenue >= 0 &...
2
votes
1answer
23 views

Create an unlocked package with references to custom fields in target system

i'm trying to create a version of my unlocked package. It contains like 3 sobjects and 2 classes. In my objects i have fields, which are related to other custom objects from the target system. The ...
0
votes
0answers
20 views

How to add subscribers to multiple different publication lists using automation

I am trying to add all the subscribers coming from a cloud page to 5 different publication lists. The subscribers data is being recorded in a data extension and want to use it to add to the 5 ...
3
votes
1answer
47 views

Why cant I upgrade salesforcedx to Spring '21 (prerelease)

Probably user error :( but here goes. I have a sandbox that has very recently been upgraded to Spring '21 (prerelease). I see the funky bear with the funky heart; I can go to dev console and look at ...
3
votes
2answers
222 views

How do you run a test suite from Visual Studio Code?

How do you execute and get the results for a test suite from Visual Studio Code? Currently, whenever I want to run one, I have to go into the org, and then log into the developer console. It works, ...
1
vote
1answer
99 views

Fix the following lines in your .forceignore and add '# .forceignore v2' to your .forceignore file to switch to the new behavior

I have the following .forceignore file: # List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status # More information: https://...
-1
votes
1answer
17 views

SFDX Source Push: Invalid type: FeedItem

I am getting error: Invalid type: FeedItem When I run command: sfdx force:source:push Why won't it let me push that code into my scratch org?
0
votes
1answer
31 views

ApexPages.currentPage().getParameters() Method does not exist or incorrect signature

I use VS Code with Salesforce Extension Pack. I have this line in my class code: string cId = ApexPages.currentPage().getParameters().get('cId'); It gets a squiggle line under getParameters() and a ...
0
votes
0answers
7 views

How Standard component picklist value change event fill the textbox values?

BankTransaction(detail) and BankAccount(master) has master-detail relation, I want the transaction standard page when creates a new record, bank-Account picklist change event fill daily-limit and ...
0
votes
0answers
15 views

how to redirect to a Marketing cloud profile center by making a custom link

I want to create a cloud page which needs to be hosted in the Wordpress, the cloud page will take their input as email and when clicked on the submit button it should redirect to their Marketing cloud ...
0
votes
0answers
32 views

Errors in standard object definitions

I use VS Code with Salesforce Extension Pack. I have created SFDX project with manifest; authorized my sandbox org; then refreshed sobject definitions (tools-sobjects-standardObjects). This gives me ...
0
votes
0answers
7 views

how to view uploaded attached pdf files in salesforce1 mobile app?

I have requirement to view the uploaded attachments in salesforce1. I am able to open files in browser but not in SF1 mobile App. I just want to understand how to view pdf files in salesforce 1. ...
1
vote
1answer
34 views

Getting SPAWN EPERM on running Authorize and Open Default Org commands

I am getting SPAWN EPERM error while running the sfdx authorize and open default org commands from both vs code and command line.
0
votes
1answer
38 views

SFDX - deploy a brand new custom object with only specific fields from one org to another

I have a scenario where I need to deploy a brand new custom object only with specific custom field(s) to another org. The other org does not have that custom object at all. I'm using sfdx for VS Code ...
0
votes
0answers
12 views

Script-thrown exception installed Managed Package

I Have integrated PayPal in my Project and used in Community which has been build as Managed Package. Now I trying to install this Managed Package in Another Org. Installation was successfully done. I ...
0
votes
2answers
43 views

How do I set and Account object to an opportunity ID

I have a trigger which calls a class when an opportunity's status changes to "Closed Won". trigger opptConversion on Opportunity (before update) { for(Opportunity opp : trigger.new) { ...
0
votes
1answer
36 views

SFDX picklist raising Duplicate Label error

We have some picklist values (in various places both as part of a custom field and as a global picklist value set) that look something like this: <customValue> <fullName>1</fullName&...
2
votes
1answer
54 views

SFDX force:user:list : meaning of output fields

When I issue the command sfdx force:user:list --targetusername user@example.com --json I get the response: { "status": 0, "result": [ { "defaultMarker": &...
1
vote
1answer
42 views

ERROR running force:org:create: We don’t recognize this namespace: x. Did you register it in your Dev Hub org?

I am trying to create a Scratch Org with a Namespace using command: sfdx force:org:create -s -f config/project-scratch-def.json -a my-namespace -d 30 But I get this error: ERROR running force:org:...

1
2 3 4 5
41