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

sfdx force:project:create throwing ERROR running force:project:create: Unexpected end of JSON input while parsing near ''

I'm noticing an issue with sfdx force:project:create --projectname=projectname. This is throwing me an error as ERROR running force:project:create: Unexpected end of JSON input while parsing near '' ...
0
votes
1answer
57 views

LWC Superbadge Step 8 BoatSearchResults wired method

I have an issue with the wired method getBoats from the apex controller : export default class BoatSearchResults extends LightningElement { boatTypeId = ''; selectedBoatId; columns = []; @track boats; ...
0
votes
0answers
32 views

Adding a field value in the formula field if First name and last name in null [closed]

Need help on below How to put In Salesforce formula field IF(CONTAINS("AK:AZ:CA:HA:NV:NM:OR:UT:WA", BillingState), "West", IF(CONTAINS("CO:ID:MT:KS:OK:TX:WY", ...
0
votes
0answers
10 views

Can we able to add the custom calendar events into salesforce calendar?

We have a custom calendar on the visual force page and also created a custom object to display the event details. And also I have to add those events created in custom full calendar into a salesforce ...
0
votes
1answer
30 views

LWC Superbadge Step 3 - Setup / Clarification

Everything leading up to this challenge has been done in VSCode and SFDX. Should I be editing the code for the challenges in the Developer Console or is there a way to pull the code into VSCode? I ...
0
votes
0answers
17 views

New field appears in Classic but not in lightening

So I'm new to Salesforce and am just playing around with objects.. So after creating an object I edited it to create a new field. But I noticed that the new field appears in Classic but not in ...
0
votes
0answers
35 views

Unable to get the Security token email when resetting the password through SFDX CLI

I have used force:user:password:generate to reset the password via CLI. It is resetting the password through CLI but not sending email with new Security token. I have tried to reset the security token ...
0
votes
0answers
12 views

I Can't install my Unlocked package application

I'm trying to build an unlocked package with a custom namespace. I've create a package and a package version. but when i'm installing the package version i got this error: This app can't be installed. ...
4
votes
1answer
44 views

Is it possible to partially deploy flexipages with Sfdx?

I'm currently struggling to get our Salesforce into a version control system with the "source" metadata format. And, of course, I want this repo to be deployable. After about 16 ours of ...
0
votes
2answers
19 views

SFDX - Will sfdx force:source:deploy supports destructive changes in future?

Do the SF team has a plan to support destructive changes with the source:deploy? Though we have several other option(source:delete, mdapi:deploy) to run destructive changes we can't have the completed ...
0
votes
0answers
29 views

ECONNRESET SFDX Deploy

During a deploy a have this problem on vscode. Cli throw me the message when I try to deploy a lwc. Someone has an idea for this problem ?
0
votes
1answer
15 views

Is it possible to automate deploying SEPA Toolkit to scratch orgs?

Our org is heavily dependent on Opportunity. Our Opportunity trigger logic has dependencies on the SEPA Toolkit (listing Id a0N3000000B4bYzEAJ), so we need a way to install this package either before ...
1
vote
0answers
10 views

Get force.com site URL in Custom Formula Fields

Trying to populate the Site URL in Custom Field. Eg: siteUrl/ RecordId For this, I created New Custom setting and added the value in that filed and accessing the URL as below. $Setup....
0
votes
0answers
8 views

How to Convert Time Zone by taking Day Light Saving into consideration in JS Controller

var date = new Date(items[i].pubDate); //var date = this.items[i].pubDate; console.log('date before coversion'+date); var localTime = date....
0
votes
0answers
10 views

if User in Idle mode can we logout using lightning component?

I have requirement if the user has an idle(inactive) mode 5 mints have to show Pop up using the Lightning component, any idea?
2
votes
3answers
118 views

How to get custom object in VS Code

I would like to setup a dev environment using Visual Studio Code. I'm able to do that with the help of Salesforce Extension Pack. I want to fetch all custom object in VS Code. How Can I achieve this?
0
votes
0answers
27 views

How to display a modal popup when a button clicked inside a lightning data-table [closed]

Below I have attached an image and like in the image I want to open a model when the reply button is clicked. How can I achieve this in the Lightning web component? Please help me!!
0
votes
0answers
14 views

How to Hide Default Row Number Column in Lightning Data Table

I'm showing API Data using Lightning Data Table. There is no Row number in API Data & I Made Show Row Number = True to display Row number. But I'm getting multiple ROW numbers. I tried to hide ...
0
votes
1answer
28 views

Can I use unlocked packages to package my managed package code?

We have a managed package let's call it ABC. The requirement is that we want to setup demo orgs for clients but setting up the org with ABC + customization as per client needs for a demo takes up a ...
0
votes
1answer
19 views

Local LWC server - there are no components present

I wanted to try out the local development Salesforce feature in VSCode. I am able to run the server, I am able to approach localhost:3333/ but I am unable to see any LWCs. In our org we are not using ...
0
votes
1answer
27 views

Explicit use of namespace “XYZ in file ”ABC.js\“ is prohibited. Use default namespace \”c\“ instead.”,

I am unable to use the LWC in the subscriber org. The component is using a JS script and style sheet. The resource is packaged. we are unable to save the component with the correct namespace. Explicit ...
0
votes
1answer
28 views

List of Elements that are editable in Salesforce Production Environment

Is there an article or a document by Salesforce where I can find a comprehensive list of elements or types that can be modified in Salesforce Production Environment? Thank you!
0
votes
1answer
28 views

How to convert changes set to Package.xml?

We have previous deployments that took place in our Salesforce production org and we are now in transition to keep our metadata config changes in Git repos. I'm wondering if there is any easy way of ...
1
vote
0answers
18 views

sfdx force:source:push fails with “TypeError: version.match is not a function”

I am getting the following error after attempting to run the following command to push some code to a new scratch org: sfdx force:source:push -u tb-prototype --dev-debug Error message: ERROR running ...
0
votes
1answer
28 views

Revert changes from git using VSCode

noob question from someone who just started using VSCode and SFDX for Salesforce development. When you make changes to a project, git tracks those changes, this is nothing new. But when you want to ...
0
votes
1answer
19 views

$Site.Domain is not working in Visualforce Email Template

Trying to read the force.com subdomain URL host-name in Visualforce Email template as below. <td style="text-align: center;font-family: 'Heebo', sans-serif;font-weight:300; padding: 20px;&...
1
vote
1answer
37 views

Can we use Named Credential with JWT auth to make google cloud requests

I can make requests with Bearer from Auth.JWT: Auth.JWT jwt = new Auth.JWT(); jwt.setSub('service-portal-rlj@appspot.gserviceaccount.com'); jwt.setAud('https://accounts.google.com/o/oauth2/token'); ...
0
votes
0answers
10 views

Updating fields under history tracking through unlocked package release

We have one unlocked package that originally had some fields under history tracking and was released in production correctly. After a while we decided to add some more fields under history tracking, ...
0
votes
1answer
19 views

how can we leverage artifactory in salesforce platform

In typical java environment, after code quality test, we package code and push it to artifactory as snapshot, and then bring it to desired environment (dev/test/pre-prod) and deploy same. As I’m new ...
1
vote
0answers
34 views

Version (and keep) source of dependant Unlocked package in seperate folder

As I detail here I am going to install the external libraries I use when building Managed Packages in scratch orgs using dependencies in the sfdx-project.json being installed in an scratc-org ...
0
votes
1answer
38 views

Implement CI/CD using Bitbucket/Git and Codeship

I'm trying to implement CI/CD using Bitbucket and Codeship(a CD tool like Jenkins) to achieve continuous deployment in Salesforce Orgs along with code versioning. I'm confused with the new folder ...
2
votes
0answers
31 views

UNABLE_TO_LOCK_ROW error while running salesforce apex test on circleci

I'm getting UNABLE_TO_LOCK_ROW while running the apex test on CircleCI How can I avoid the deadlock while running tests?This is due to parallel execution of test(Not sure about this). Do We have ...
0
votes
1answer
15 views

Cannot comment .xml file by default in VScode

In VS code by default language for XML file would be ForceSourceManifest (right bottom corner of the editor). You cannot comment XML code with this.
2
votes
1answer
26 views

What files absolutely belong in a SFDX repository?

So - with SFDX there are tons of files being generated. Default files like gitattributes should obviously go there, package.xml already seems to be handled differently and then there are files ....
0
votes
1answer
26 views

When do you choose a different package directory than force-app?

So - maybe this is a stupid question. But I'm so confused by the package directory name that is by default just force-app, correct? So why would you ever change this? What are the implications of ...
0
votes
1answer
28 views

Is it viable to version all metadata nowadays?

Before SFDX I only versioned just the code (classes, components, objects, pages, triggers, and sometimes staticresources) in all of my projects and I saw many other projects doing the same. This ...
0
votes
1answer
17 views

How to retrieve a custom tab using the terminal command?

I need to retrieve the new custom tab I've created in Salesforce. How should I format a tab name in the sfdx command, based on the tab label, I need to retrieve a specific tab that I've created in ...
0
votes
1answer
24 views

How could I get the full URL in apex class

How can I take the full url without affecting the "&" if i redirect to this page: https://XXX.XXX.force.com?pay=BXXXB&PA83747474&TOKEN=23444848 for example. I catch the url using:...
0
votes
0answers
16 views

sfdx force:source:push customObject Errors

When I run "sfdx force:source:push -u myScratchOrgAlias -x manifest/package.xml I eventually get an error for validation rules, object-meta, page layouts, etc. even though page Layouts and ...
0
votes
0answers
45 views

Overriding Standard NEW Button with LC

Trying to override the NEW button 'Standart button' to Lightning component. In My Lightning component i am calling LWC. <aura:component implements="force:appHostable,flexipage:...
0
votes
1answer
15 views

Full validation in change sets still needed in unlocked package installation?

My team would like to gradually replace change set deployment model with unlocked packages. I did some experiments and found out that installing package in an org is somehow like running partial ...
0
votes
1answer
25 views

Apex Class deployment from Sandbox to Production help please

I need some helps to deploy apex class from Sandbox to Production.. here is my apex class public class LightningDataTableController { @AuraEnabled public static List<PricebookEntry> fetchData() {...
0
votes
0answers
48 views

Cannot connect to sandbox using JWT

I connected to Production Org with JWT through connected app without any difficulty. However, by applying the same procedure, I could not connect to Sandbox using JWT. Here is my command: sfdx force:...
0
votes
0answers
57 views

How could i remove or delete elements from LWC

I know how to create child nodes in lwc using innerHTML but if I want to remove it, what will be the way?
0
votes
1answer
48 views

How to overwrite renders in javascript from LWC?

I am working with the paypal sdk and I have had several problems, since the paypal smart button works with the light dom and the lwc works with the shadow dom. I think it is not possible to fully ...
0
votes
1answer
35 views

sfdx force:source:retrive will get more stuff than I needed?

I was trying to get layout change from the remote so I can push to repository by specifying layout name using sfdx force:source:retrive -m Layout:mylayout but I don't understand why when next time I ...
0
votes
0answers
25 views

How could I modify a smart button that works in the normal dom to the shadow dom

I have the sdk of the paypal smart button. I am implementing it in my lwc, I have 2 lwc. The lwc parent and the lwc child which is where I put the paypal button code. The problem is when I put the &...
1
vote
1answer
132 views

What Does (U) and Mean for an Org?

As seen in the image, there's an org with (D) and an org with (U). The (D) means default as per the Trailhead modules, but there's never any explanation as to what (U) means in any module or docs. ...
2
votes
1answer
54 views

How to work with KnowledgeSettings in a Scratch Org?

I've been having trouble running sfdx force:source:pull against a Scratch Org where I was able to setup Knowledge, Record Types, Page Layouts, Knowledge Article Permission Sets, and Several Data ...
0
votes
0answers
7 views

Is Global-GlobalLayout “Global Publisher Layout” not seen in Managed Package?

I wish some users (user profiles) to not access Global Actions like "New Task" or "Log a Call" in org and so when I create a Global-Global Layout and assign to that specific ...

1
2 3 4 5
35