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

How to use Open CTI Lightning Demo Adapter package to integrate third party API?

We want to third party integration using open CTI Lightning Demo Adapter package. We want to implement service for one company which provide call center service them customer. We installed Open CTI ...
0
votes
0answers
19 views

How to test code coverage for Unlocked Packages when data cannot be inserted?

I am running into an issue related to SFDX packaging and was hoping you could help me. To provide some context: I am using the ServiceChannel object for some tests related to PendingServiceRouting, ...
1
vote
1answer
26 views

scratch org connection vs oAuth access token

Sometimes I wonder, with the scratch org, even if I use it after 2 days, it still allows to perform certain operations or login(with session id). But same thing if we followed with oAuth, it doesn't ...
1
vote
1answer
21 views

sfdx “IndustriesActionPlan is not a valid Features value.” in Winter '21

A little while ago an issue showed up on the winter '21 version where sfdx force:org:create throws the error IndustriesActionPlan is not a valid Features value. I am aware that this was fixed in a ...
1
vote
1answer
21 views

Image Upload in LWC - Public Link

Trying to Upload image file in LWC by using lightning-file-upload Below is My Code. Is there any Way i can get the Public Link once upload got Successfully in LWC? HTML <lightning-file-upload ...
1
vote
1answer
12 views

Error pushing -meta.xml to scratch org: The processing instruction target matching “[xX][mM][lL]” is not allowed

I was attempting to use the SFDX CLI to push the following file to a scratch org: force-app>main>default>messageChannels>SettingCategory_Selected.messageChannel-meta.xml <?xml version=&...
1
vote
2answers
130 views

Why is SFDX deploy throwing a false warning/error regarding forceignore v2 and double asterisk wildcard? (**\.*)

The message warns about **\.* even though that isn't present in the forceignore file. (node:436) Warning: The .forceignore file doesn't adhere to .gitignore format which will be the default ...
1
vote
2answers
34 views

Receiving “no CustomObject named DandBCompany found” when Installing SFDX Unlocked Package

I'm working on publishing a Unlocked Package. I am using a developer org as a devhub and devloping using SFDX, VS Code, Scratch Orgs, etc... I am able to package the code without a problem, but when ...
4
votes
2answers
401 views

Error running command sfdx.force.source.retrieve.component: data.forEach is not a function

Not able to download all the classes / triggers / LWC's or anything using the ORG Browser. This is kind of a annoying issue as I cannot keep on downloading only and only the classes I require. Any ...
0
votes
0answers
25 views

SFDX Test Coverage Calculation process is flawed and unusable

In my org we have several custom profiles, including community profiles. My sfdx project is structured in a way that the profiles are included in the file repository, but are not included when the ...
0
votes
1answer
60 views

sfdx force:org:create error

I was trying to create a scratch org using the below command sfdx force:org:create -f config/project-scratch-def.json -a ScratchOrgHelp -d 30 and I am facing an error as below ERROR running force:org:...
0
votes
1answer
22 views

VSCode Salesforce API/sfdx mass create custom formula fields

I'm looking for a way to custom create a placeholder formula field. SOAP doesn't allow formula field. I see a few ways online using force.com IDE, but now I'm trying it out on VSCode and I'm kind of ...
4
votes
6answers
822 views

Error deploying to org: “Cannot read property 'success' of undefined”

When Deploying anything from VSCode I get the same error everytime. I have created a new project in VSCode using SFDX. I am able to authorize and retrieve from org, but anytime I deploy I get the same ...
0
votes
1answer
32 views

Get values in LWC Helper from apex response as JSON.serialize

I am trying to access values in LWC contoller.JS the response which it returned from apex method response. This is the response. How can i access totalHours and entids in controller.Js Already i ...
3
votes
1answer
72 views

How can I get the Org Connection info from the org currently used in the command on which a CLI Hook is running?

When developing a custom CLI plugin, we're able to retrieve Org Connection using this.org.getConnection(), as the class is extending SfdxCommand. How can I do the same thing in a CLI hook ? I would ...
0
votes
0answers
37 views

How can i move 500K records from SQL to Salesforce using Bulk Api?

Is there a step by step example , preferably in c# , which shows how I can move over half a millions records from sql table to a Salesforce entity, namely Account using the Rest Bulk Api ? I have ...
1
vote
1answer
19 views

