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

Deployment Error [CustomApplication Service_Console] The value you specified for RecordType is invalid or doesn't match the object you specified

Hello community I am facing the below error [CustomApplication Service_Console] The value you specified for RecordType is invalid or doesn't match the object you specified. I have added to the ...
5
votes
2answers
118 views

LWC : Events - When to use event.target.value & event.detail.value [on hold]

I am looking for the difference between event.target.value and event.detail.value. It was mention that To communicate data to elements in the same shadow tree, use event.target and To communicate ...
1
vote
0answers
20 views

ERROR While running sfdx force:source:deploy command

I am getting an error while running: sfdx force:source:deploy -u Sandbox -x pathToPackage.xml My deployments were just fine but after I did a sfdx force retrieve from a sandbox then I started to get ...
11
votes
2answers
105 views

Upgrading multiple packages at once

I see a lot of people pushing a code base of "Happy Soup" of packages. However, there is a common dependency management use-case that I haven't seen a solution for. Deployments that requirement ...
0
votes
0answers
15 views

Is there a way to disable the 'Register Your Mobile Phone Number" popup from showing when logging into newly created scratch orgs?

We are using scratch orgs for automated testing. The challenge here is with every newly created scratch org, on first login you are presented with the "Register Your Mobile Phone" modal, that you ...
-1
votes
2answers
46 views

Not able to improvie the code coverage for the class [duplicate]

I am not able to cover the lines for the below class which is in bold(four stars) and method called "getAccountMaxPriorityTerritory", can anyone help me how to do that please. Below is the method ...
0
votes
0answers
15 views

Quick Start: Salesforce DX trailhead error when running push command

I am trying to go through the trailhead for salesforce dx. https://trailhead.salesforce.com/content/learn/projects/quick-start-salesforce-dx/create-and-test-our-scratch-org Everything works ...
0
votes
1answer
20 views

Salesforce Overlay Library Workaround

The Lightning component are built using overlay library , However to reuse the same in visualforce page we have to do workaround which includes nested component or dynamic creation of component. Is ...
-2
votes
0answers
21 views

how to import data into salesforce sandbox from snowflake database by python code [closed]

how to import data into salesforce sandbox from snowflake database by API and python code
0
votes
1answer
34 views

How to add license types to entrerprise scratch org

I need to have a Partner Community license available in my scratch org. The problem is that apparently only Developer type scratch orgs get this license by default, but I need an Enterprise type org ...
-4
votes
1answer
42 views

How to create a task for Salesforce cloud crm using ampscript [closed]

Please advise how to create a task for Salesforce object in MC using ampscript.please let me know is this functionality is achievable Regards Shiva
4
votes
0answers
33 views

sfdx-cli npm package install not using the proper sfdx version

When installing sfdx with npm in a docker (npm i -g sfdx-cli), there is a mismatch between the sfdx version shown by sfdx --version and the version used by sfdx commands. sfdx --version show sfdx-cli/...
0
votes
1answer
19 views

Setting up Project For Salesforce DX

I am completing Quick start Salesforce DX project- "setting up on local machine" Step while doing this when i copied the command to clone the github repository I recieve this error (SEE IMAGE). ...
2
votes
1answer
29 views

How to clean my scratch org?

> sfdx force:source:push Using push command I'm pushing all my custom created object into Salesforce, even though the object fields are present already in my scratch org. But I need to clean or ...
2
votes
0answers
15 views

Problems loading reference 'https://schemastore.azurewebsites.net/schemas/json/jsconfig.json': unable to get local issuer certificate

I am trying to create a "Hello World" program. in LWC but i was getting a error in jsconfig.json file. the error is Problems loading reference 'https://schemastore.azurewebsites.net/schemas/json/...
4
votes
2answers
65 views

Git workflow on teams with point and click admins

When working on projects with a mix of developers and point and click admins in different sandboxes, how do you pull in the admin's metadata changes to the git repository without pulling in every ...
0
votes
0answers
24 views

Deactivate all triggers and validation rules as post refresh step?

I have multiple sandbox related to the production org. Currently I wanted to refresh my full copy sandbox, There is a way that i can provide an apex class to run post refresh. The apex class which ...
1
vote
0answers
34 views

Error invalid_grant - expired authorization code while running sfdx force:auth:jwt:grant

