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

SFDX Scratch Org is reverting to an old version of a Lightning Web Component

When developing and deploying a Lightning Web Component, I'm encountering an issue where the formatted code within the scratch org will revert to a version a few deployments old. Presumably this is ...
0
votes
1answer
24 views

ERROR running force:org:create: MultiLevelMasterDetail is not a valid Features value

Thought i'd post this here given we are no longer in the preview window, whenever I request the MultiLevelMasterDetail feature in my scratch org definition file. Im greeted with "ERROR running force:...
0
votes
0answers
15 views

How to separate classes into custom folders

I'm new to salesforce and I am really intrigued by the folder "structure" of the system. Hundreds of classes are stored just in /src/classes/. I tried sfdx with vs code, but just in my new trailhead ...
2
votes
1answer
24 views

sfdx trying to retrieve code from sandbox - getting 'no results found'

I'm looking to deploy my code using sfdx, these are the steps I'm going to take: Retrieve code from sandbox: sfdx force:source:retrieve -m MetadataType:ClassName,MetadataType:ClassName_Test -u ...
0
votes
0answers
18 views

SFDX force:source:delete doesn't work for production [duplicate]

In DX, a command like this will delete apex classes in a sandbox: sfdx force:source:delete -m ApexClass:XXXController,ApexClass:XXXControllerTest However, when I run it against production, I get ...
1
vote
0answers
16 views

SFDX error after adding manage package dependency

After adding manage package subscriber id in the sfdx-project.json file I am getting below error ERROR at Row:1:Column:125 sObject type 'Package2VersionCreateRequest' is not supported. If you are ...
0
votes
1answer
19 views

SFDX: Authorize an org error: listen EACCES: permission denied 127.0.0.1:1717

