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

I want to insert multiple Account Records with visualforce but i am getting error(Formula Expression is required on the action attributes.)

//My visualforce page code <apex:page controller="AddMulAccountContr" > <apex:form > <apex:pageblock > <apex:pageblockTable value="{! listaccount}&...
1
vote
0answers
17 views

Doubt on Scratch org Expiry | Not getting expired if created for 1 day(not sure others)

I have doubt on scratch org expiry. The scratch org expires in 30 days, there is no doubt. However, if you create a scratch org with 1 or 2 days; you still can log-in to that scratch org after that ...
0
votes
1answer
18 views

UNAVAILABLE_RECORDTYPE_EXCEPTION, Unable to find default record type: [] *Record Owner

When I try to convert lead It says "Error: ConvertLead failed. First exception on row 0; first error: UNAVAILABLE_RECORDTYPE_EXCEPTION, Unable to find default record type: []" Is there ...
1
vote
1answer
25 views

metadata retrieve operation failed: INVALID_CROSS_REFERENCE_KEY

On executing: sfdx force:mdapi:retrieve -r ./mdapipkg -p ./ProjectComponents.xml I got the error message: metadata retrieve operation failed: INVALID_CROSS_REFERENCE_KEY: No package named The file ...
0
votes
1answer
15 views

SFDX auth:web:login to SAML org redirects to SF Login form

Our sandbox is set for SSO SAML. I can directly access the org via SSO and not have to enter a username or password. When trying to login using sfdx force:auth:web:login I am presented with the SF ...
0
votes
1answer
15 views

Error when making an unlocked package containing reports

I have been trying to make a package with multiple metadata in it including some reports. After I run the creation command I get an error while verifiying metadata as: Report_Accounts/...
0
votes
0answers
20 views

How to remove File Storage items in my Salesforce dev hub

We are currently using a dev hub to perform various bits of Salesforce integration testing. Part of this testing involves changing the Chatter profile picture and creating posts/comments etc. I ...
0
votes
1answer
20 views

Fill and Launch a FLOW from APEX after submitting a form from LWC

So instead of inserting directly using apex a new record of which the fields are being filled in a form by the user ! I want to do that using a FLOW, so I want to fill the FLOW by the form values and ...
0
votes
1answer
17 views

Removing metadata in a DX unlocked package using --upgradetype Delete is not working

we have an unlocked package (mypkg) that has a folder with some metadata no longer in use by the org and we just want to remove it. Here are my steps: I went to 'mypg' installed package detail in the ...
0
votes
0answers
19 views

Deploy QuickAction using a Flow: impossible?

I have an error while deploying a simple QuickAction using a Flow Definition (generated from a force:source:pull) The flow definition is in the same package so available, but i have an error telling ...
0
votes
1answer
18 views

What is the difference between uninstalling an SFDX package and installing another version over an installed unlocked package?

I am to create a new version of a package whereby certain folders and code is to be removed. Should I uninstall the previous version of the package and then install? Or install over the existing ...
0
votes
1answer
13 views

Nested List view on Related list of an Object

I've a requirement for which I need to nested list view in the Related list of An object . It's something like this , suppose a account has 3 contacts . so in Account records related list 3 contacts ...
0
votes
0answers
21 views

Unexpected file found in package directory:

I am trying to deploy some components from github branch to dev sandbox with VS Code I am on the branch, where I have a code, and connected to the sandbox. I tried: sfdx force:source:deploy -c -p ...
0
votes
1answer
19 views

Unable Login Scratch Org event after changed password

I try use Salesforce DX create a Scratch Org and use "sfdx force:org:open" command to open it. Then I reset password for this user. And success reset it. But I can't use test.salesforce.com ...
0
votes
1answer
19 views

Invisible Outbound Change Sets In scratch and in organization

Messing Outbound Change Sets in the scratch and in the organization Account too. Could anyone please let me know how to get the "outbound changeset" in scratch? Your help is greatly ...
0
votes
1answer
31 views

sfdx push returning No Results found on scratch org

sfdx push a fake class to scratch org is returning no results found. I have a scratch org built on production org shape. Here is the list of actions I tried, sfdx deploy first followed by creating a ...
0
votes
0answers
21 views

View LWC Locally / Install LWC dev Mobile Plugin Error