I run the command from my build job within Teamcity CI: sfdx force:auth:jwt:grant --clientid '%SFDX_HUB_CONSUMER_KEY%' --jwtkeyfile config/server.key --username %SFDX_HUB_USERNAME% --setalias hub1 --...
1
vote
2answers
55 views

Warning: force:lightning:lwc:start is not a sfdx command

I am trying to use the new LWC Local Development Server. I've run command: sfdx update So I know I am using the latest version of the CLI. And I've installed the plugin: sfdx plugins:install @...
6
votes
2answers
345 views

ERROR running force:source:pull: Entity of type 'Workflow' named 'Workflow' cannot be found

I am having issues when pulling Workflows using SFDX with VS Code. The error that I get when pulling in the Workflow (sfdx force:source:pull) is: ERROR running force:source:pull: Entity of type '...
4
votes
1answer
136 views

Downgrading sfdx-cli

I'm wondering whether it's possible to downgrade sfdx-cli to use an earlier version? I'm trying to debug an issue with using it in pipeline scripts. When I run sfdx version --core I get sfdx-cli 7....
0
votes
0answers
19 views

Enable Set Audit Feild Permission programatically? Otherwise a block for SFDX CICD

I am not sure if there is other way but I can only enable the 'Set Audit Field' Permission through User Interface first, then assign Permission Set. I understand the reason Saleforce to do so. While ...
2
votes
1answer
90 views

Unable to install Salesforce CLI with npm

I'm using the following command to install Salesforce CLI in my Automated CI in Azure DevOps. npm install sfdx-cli --global It was working fine till last Friday and now we are facing the following ...
2
votes
0answers
22 views

How to export data tree using SFDX with User object lookup field

I've a custom object with a custom User lookup field. When I use force:data:tree:export command results into following errors: Reference User not found for UserLookupField__c. Skipping record ...
1
vote
1answer
21 views

SFDX - Can't Create Unlocked Package Version With BillingCountryCode/BillingStateCode

I am getting an error when trying to create a version of my unlocked package after adding Apex code that references the Account.BillingCountryCode and Account.BillingStateCode fields. Everything is ...
0
votes
1answer
12 views

Management error message of validation rules

Validation rules displays error message to the user. I'm going to make so many objects, so I need to simplify its error message. If I can use formula or processAutomation? In order to user-friendly ...
1
vote
0answers
22 views

sfdx version cannot be updated

I am using sfdx on mac. I have tried: sfdx update npm update --global sfdx-cli npm install --global sfdx-cli And even: npm uninstall --global sfdx-cli and install back. But the version still ...
0
votes
0answers
26 views

How to use Salesforce DX to search for keywords within metadata such as APEX class, triggers and etc? [duplicate]

I'm not a developer. However, I find that IDE tool like Force.com Eclipse is useful to help me with analysis. I mostly use Force.com Eclipse to search for certain key word, like Field_Name__c, and it ...
1
vote
1answer
100 views

auth login instanceurl with parameter

When I directly go to the url https://test.salesforce.com/?un=test%40example.com.sbname (using @ instead of %40 works as well) from a browser, sandbox login page opens up with prefilled username value ...
0
votes
0answers
18 views

salesforce lightning console how close primary tab in aura component?