Metadata Equivalent of the System Permission “Run Macros on Multiple Records”

I'm getting the following error when deploying profile Metadata: "You may not modify the permission Run Macros on Multiple Records while editing a Standard Profile" I know I need to remove ...
0
votes
1answer
18 views

Unmanaged Package overrides custom metadata

I have custom metadata with fields that would be only controlled by subscribers but whenever I have uploaded the new version of the package (sfdx package) in production, it overrides the existing ...
1
vote
1answer
26 views

Is it possible to create Salesforce Change sets ready to be deployed in Prod programatically?

I can go to my Salesforce sandbox and create a change set with all dependencies and then go to Production and import. But can i do all of this programatically with C# ? So create the change set with ...
0
votes
1answer
21 views

Getting empty data from Apex method that returns an SObject

I've got an LWC component that calls an Apex method that creates an event, sends an email, and then returns a custom DTO object. The Apex method works with my test class but when I call it through the ...
3
votes
1answer
36 views

Scratch org - Pushing email alert which are using OrgWideAddress

I want to push the code which has email alerts. However, it is not allowing because in the email alert its using org-wide address. I searched and it seems not possible at this moment(v50.0). However, ...
0
votes
0answers
8 views

In case layout I have enabled email notification but the check box is not shown in the case creation

I want to get the email notification to the contact email and owner email when the case is created or edited. I have enabled the email notification in the case layout but I am not getting the checkbox ...
0
votes
1answer
20 views

Yaml variable to store result of sfdx command

Throughout execution yaml file for CI/CD process in GitLab I am using sfdx force:data:soql:query -q "SELECT id FROM UserRole where name='CER' " -t -u qwerty@mycompany.org to find proper id ...
1
vote
1answer
45 views

VSCODE for Salesforce Authorize org using session Id

I'm trying to Authorize my salesforce org to VSCODE using session Id as mentioned in the documentation. But it is not working. Can you please let me know what mistake I'm doing here. sfdx force:...
0
votes
0answers
12 views

Error Plugin: sfdx-cli retrieve manifest unsuccessful

After updating my sfdx cli to latest release, when trying to retrieve package manifest i see the below error even with a new workspace. module: @oclif/config@1.17.0 task: runHook postsourceupdate ...
0
votes
0answers
18 views

.forceignore force:retrieve not working and general syntax questions

The documentation for .forceignore file is terrible. My understanding is that there are two syntax's with different use cases. for force:source:push, status and deploy force-app/main/default/objects/...
0
votes
0answers
13 views

Prevent “UTF” capitalization changes via SFDX/VS Code [closed]

I review changes in an SFDX project. Often the only difference in a file is that the capitalization of "UTF" in the XML encoding attribute goes from uppercase to lowercase. I tried ...
2
votes
1answer
72 views

Create Scratch Org Definition file

To create a scratch org, a Scratch Org definition file should be created. Is there any way to identify the list of features and settings required? Note: Our org has a lot of features as it is ...
0
votes
2answers
52 views

Is there a way I can update Salesforce Production directly without Sandbox?

I have deployed all triggers and classes to Salesforce Sandbox instances. The triggers have passsed the 75% requirement and now I have created a Change Set in SandBox and deployed to Production. But ...
3
votes
1answer
163 views

Should some parts of an org NOT be versioned in SFDX?

So, with the move to DX and the source format we can and probably should version much more than we previously did with the metadata format. Objects obviously are a pretty obvious and mandatory choice ...
0
votes
1answer
20 views

Raw json return from SFDX

