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
0 answers
18 views

SFDX: Trying to source push omniscript files gives File or folder not found error

When I source push omniscript files for the first time to my scratch org, the deploy succeeds. If I make some changes to the file and push it again to same scratch org. I always end up in getting ...
Ishanu Dhar's user avatar
0 votes
1 answer
32 views

Packaging Reports containing field to field comparisons

When attempting to package a report that contains a field to field comparison is shows the unique Id of the field in the metadata as opposed to the field API name. This means that it cannot be stored ...
Jack McGrady's user avatar
-1 votes
0 answers
23 views

Get Global Action Name in Salesforce Lightning Component

I'm trying to make this more reusable: https://admin.salesforce.com/blog/2023/how-to-invoke-a-flow-from-a-global-action Instead of hard-coding the Flow name here: flow.startFlow("...
mraz's user avatar
  • 1
0 votes
0 answers
30 views

Rollback(Back Promote)Changes through SFDX-Git-Delta deploy

Branching Strategy: In our project we have 3 main branches: Main, UAT & QA & we are using SFDX-Git-Delta plugin (SGD) deploy to promote incremental changes. Developers promote changes to ...
Rose 's user avatar
  • 121
-1 votes
0 answers
106 views

Unable to Authorize an org

The string "Warning: Ignoring extra certs from null, load failed: error:80000002:system library::No such file or directory (node:17332) Warning: org-api-version configuration overridden at 55.0 (...
Himanshu Gupta's user avatar
0 votes
0 answers
16 views

Retrieve enhanced List views for Flows via metadata API?

Currently, whenever we retrieve an object via sfdx, whether custom, standard or cmtd, it will retrieve the list views too. However, I cannot seem to find the correct metadata folder or xml which ...
vio's user avatar
  • 9
0 votes
1 answer
31 views

How can I refresh or disable source tracking in particular sandbox or scratch org?

I know that I could set source tracking to disabled when I create a sandbox or scratch org, but if I already have created sandbox or scratch org created with source tracking enabled and now I have ...
Patlatus's user avatar
  • 16.4k
0 votes
1 answer
34 views

sf auth:jwt:grant hanging - no terminal output

I have been working on creating a CICD pipeline with my developer org and github actions. I have done the following: Connected app created Profile added to connected app with API permissions. User ...
smedium's user avatar
0 votes
1 answer
73 views

How to Add Contact Id into JSON Payload for Apex Testing

I am trying to test a wrapper class for a platform event/platform event trigger flow and I am not sure how to add a contact record Id I created earlier in the test class to the JSON string. Update The ...
Diego Delgado's user avatar
3 votes
0 answers
35 views

Why I can not retrieve Case.RecordTypeId as custom field in package.xml in VScode?

I am trying to understand where i can find/locate the help text added for Case.RecordtypeId field on case in my package(VScode). I am trying to retrieve it with record type and object, but I can not ...
Mrinal Sharma's user avatar
5 votes
1 answer
643 views

Getting "An unexpected error occurred while preparing endpoint: C-9999" while (second generation) packaging this morning

Anyone else getting this gack error today when creating a managed package version? An unexpected error occurred while preparing endpoint: C-9999. Please contact Salesforce Support and provide the ...
Keith C's user avatar
  • 136k
1 vote
0 answers
28 views

How to add html content to html layout in LWR