closeFocusedTab : function(component, event, helper) { var workspaceAPI = component.find("workspace"); workspaceAPI.getEnclosingTabId().then(function(response) { var focusedTabId = ...
1
vote
1answer
19 views

Activate WorkOrder object with project-scratch-def.json file

I'm trying to define my project-scratch-def.json file to enable the standard WorkOrder object, it appears the object is enabled under the Field Service section of the setup menu. I added the ...
4
votes
2answers
108 views

Activate Communities Settings: “Allow using standard external profiles for self-registration and user creation.” in a scratch org config file

Since Winter20, we have some test classes failing because of new Community Setting Allow using standard external profiles for self-registration and user creation. The problem is that we have ...
1
vote
1answer
36 views

Maintaining file/folder structure during outbound change set

I make/deploy my APEX and LWC components through VS Code and SFDX and recently ran into a problem where, when I went to deploy a lwc to another sandcopy, I noticed that the folder/file structure I had ...
2
votes
1answer
262 views

sfdx force:source:pull Entity of type 'CustomApplication' named 'Case' cannot be found

I have a scratch org that I'm trying to implement the support console with. When I try to pull the code using sfdx, I'm getting the following error: Entity of type 'CustomApplication' named 'Case' ...
1
vote
1answer
56 views

SFDX CLI - Unknown error when pushing code to Scratch

I created a new scratch and trying to push the code I received an uknow error: { "status": 1, "result": [ { "error": "Unknown" } ], "name": "DeployFailed", ...
2
votes
1answer
34 views

project-scratch-def.json VS settings

Question is simple what is the main reason to use project-scratch-def.json VS settings. They overlap a lot and I don't know when I should define features in scratch-def.json, and when to push them in ...
1
vote
1answer
37 views

Push StandardValueSet for ContractStatus into a Scratch Org

I simply want this to be pushed into a new scratch org <?xml version="1.0" encoding="UTF-8"?> <StandardValueSet xmlns="http://soap.sforce.com/2006/04/metadata"> <sorted>false<...
1
vote
1answer
60 views

How to find these UserPermissions in sandbox?

I am seeing below unwanted UserPermissions in the GIT branch, and unfortunately it went to sandbox as well through CICD. I would like to remove these assigned permissions from 4 profiles as profile ...
0
votes
0answers
34 views

Lightning Web Component error while logging

I am new to the Lightning Web Component , When i am running the command to login to the dev org from my VS Code terminal window then i am getting the below error : Command : C:\Users\ABHIJEET KUMAR\...
0
votes
0answers
24 views

Why is my Opportunity creating lightning flow being corrupted when I pull back source?

I have a Opportunity creating flow in my scratch org that works. However whenever I pull my source back to my IDE it corrupts one of my assignment clauses in my assignment logic block. Instead of ...
2
votes
1answer
30 views

How to launch node debugging session when developing custom sfdx plugin

Working with a friend on some pretty cool sfdx plugins. Challenge seems to be if something goes wrong I get a pretty generic error, no stack trace, and it's a real challenging tracing things back to ...
0
votes
0answers
25 views

Can't refresh sobject definitions from SFDX: Must pass a username and/or OAuth options when creating an AuthInfo instance

I'm having the same problem described here: sfdx sobject refresh That thread has this suggestion: Go to your personal setting and then to Authentication Settings for External Systems then clear ...
3
votes
1answer
46 views

DX standard pick-list values in unlocked package

We have certain parts of our org metadata that we can't put in an unlocked package because they are dependent on standard pick-list values (i.e. opportunity stage). Is there a way to put standard ...
1
vote
0answers
23 views

DX Package existing record types

I am moving existing metadata from an org into unlocked packages.I have ran into a problem when it comes to record types. Problem 1 Because each record type needs to know which pick-list values it ...
1
vote
1answer
28 views

Giving custom field edit access to System Administrator

I recently transferred a bunch of metadata from one Salesforce Organization Instance to another. To do this, I created a package that contained all the custom objects, web components, apex classes, ...
0
votes
0answers
20 views

Lightning Component - list out Projects base on the login user

I'm trying to create a component where It will list out all the projects that the currently logged in user belongs to. Back story: a project can have many members, every time that member log into ...
1
vote
1answer
27 views

Blocking deployments initiated via sfdx/ant

I have removed Modify Metadata Through Metadata API Functions permission for my user with hopes that removing this permission I can avoid any deployment using sfdx/ant. This didn't help. I can still ...
0
votes
1answer
44 views

Visual Studio not pull any objects from Salesforce

I have all the classes and everything else but I could not get the any objects in MS VS Code. What am I doing wrong? I did use SFDX: Retrieve Source in Manifest but that did not help either. This ...
-1
votes
1answer
25 views

VF Page Error : “Invalid selectOptions found. Use SelectOption type in Apex”

loading my VF page i am getting the below error: Error : Invalid selectOptions found. Use SelectOption type in Apex VF Page: <apex:page standardController="Statement__c" extensions="...
0
votes
0answers
31 views

How To Delete Apex Class Using SFDX and RunSpecifiedTests

Using SFDX trying to delete single Apex Classes in Production. sfdx force:source:deploy -u [orgname] -l RunSpecifiedTest -m ApexClass:ClassName Error "TestClass Cannot Find ClassName" I ...