I have been using DX for quite some time. Authoring an org either through command palette or with a command in terminal had never been a problem [Command is like this: sfdx force:auth:web:login --...
0
votes
1answer
28 views

Creating an unlocked package: how to specify the target org required features?

We are working in SFDX and we created several scratch org with "FieldAuditTrail" active so we could increase the number of fields under history. However, when we try to create a package via the sfdx ...
3
votes
0answers
29 views

DX Package Install: No QuickAction named NewTask found

I am trying to install a package to a scratch org like so: $ sfdx force:package:install --wait 10 --publishwait 10 --package XXXXX@0.1.0-2 --installationkey XXXX --noprompt -u XXXX However, the ...
0
votes
0answers
17 views

How to Deploy Community on SFDX scratch org [closed]

We try to push community data to new scratch org and get this error. force-app\main\default\appMenus\AppSwitcher.appMenu-meta.xml An unexpected error occurred. Please include this ErrorId if you ...
1
vote
1answer
24 views

How to set my own template when creating an Apex Class using Salesforce CLI?

For apex:class:create there is an optional parameter --template: -t | --template TEMPLATE Optional The template to use to create the file. Supplied parameter values or default values ...
1
vote
1answer
23 views

Unlocked packages and hosting

One thing stopping us adopting unlocked packages is the poor security around the hosting of the package version. Performing a package create and version on the cli publishes the unlocked package to ...
0
votes
0answers
13 views

How to .forceignore a Lead BusinessProcess?

I have a scratch org with the Financial Services Cloud Managed Package (Namespace FinServ) installed. Due some observed inconsistencies with sfdx force:source:pull -f, I also execute sfdx force:...
1
vote
0answers
39 views

Easiest way to pull all metadata

I want to pull metadata from a sandbox for the purpose of finding where in code a standard field is being referenced. My plan is to pull the meta-data and then search for references to the field. ...
1
vote
1answer
24 views

How to show different field value in a vf edit page

Right now I have a vf page that shows like this: <div class="col-md-5"> <input id="contactFirstName" type="text" class="form-control" name="userFirstName" maxlength=40 value="{!contact....
0
votes
1answer
35 views

Display Lookup Field of a object in LWC lightning-record-form

I am able to display all the User related field in lightning-record-form in LWC, except Lookup fields like Profile, UserRole. <lightning-record-formobject-api-name="User" fields={...
1
vote
2answers
65 views

Error Deploying RecordBeforeSave Flows To Another Org Using SFDX

Can we not deploy BeforeSave Flows using DX or any other method? Using sfdx-cli/7.46.3 win32-x64 node-v12.13.0. Error when using sfdx force:source:deploy Because the TriggerType field has the value ...
0
votes
0answers
5 views

Hybrid App- Bugs - Send logs from SDK´s transactions

In order to reproduce some bugs and errors I want to be able to send logs from a hybrid App created with Ionic-Cordova-Salesforce SDK. How can I activate the logs from Salesforce SDK? Can the ...
2
votes
1answer
28 views

Error when Merges the latest commit on the master branch into all open feature branches

I am trying to merge the latest commit on the master branch into all open feature branches but I am getting error for cci task run github_parent_to_children and github_master_to_feature C:\AutoMerge>...
0
votes
0answers
26 views

Visual Studio Code 100%+ CPU Percentage - Salesforce Extension is the culprit, fix?

Having issues with my computer sounding like a jet leaving the runway every 10/15 minutes while working in VSC (brand new Macbook Pro is the computer so this likely isnt the issue). I've identified ...
0
votes
0answers
26 views

MDAPI to DX Question

What I want to do is convert all the files in a particular folder in my project that are currently in mdapi format, convert them to source format, add the converted results to a corresponding folder ...
0
votes
0answers
26 views

Unable to deploy unlocked packages created with SFDX/CLI

I am unable to deploy unlocked packages created with SFDX/CLI . I am receiving the "The package version is not fully available. If this is a recently created package version, try again in a few ...
2
votes
1answer
43 views

Salesforce CI/CD, from Change Set to SFDX with GitLab

I would like to ask about CI/CD in SFDC. Currently my team is doing this: Developing in a sandbox (first sandbox) Testing (UAT) in another sandbox (second sandbox) Deploying our custom codes or ...
0
votes
0answers
51 views

Can not use action tag in a vf page

There was something wrong with my page when I add an action tag to it. Don't know what went wrong. By the way I'm using this page in community site(CloudCraze). (There is nothing in the page yet)The ...
0
votes
0answers
10 views

INVALID_SESSION_ID: This session is not valid for use with the API error When Using setPassword()

setPassword() method not working with lightning component with call the method from apex and giving an error as INVALID_SESSION_ID: This session is not valid for use with the API any workaround to ...
1
vote
1answer
32 views

Trailhead LWC Basics - ERROR running force:source:deploy: Deploy failed. - E_Bikes1 Not Available to Deploy for this Org

I am completing the Lightning Web Components -> Push and Deploy Lightning Web Component Files challenge and am getting the "ERROR running force:source:deploy: Deploy failed." error as many others on ...
0
votes
1answer
22 views

Can't retrieve non-customizable CustomObject named: ContentDocument

I have made changes to the record page of content document object, now I need to push the record page to other org. tried to retrieve the contentdocument object from vscode editor but receiving "Can'...
0
votes
1answer
42 views

Migration between 2 production orgs

I have the duty to migrate a production org into a new(fresh new) Salesforce org, only metadata wise. That includes custom objects, customization to standard objects, proccess builders, approval ...
1
vote
2answers
29 views

Expected 1 non-named argument, got 0 error while inserting data using CumulusCI

I am trying to insert data in the ORG, I am creating Dectionary of **kwargs ${Dist}= Create Dictionary Project__c=${Project_Id} Description__c=Test Data_Type__c=Percent ...
0
votes
1answer
23 views

split lightning card into 3 columns

I want to show account related records in 1 lightning card by side to side. I tried to use lightning card, but not able to do that. Can someone help me an idea to show 3 objects related records side ...
0
votes
1answer
34 views

lightning-input-field is not showing in LWC

Can any help me why lightning input field is not displaying in the page. Also am getting You don't have access to this record. Ask your administrator for help or to request access html: <div ...
0
votes
1answer
63 views

dynamically Change the vertical tab LWC

How to change vertical tab dynamically in LWC Html <div class="slds-vertical-tabs"> <ul class="slds-vertical-tabs__nav" role="tablist" aria-orientation="vertical"> <li ...
0
votes
0answers
30 views

CI/CD in Salesforce using Azure dev ops

I am quite new to CI/CD in salesforce, so I have a very basic level of question. so far I have completed the below steps to set up CI/CD created a repo in Azure dev. cloned the repo in local file ...
0
votes
0answers
14 views

Retrive leadsource picklist values for contact object

I have contact object in my unlock package. while versioning I am getting error for leadsource field available inside contact recordtype. Error: Contact.RecordtypeName: Picklist value: Broker in ...
2
votes
1answer
17 views

How to extract component from the Package (un-managed)

I'm trying to pull the components (fields/objects....) from the un-managed package but I could not find any way using APIs or APEX is that even possible ? Here is the example:
0
votes
0answers
21 views

SFDX: Push Source to Default Scratch Org Failed

When I try to push my LWC files to scratch org, it fails to do so and returns an error. Here is the given error: 00:46:11.637 sfdx force:source:push --json --loglevel fatal 00:46:12.987 sfdx ...
0
votes
0answers
22 views

Issue creating unlocked package version with translations (not available for deploy for this organization)

I'm trying to create an unlocked package in API v47 that contains translations (which I think should be supported in unlocked packages) but I'm getting the following error: Error force-app/main/...
3
votes
1answer
36 views

How to SFDX pull metadata that was deployed into a scratch org?

I sometimes deploy metadata to Scratch Orgs, which I then want to pull into my sfdx source tree. For example, I might be migrating metadata from a sandbox into the scratch org to package it with ...
2
votes
0answers
36 views

Sandbox not authenticating after creation

I'm trying to create a regular developer sandbox and waiting for it to self authenticate (as described in the salesforce documentation If the sandbox is created within the wait time, the CLI ...
0
votes
0answers
22 views

How to convert XML to Change Set

I usually get XML package to Deploy via ANT but sometimes ANT doesn't work appropriately. In emergencies, I don't get time to fix the issue. So i wonder if I could get a way to convert XML to Change ...
2
votes
0answers
12 views

Install 3rd party app into a Scratch Org using sfdx

I'm having a hard time figuring out how to include a 3rd party managed package into a Scratch Org as part of a project deployment. The 3rd party app is CalendarAnything Reading through this and ...
0
votes
0answers
19 views

Parsing error in creating scratch org

I am creating a scratch org in Cli and getting the error below (see image) in this challenge enter link description herehttps://trailhead.salesforce.com/content/learn/projects/quick-start-unlocked-...
0
votes
2answers
32 views

How to close current page custom action window when button clicked in visualforce page?

I am using model window VF page to get the confirmation to process the action. Below is the confirmation model window. If i click NO button the model window should close. I tried in Multiple way ...
0
votes
1answer
52 views

Intermittent JWT Authentication Failure

I just spun up a new sandbox (couple of hours old) and I am trying to setup a CI/CD process using BitBucket Pipelines and sfdx. When I run the force:auth:jwt:grant command with hardcoded values (i.e. ...
3
votes
0answers
27 views

Creating a custom ManagedContentType in a SFDX Project

I'm trying to understand the best place in my SFDX project to place the file for a custom ManagedContentType. I tried to place this file in the location force-app\main\default\managedContentTypes/...
0
votes
0answers
13 views

Quick Action With Custom Header And Footer - Visual-force Page

I created new custom Link in custom Object and added with the Custom Visualforce In this visual force page i have added slds Modals popup (screenshot below). In this popup how to remove that black ...
2
votes
0answers
23 views

How do I use an open source GitHub repo in an unlocked package?

I have recently started exploring unlocked packages. I want to use features from https://github.com/apex-enterprise-patterns/fflib-apex-common in my packages. I could clone the repo and convert it ...
0
votes
0answers
8 views

Password less Auth for Commerce Cloud

We have users that already have passwords stored , can we use the below password less login for them in commerce cloud https://developer.salesforce.com/docs/atlas.en-us.externalidentityImplGuide.meta/...
0
votes
1answer
36 views

How to open the dropdown menu on click in Lightning Web Component?

I want to open the dropdown as given https://www.lightningdesignsystem.com/components/menus/ ,when i click the button, here the dropdown stays open. At the bottom it's mentioned that for the same I'd ...
0
votes
0answers
26 views

Forecast for widget openweather

I need a weather forecast for several days, my code is the same as for one day, I just changed the endpoint. What else needs to be replaced so that data for several days is displayed on the page? ...

1 2 3 4 5 30