After creating the LWR project I updated the lwr.config.json to point to .html template for the route "/". After I update the contenet template to a .html file too as bellow { "...
Sameera Silva's user avatar
1 vote
2 answers
57 views

Get All the Reports Metadata Backup

Want to get all reports metadata from Salesforce, tried with VS code Org Browser, but it doesn't get me all the Reports. SELECT Count() FROM Report fetches 10000+ Reports Appreciate any help/...
RKM's user avatar
  • 517
0 votes
1 answer
46 views

In Success Toast Message we are getting record id instead of record name and it happening only for success toast message not for delete toast message

In Success Toast Message we are getting record id instead of record name and it happening only for success toast message not for delete toast message Could you anyone guide on this ? Added two images ...
Arjun's user avatar
  • 3
-2 votes
2 answers
44 views

Is it possible to deploy by filename using the new CLI?

I have been using a command from the old CLI: sfdx force:source:deploy -p "/path/to/filename.cls" to deploy by filename. Is this possible using the new CLI? I do see an example of sf project ...
Z0q's user avatar
  • 155
0 votes
1 answer
44 views

Getting error while installing sfdx scanner plugin

Getting below error while installing sfdx scanner plugin: Installing plugin @salesforce/sfdx-scanner... / info There appears to be trouble with your network connection. Retrying... error An unexpected ...
Velu's user avatar
  • 1
1 vote
2 answers
115 views

Is there a CLI command to find all Test classes associated with a certain Apex class?

As the CLI runs tests before deploying an Apex Class, it has to know which tests are associated with a certain Apex class. Is there a way to retrieve a list of test classes that are associated with a ...
Z0q's user avatar
  • 155
0 votes
0 answers
161 views

Cannot install @salesforce/lwc-dev-server

When running sfdx plugins:install @salesforce/lwc-dev-server on Sonoma 14 OSX, it returns either: Warning: @salesforce/lwc-dev-server > @lwc/[email protected]: Use @lwc/engine-dom instead Error: /usr/...
number41's user avatar
  • 938
0 votes
1 answer
29 views

Log in with different custom link but Salesforce only recognize as 1

I tried to Authorize an Org with Custom because my Org has custom domain I logged in to PROD with custom-domain.lightning.force.com and alias custom-prod I logged in to UAT with custom-domain.sandbox....
Pam's user avatar
  • 107
0 votes
1 answer
34 views

Vscode extension code error "transport target for "..\..\lib\logger\transformStream"

I'm trying to create a new VsCode extension that connects to the default salesforce org using the npm package @salesforce/core with typescript. the code is the following: // The module 'vscode' ...
faouzi Ch's user avatar
0 votes
0 answers
38 views

How can I push code to a scratch org that belongs to an installed package?

I am working on an application that is built from several separate unlocked packages, managed through cumulusci. The packages all share the same namespace. When cumulusci creates a development org it ...
TemporaryFix's user avatar
  • 2,937
0 votes
0 answers
23 views

Unable to deploy custom labels via SFDX metadata deployment

We deploy custom labels in our org via SFDX metadata deployment. So we use 'CustomLabels.labels-meta.xml' file to store and deploy labels to our higher orgs. Since last few days we are facing this ...
Zaheer's user avatar
  • 1
1 vote
4 answers
6k views

I get the error "structuredClone is not defined" in retrieve source with salesforce cli

When I am trying to deploy to Org with SF cli in visual studio code, I am getting error saying that 'structuredClone is not defined'. I am using node-v20.10.0 version. How to resolve this issue?
Rafael LR's user avatar
0 votes
0 answers
24 views

How to retrieve a custom field translation with sfdx

I tried to retrieve the translation of a specific field but get: Nothing retrieved This is what I tried: sfdx project:retrieve:start -m "CustomFieldTranslation:Lead-nl_NL options__c" --...
Thomas's user avatar
  • 2,294
0 votes
1 answer
58 views

What to use for an LWR DigitalExperience - ExperienceBundle or DigitalExperienceBundle?

I've just started looking at using LWR instead of Aura Digital Experiences. Note that Having created an LWR experience this: sfdx force source retrieve -u MyOrgAlias -m experiencebundle did not ...
Keith C's user avatar
  • 136k
0 votes
0 answers
15 views

How to track exception of Conga Document generation in Screen flow or LWC?

If the user has clicked on a link to generate a conga document if the user closed the conga window or if the user got an exception while generating a conga document. How can we handle these scenarios ...
Shubham Chaudhary's user avatar
3 votes
2 answers
210 views

Packaging error: Email-To-Case

We are facing an issue when trying to create a package version. The test classes seem to be failing due to assert failures. Upon inspection, the underlying issue seems to be: You must enable Email-to-...
d_k's user avatar
  • 1,271
0 votes
0 answers
66 views

We can't log you in because of an issue with single sign-on. Contact salesforce admin for help

I have integrated Auth0 as an Identity provider and Salesforce as a Service provider using SAML 2.0 I have configured SSO settings on Salesforce and did SAML validation as well. Below is the screen ...
Ragu Chilveri's user avatar
1 vote
0 answers
61 views

Feature Flagging in Production for a non partner client. Possible?

This is more of a generic question about feature flagging in Salesforce. Our company currently uses LaunchDarkly for other applications, we are under the investigating process to see if it will work ...
Rodrigo's user avatar
  • 1,265
0 votes
0 answers
41 views

unable to see object from installed package in profile in visual studio code salesforce once retrieved

I have a small issue I can't seem to figure out a solution for. I am unable to see objects from managed packages in VSC in Profiles, they are not showing when I try to check the permissions for them. ...
Simona Croitoru's user avatar
0 votes
0 answers
38 views

Can't deploy CDC on PricebookentryChangeEvent

I made a Trigger on PricebookEntryChangeEvent and added Pricebook Entry to the CDC Selected Entity list. I've also added PlatformEventChannelMember with a wildcard in the Package.xml. ...
Roy Guns's user avatar
2 votes
0 answers
52 views

ANT EOL / Migrating to SFDX. Can SFDX authenticate with just username/password+Token on the CLI?

I've been using ANT for years. I've written c# code that wraps around ANT so my users can put in the username, password & Token and hit go and it will call out to ANT, pull down what it needs (...
Mike Jones's user avatar
0 votes
0 answers
21 views

GitHub Actions: Delete obsolete salesforce lightning flow version using Shell script and YAML

Before validating and deploying the components, I am attempting to remove any outdated versions of a flow. I discovered a solution on the Salesforce Stack Exchange. Remove all old flow versions using ...
Eashan Parlewar's user avatar
0 votes
1 answer
52 views

How do I view a lightning application I deployed using SFDX?

I am trying to deploy a very simple Hello World application and view it in my scratch Org. In VSCode using the Salesforce Extension Pack, I've created an Aura App. In the MyAuraApp.app file I added ...
user3632719's user avatar
0 votes
2 answers
207 views

VS Code - installing and using SF CLI

Quick Background: I am fairly new to VS Code and LWCs. I've been working on a LWC and deploying to a sandbox (we'll call it GSB), then using change sets to push to prod. I recently refreshed the ...
Miguel Diaz's user avatar
3 votes
0 answers
101 views

