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
1
vote
0answers
11 views

Validate deployment of a multi-packaged project using source:deploy

We have a large project that we took over and we are in the process of modularising the source into separate packages. At this point we're not quite ready with the metadata sorting to actually create ...
1
vote
1answer
28 views

Why does my SFDX deployment validation fail while a change set with the same components and specified tests passes?

I needed to validate that the deployment of some components would succeed. The deployment would be between two sandboxes of the same production org. The components were two class/test class pairs that ...
1
vote
1answer
22 views

sfdx force:package:version:create error - Path doesn’t match the path value in any packageDirectories specified in sfdx-project.json

I'm trying to deploy a managed package using this command (from the project root): sfdx force:package:version:create --package MyPackage --targetdevhubusername DevHub --path sfdx-source/main I get ...
2
votes
2answers
30 views

Org Shape - Not reflecting the apps from Prod Org

We've enabled Orgshape(Beta) feature recently and tried to create the scratch based on our Prod org, but it is not showing up the custom apps and connected app type in the created scratch org.I was in ...
1
vote
1answer
21 views

Permission set is deployed with unlocked package, but is missing permission. What could be the reason?

I am trying to deploy permission set with only one permission included: AllowViewEditConvertedLeads. I've created the unlocked package, and put this permission set there. Then, when I install this ...
0
votes
0answers
19 views

cannot see enable evergreen function development in salesforce dev hub

We want to Enable Evergreen Function Development in the salesforce dev hub, But not able to find the enable option Please assist.
0
votes
0answers
26 views

Error creating account Cannot read property 'apiName' of undefined

import { LightningElement, api } from 'lwc'; import CONTACT_OBJECT from '@salesforce/schema/Contact'; import { ShowToastEvent } from 'lightning/platformShowToastEvent'; import { createRecord } from '...
0
votes
0answers
23 views

Class Test in Apex

How do I write a test class for the HTTPPost method? I tried using HttpMockCallout, but it works with HttpResponse and for my @HttpPost method I need a HttpRequest test. public class CorreiosAPI { ...
1
vote
0answers
12 views

Error “filterlanguage: Invalid value specified: 1.” when trying to create sfdx package version

I have the task of creating a sfdx package that includes various reports and dashboards. Sadly when I tried to create the package version I got this error for a lot of my reports: "filterlanguage:...
2
votes
1answer
25 views

Do 2nd Generation Managed Package name space dev org's expire?

Say I'm developing a 2nd generation package (managed or unlocked) with a new namespace and I create a developer org and register the new namespace in it and link the namespace to my devhub. Do I need ...
1
vote
1answer
22 views

SFDX source:retrieve Custom Settings from Org?

From within a vscode SFDX project, I'd like to retrieve and eventually manage / set custom settings from within my project. Command that I'm using for this is a standard CLI call of source:retrieve - ...
0
votes
1answer
50 views

How can i get an Organisations Instances from Production?

If i have lets say a Production , SandBox and Developer Edition in Salesforce. Is there a way I can login to one , probably Production and retrieve all instances registered to the Organisation. So ...
1
vote
0answers
30 views

sfdx:force:package:installed:list is throwing TIMEOUT error

Summary force:installed:list command is throwing time out error as Your query request was running for too long. Steps To Reproduce: 1.ScratchOrg is created 2.Installed two packages with packageID ...
0
votes
1answer
21 views

How do I deploy an org-level lightning record page (flexipage) assignment through packaging?

We have a standard object (Quotes) with a custom lightning record page (flexipage) assigned at an org-level. I'm not sure what's triggering it, but recently when we do deployments related to quotes, ...
0
votes
1answer
15 views

SFDX Creating a deployment pipeline to run specific test on Azure

We are trying to implement an pipeline on Azure to deploy our code to a sandbox. We would like to have a similar approach to what Change sets are doing. For that we are thinking on deploy just what is ...
0
votes
1answer
30 views

Error while deploying profile [closed]

When trying to deploy profile to sandbox via CLI, I am facing error: You may not turn off permission Read All ContactEncounter for this License Type. The profile is standard Sales Insights Integration ...
0
votes
0answers
32 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
31 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
33 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
32 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
14 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=&...
5
votes
4answers
670 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
36 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
4answers
670 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
1answer
37 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
69 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
24 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 ...
7
votes
7answers
1k 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
33 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
38 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
20 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
19 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
28 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
37 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
46 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
19 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/...
2
votes
1answer
93 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
165 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
21 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
16 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
22 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
34 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
41 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 ...

1
2 3 4 5
38