Aim: To preview LWC component locally. Problem : NOT able to install sfdx plugins:install @salesforce/lwc-dev-mobile NPM Version: 7.7.6, NODE Version: v15.13.0, SFDX Version: sfdx-cli/7.92.0-...
1
vote
1answer
28 views

Jest unit test fails for a property when it is not tagged by @api

That is a chunk of the JS code export default class CurrencyUI extends LightningElement { @api dropdownValue = 'USD'; That is the code for Jest it('Currency default value', () => { const ...
0
votes
0answers
39 views

force:source:deploy : only error “Unknown”

After a branch merge, while deploying to an org or trying to create a new scratch org, I also see the same following error "unknown" sfdx force:source:deploy -x /tmp/sfdx-hardis-1g1ugd/...
0
votes
1answer
17 views

Is it possible to remove metadata by installing a newer version of an unlocked package?

I have a sandbox that has some meta data such as custom objects, permission sets, profiles, classes, and remote site settings that need to be removed. The sandbox also has an unlocked package ...
0
votes
0answers
22 views

How to remove legacy unused AppDynamics folder from SFDX package along with removing references from source?

We are replacing app dynamics with another application monitoring tool and I have been asked to remove the AppDynamics references from our SF code base in GIT and to also remove it from the tools SFDX ...
1
vote
0answers
12 views

sfdx: how to force:source:pull customized values from a packaged globalValueSet

We have an unlocked package that defines a globalValueSet. It is installed into our scratch orgs, and we will add custom values. We'd then like to pull those custom values back into our project, to ...
1
vote
0answers
48 views

SFDX Error While pushing the code to Salesforce Org “Error: connect ETIMEDOUT”

I am getting the below error while either pushing or retrieving the code from Salesforce to VS code and vice versa. I have no proxy nothing in my system. I have also tested on 4 Machines and 3 ...
0
votes
1answer
14 views

How to find days difference between two dates in a formula Field in visual Flow builder in salesforce

I'm pretty new to salesforce, and the only closely related information I could find related to the subject matter was provided in this link. I'm basically working in a flow builder and I want to find ...
0
votes
1answer
33 views

Connect Twilio with Salesforce Connect

I'm trying to find a way to use Twilio data inside of Salesforce Objects. I've already embeded Twilio Flex using the Open CTI and is working fine, but now I need to transcribe the calls and put that ...
0
votes
0answers
29 views

The three dot spinner doesn't stop when navigating back in my community page from Samsung or Mi Browsers

When I navigate within my community pages in an android device from Samsung or Mi Browser the default spinner keeps running and it doesn't even prevent from clicking the buttons it just keep showing! ...
6
votes
0answers
44 views

Getting error when generating an unlocked package version using a scratch org definition file

I am currently generating a package version using CLI and I am using this following definition file: { "orgName": "scratch-org", "edition": "Developer", &...
1
vote
1answer
40 views

sfdx auth:web:login Could not retrieve the username after successful auth code exchange in org

I recently signed up for a Salesforce Professional Edition. But I can't authorize the org with sfdx. WTF ? In the sales pitch it says with Profesional Edition you can have "Unlimited Custom ...
1
vote
1answer
20 views

VScode doesn't highlight/autocomplete code (salesforce extension pack)

This is what I see in VScode: I have the Salesforce extension packed installed, but I'm not sure everything's working correctly here. Keywords "with" and "sharing" are not ...
0
votes
0answers
22 views

How can i add send email button to account home page

Hope everyone doing well. I am unable to find a solution on Google. I am trying to add a button (email send )on the account home page. please check the image to clear the question
1
vote
0answers
22 views

How to upload zip of CMS Content from command line

I have a zip file that I created of CMS Content according to the specifications in the CMS Import / Export documentation. I need to be able to upload it from the command line so that I can include it ...
0
votes
1answer
19 views

Global action layout editor - not able to set fields in columns

I am looking to have the 2 columns inside of the layout of a global action. Is that even possible? I tried this, but the actual layout it shows up as one column.
1
vote
1answer
14 views

newly added picklist value not available to set predefined value for a global action item

In the Activity standard object I have a field called type which is a picklist field. I have added a new item to the list today. Also the Activity standard object doesn't have any record types as well....
1
vote
1answer
27 views

How to use .forceignore for scratch org push but not for packaging

I'm trying to package connectedApp using 2nd generation packaging as instructed here: https://salesforce.stackexchange.com/a/325175 However, the special xml file creates a conflict between scratch org ...
1
vote
1answer
40 views

Error authenticating with JWT config due to: audience is invalid

I've created a connected app based on this Trailhead project. Note that this isn't about a trailhead project I'm using what I've learned from Trailhead in a real-world project to implement CI/CD for ...
0
votes
1answer
26 views

To update the list (error is maximum trigger depth exceeded)

I want to update the opportunity product servicedate , while updating the list it shows error the error is Production_date: execution of AfterUpdate caused by: System.DmlException: Update failed. ...
1
vote
1answer
25 views

Forceignore CustomMetadata on pull

The documentation says: Sometimes, you make a change directly in a scratch org but you don’t want to pull that change into your local DX project. To exclude remote metadata changes, use the format &...
0
votes
0answers
34 views

SFDX - CI - Named Credentials and environments

We have a repository with metadata in source format, and we use sfdx and ci job to deploy, some metadata (Named Credentials for this instance) contains some values that are env/org dependant. For the ...
1
vote
1answer
28 views

Unlocked Package with Dependency to Managed Package Failing Version Create

We have two unlocked packages, package a and package b. Package A depends on Package B. Package B has a dependency to a managed package from the App Exchange. I was able to create Package B without an ...
1
vote
1answer
50 views

Scratch Org setup Deterministic Encryption

I get the following error when pushing my source to a scratch org. Deterministic encryption not available I have a permission set assign to my scratch org user that gives me ManageEncryptionKeys. I ...
1
vote
1answer
36 views

Visual Studio Code Not Retrieving Full LWC Package

tl;dr - how to make sure Retrieve Source from Org includes XML file Description Normally when I retrieve source data for an LWC from an org in vs code the resulting file looks like this: For some ...
4
votes
1answer
78 views

How to deploy parts of ExperienceBundle from source with package.xml (-x option)

I have enabled the ExperienceBundle metadata type and am using SFDX-git-delta to generate package.xml files. SFDX-git-delta will generate a package.xml file like the following when one of the files in ...
0
votes
0answers
59 views

SFDX: Retrieve This Source from Org Not Deploy Metadata

I am using VS Code and did the below steps: Ran the command 'SFDX: Create Project with Manifest'. Ran the command 'SFDX: Authorize an Org' and authorized the org. Right-clicked the package.xml file ...
0
votes
0answers
12 views

The Requested resource does not exist error in Lightning record edit form

I'm getting The requested resource does not exist error while trying to create record using lightning record edit form . Have checked multiple times the profile has access to create & read the ...
4
votes
1answer
383 views

SfdxError: An internal server error has occurred VS Code

I just purchased a new enterprise license with Salesforce and I connected my VS Code to the sandboxes and the production org. Every time I try to push the package.xml file I receive this error: ...
0
votes
1answer
20 views

How to override record-edit-form lightning-input-field custom CSS

We are using lightning record edit form in which there is lightning-input-field. this field is type of datetime. Please see screenshot attached. Start Date/Time and End Date/Time legend displaying in ...
0
votes
0answers
16 views

Is anyone else having issues using Salesforce Maps in a developer org?

I installed the new Salesforce Maps in a developer org to try to create a POC for my company. I can't access the app. See screenshot below. When I try to assign permission set, I get this error ...
0
votes
1answer
17 views

Method does not exist or incorrect signature: void beforeInsert(Call__c)

I'm trying to write test class for my Apex lass but I'm getting an error at the last line. Error: Compile Error: Method does not exist or incorrect signature: void beforeInsert(Call__c) from the type ...
0
votes
1answer
25 views

Error: Compile Error: Extra ')',

I'm trying to call My apex class in Test calss at that time I got an error. Please anyone help me to resolve. Test Calss @isTest private class UnplannedCallsTest{ @isTest static void ...
1
vote
1answer
25 views

Enabling Unlocked Packages and 2GP on a HUB

So basically my company has a dev hub, that owns all our 1GP enterprise managed/unmanaged packages. What will happen to 1GP packages if we turn on "Enable Unlocked Packages and Second-Generation ...

1
2 3 4 5
43