Error Plugin: @salesforce/cli: could not find package.json

After updating my Salesforce cli to version @salesforce/cli/2.21.8 win32-x64 node-v20.10.0 and npm 7.19.0 I keep getting the following errors whenever I try to run an sf command: $ sf --version (node:...
Lior Lavi's user avatar
  • 364
1 vote
1 answer
1k views

SFDX: Authorize an Org - Warning:

When I perform the "SFDX: Authorize an Org" step of the project in VS Code, I get the error "Ignoring extra certs from null, load failed: error:80000002:system library::No such file or ...
erdemFatıh's user avatar
1 vote
2 answers
6k views

Authorize an org failed in VS code

I am new to learning lightning web component. I have installed VS Code, the salesforce extension pack inside VS code, Salesforce CLI I am trying to complete the Quick Start: Lightning Web Components ...
Amara Eledu's user avatar
0 votes
1 answer
45 views

Navigate to Report in LWC without Apex

I am redirecting to a report in LWC using navigationmixin. Is there a way where I can get the report id without calling apex method in LWC. Below is the code. viewReport( event ) { this[ ...
Alok's user avatar
  • 37
0 votes
0 answers
20 views

Is it possible to translate CMS Images content type?

I know how to translate documents CMS content using the standard translation feature on CMS. But how it works with the images? I have custom content type and its content contains text and image field ...
Thiago Rodrigues's user avatar
2 votes
0 answers
72 views

Add SF CLI to GitHub Actions Cache

I'm trying to cache sf cli in GitHub Actions but I get sf: command not found when the cache is restored. Does anyone know which other paths I need to add to the cache? - name: Cache id: cache uses:...
jonny-harte's user avatar
0 votes
1 answer
38 views

How to export / import the query for a report?

I'm looking for a way to export a report query from one org and import into other orgs without re-typing it. Is that possible? I did find this old answer which would partially help but I'm wondering ...
MarbleStone's user avatar
0 votes
0 answers
41 views

Error: Invalid Alias or Id for SFDX Package Install

Getting error when using package alias name sf package install [email protected] vs 04t Id. Using the Id works fine. My packages are namespaced. Error (1): Invalid alias or ID: provutil@1....
ddeve's user avatar
  • 1,576
0 votes
0 answers
24 views

Create Org Shape: Error (1): The requested resource does not exist

My Dev Hub org and the source org are the same. I've followed all the instructions to setup Org Shape from the docs. Once I get to the point to create the shape, I get this error: sf org create shape -...
Tyler Zika's user avatar
  • 2,860
-1 votes
1 answer
39 views

.SFDX folder creates subfolder 246 and many subfolders which are totally useless

I was trying to sync my salesforce project to OneDrive, and while syncing I saw .sfdx folder creating and uploading a 246 subfolder which again had 100s of subfolder containing apex files like ...
ibrabbit's user avatar
0 votes
1 answer
254 views

updating from sfdx-cli to sf

I've set up actions that run on deployments in git. These scripts use the sfdx commands to deploy and various other functions. Now I want to move them from sfdx and to the new sf cli. Is there a ...
akarnid's user avatar
  • 1,984
-1 votes
1 answer
45 views

Upload Metadata into Salesforce from GitHub

There is a GitHub repository with metadata such as tabs, custom objects with fields, apps, etc. What is the best approach to upload that metadata from GitHub into the SF Sandbox org? Thank you in ...
BB0202's user avatar
  • 11
0 votes
1 answer
40 views

How can I create 2GP package version including FSL permissions

I'm using FSL Dispatcher Permissions and FSL Dispatcher License in test class for a scenario to cover code in my apex class. It worked fine when running the test class. But when doing a package ...
Man0har1919's user avatar
0 votes
1 answer
40 views

force:apex:test:run throws error in CI: "No tests were able to be executed on the org. Please verify that the source code has been pushed correctly"

Upon attempting to run Apex tests via CI using command "force:apex:test:run" in a packaging org, I get the following error: "An unknown exception occurred. No tests were able to be ...
Andrei Migachev's user avatar
0 votes
1 answer
57 views

sfdx cli - Unable to create scratch org | Error authenticating with JWT- invalid assertion

we are having some issue starting today (22 Nov) Everything was working till date. Starting today morning we are unable to create new scratch org. sfdx CLI command we run sfdx force:org:create -f ...
Sagar Thoriya's user avatar

1
2 3 4 5
58