Using the --json switch with an SFDX command returns JSON to stdout. However, if I consume a command in a node process, e.g.  child_process.execFileSync('sfdx', ['force:limits:api:display', '-u', '...
0
votes
0answers
15 views

can I compare two fields like this in system.assert? I have to test a method that assigns the field Name to External id [duplicate]

@isTest public with sharing class AccountTriggerTest { public static testMethod void metodoTestBeforeInsert() { Account account = new Account(Name = 'account_Test'); insert account; ...
0
votes
1answer
20 views

Lookup user field in flow is not working with Record Id value populated

In my scratch org I have a flow to create opportunity and also set owner Id using a custom lookup field. This lookup field works fine (and searches users) when no value is provided to 'Record Id' ...
2
votes
0answers
30 views

Enabling High Velocity Sales in scratch org

I'm trying to set up CI/CD in a project which has "High velocity Sales" enabled as a feature. The setting file in prod for this feature as it is: <HighVelocitySalesSettings xmlns="...
0
votes
0answers
39 views

Compatibility of using Syncfusion JS Component in LWC

I am using trail version and checking the compatibility of using a 3rd party UI component with Salesforce such as Syncfusion. Yes, I am aware that we can use 3rd party libraries but we want to check ...
0
votes
0answers
43 views

Migrating All Metadata from Developer Org to Sandbox [duplicate]

Is there any way to move all org metadata (Objects, Apex classes, VF pages, Aura) from Developer Edition to Sandbox? I have started my development in Developer Org, Now i have Purchased new Enterprise ...
0
votes
1answer
32 views

Export existing custom Activity fields to metadata xml

I have a salesforce DX project and I need to add some custom fields that have already been created in Salesforce to the project. They are custom Activity fields. I realize I can create a new file ...
0
votes
1answer
18 views

Unable to invoke async test job: Subscriber handshake failed due to a socket timeout

there is a known issue SFDX- when using in JENKINS :sfdx force:apex:test:run: An ERROR: Unable to invoke async test job: Subscriber handshake failed due to a socket timeout on trailblazer site with no ...
1
vote
0answers
31 views

Scripting a deployment of an org-wide email address to a scratch org [duplicate]

I'm setting up a CI/CD and currently I'm facing some challenges regarding org wide verified emails and scratch orgs. Do you know if there is some workaround on this? I can start to work on a script ...
2
votes
2answers
98 views

Do I need to version package.xml?

Before DX I always had this in my .gitignore: /src/package.xml Now I am migrating to DX and a package.xml got created in my root somehow. Back in the days, I excluded the file because I thought that ...
1
vote
1answer
46 views

Do I need to version sfdx-config.json?

I'm in the process of converting a repository to the new DX layout. During that process, the directory .sfdx with the file sfdx-config.json was created somehow and now I'm not sure if I should version ...
0
votes
0answers
19 views

Unable to find sfdx-project.json file even if it is present in VS Code salesforce

I just cloned a remote repository from Git and opened it in VS code. I see sfdx-project.json file present, but still whenever I am running SFDX command it is giving the error saying sfdx-project.json ...
0
votes
0answers
55 views

Getting “This org appears to have a problem with its OAuth configuration. Reason: invalid_grant - expired access/refresh token ” error in VS Code SFDX

From today, Suddenly, I started getting the below error in VS code whenever I am running any SFDX command: ERROR running force:source:retrieve: This org appears to have a problem with its OAuth ...
1
vote
0answers
29 views

ERROR No subscriber package version found for package id '0Ho<ID>'

We're getting this issue all of a sudden in on-going CICD pipelines(Gitlab). It was working fine till date and suddenly this error is coming with each build trigger Error - ERROR No subscriber package ...
0
votes
1answer
50 views

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

I am trying to pull code from my dev org and I have logged into CLI successfully. When I open dev console, create a new project, and run sfdx force:source:pull, it returns the error: ERROR running ...
0
votes
1answer
32 views

How to change dropdown and textbox values using javascript

My salesforce page has dropdown and textbox, but require a double click to enter Here is DOM for Ground snow load my thought was to change the value of dropdown by id document.getElementById('...
0
votes
1answer
52 views

How do I add ContactPointAddress.PreferenceRank field?

Hi I am comparing a sandbox to production and noticed that two additional fields are present on the Contact Point Address object in the sandbox. Preference Rank Usage Type I don't think they are ...
4
votes
2answers
59 views

Understanding Salesforce DX project directory structure

So, every DX project by default roughly starts out like this: +---bin +---config +---data +---force-app +---main ¦ +---default ¦ +---classes ¦ +---components ¦ +...
1
vote
1answer
25 views

How can we override standard button on standard objects like Contact with a Flow

I am trying to launch a flow from the standard new button on the contact, I know we could override standard buttons with Visualforce and lightning components but is there any way to override to ...
1
vote
0answers
36 views

SFDX force:source:deploy with -x parameter not deploying all components in package.xml

I've just encountered a very troublesome issue using sfdx with the -x parameter to deploy components using only the ones listed in package.xml I have a one big sfdx project folder where I retrieve all ...

1
2 3 4 5
38