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

Checked Out A Scratch Org In VS Code and Want to Go Back

I was connected to my production org with VS Code and checked out a scratch org through my VS Code. Now I want to go back to my production code but am not sure what commands to go back to the "...
0
votes
1answer
18 views

I need community perspective in regards to Jenkins Salesforce CI setup for deployments with ant Migration tool

I could not invoke ant from Jenkins. I am new to this CI/CD, I was able to invoke ant from cmd but I could not do it with jenkins. If I need to upload futher code, please let me know. The error is ...
0
votes
1answer
24 views

How do I define a dependency in 2GMP for certain Salesforce feature like Quote object?

How do I define a dependency in 2GMP for certain Salesforce feature like Quote object? I need to release a package extension which should depend on Quote object. How should I define such dependency? ...
0
votes
0answers
12 views

Deploy unpackaged community to namespaced scratch org | community may have components with namespaces

We're looking to shift from non-spaced to namespaced scratch orgs for Development purpose. However there are few issues coming with community deploy. Is there any way to deploy community to namespaced ...
0
votes
2answers
30 views

Generate Frontdoor URL for a scratch org in shell

In my shell script to create a scratch org I also need another command to actually login to that org. To simplify this I want to use Frontdoor JSP and the SFDX Auth URL. I was successful using jq to ...
0
votes
1answer
28 views

Gitlab pipeline: What sfdx command can I execute to do the same that Quickdeploy does in Salesforce Deployment Status Setup page?

I have a pipeline in Gitlab that the last step is only to push in production. But there's no need to execute all the tests again once the previous step/stage already did it. The previous command does ...
4
votes
1answer
35 views

Type is not visible error when deploying a Salesforce Function

I recently got access to Salesforce Functions and I am trying to use the GenericFunctionInvoker.cls class from the functions-recipes repository. FunctionController.cls looks like this: public with ...
0
votes
0answers
14 views

Custom Property Editor Experience Builder

I want to create a footer component to be used in sf experience builder with dynamic content. Brand and links should be set/configured by end-user via the floating property editor that show up when ...
0
votes
0answers
24 views

Visualforce Page Update Failed when saving directly to production

Trying to save a VF page directly to production, receiving this error: "Saving... Visualforce Page Update Failed ✖" everything appears setup fine. Refresh/compare from server work fine. The ...
2
votes
0answers
17 views

2gp: Problem with adding custom fields to Territory2 object via DX Unpackaged Metadata feature when creating package version

We are developing 2gp which heavily uses Enterprise Territory Management feature. And as part of post install configuration subscribers should manually create some custom fields with predefined names ...
0
votes
1answer
42 views

How to query the junction object related records inside the custom object

Hi i have a custom object object name Businesscase and it has a custom lookupfield to another object is Division.I have an junction object that has the two fields one is master detail of the ...
0
votes
1answer
26 views

How to retrieve email alert used in flow in VS?

I have created an email alert which is being used in flow. I am trying to retrieve that email alert in VS code, using sfdx force:source:retrieve -m workflowAlert command. But I am not able to retrieve ...
3
votes
0answers
113 views

SFDX: Deploy Source to Org failed to run - File or folder not found

Ok, I have my VScode setup to deploy to my org on save - I've done this TONS of other times, I have it setup the same way as always. I'm hooked up to an org, I can retrieve source from org, I can ...
7
votes
1answer
194 views

Setup in Scratch Orgs that (currently) cannot be automated

I have a customer with complicated dev org setups who fears migrating to DX and Scratch orgs. They heard that with Scratch Org you currently cannot automatically setup all potential Features or Org ...
0
votes
0answers
14 views

Sfdx Not Pushing VF Pages

discovered today that when i run sfdx force:source:push to a scratch org , only apex classes were pushed. the visualforce pages are not tracked / pushed to the scratch org. any insights ?
2
votes
3answers
76 views

Should the .sfdx or any of its sub-folder and/or files should be added to the .gitignore?

I'm not sure if the .sfdx folder needs to be tracked by the version control and be pushed to the repo? Can someone please give me some more insight into this folder and its content or even a reference ...
0
votes
1answer
26 views

Move Production MetaData to Scratch Org

I am taking my first attempt at walking through 2GP. I have a production org (with no data) that I want to package and put on the AppExchange. I have followed these instructions: https://developer....
1
vote
1answer
45 views

sfdx force:source:deploy throws "INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations"

I am trying to deploy config only changes (only a permission set change) and while running: sfdx force:source:deploy -x manifest/package.xml -u Prod I get the error: INVALID_OPERATION: testLevel of ...
1
vote
1answer
39 views

Source convert does not respect report folder hierarchy

I'm working with sfdx force:source:convert to convert to metadata format for Reports and Report Folders My folder in source format is: reports/ Top/ report1.report-meta.xml Middle/ report2.report-...
-2
votes
1answer
50 views

Where default flexi page assignment for a custom object is stored? [duplicate]

I need to automate assignment of default flexi page for both Desktop or Mobile experience. However, I am not sure how can I do that. Where default flexi page assignment for a custom object is stored ...
-1
votes
1answer
38 views

SFDX Jenkins Authorization

How to deploy Source Format Git Branch into non-scratch org or full copy sandbox or production without using Devhub authorization in Jenkins? The command I am trying to use: sfdx force:source:deploy --...
0
votes
2answers
57 views

Named Credentials using password authentication

I need to call the same org using named credential password authentication,. Can anyone explain if i need to pass a api for the password where could I get that api for same salesforce org?
1
vote
0answers
110 views

How to resolve "Required field is missing: name" when deploying Flow?

I am deploying a flow using SFDX using metadata format. Here's the relevant package.xml entry: <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap....
0
votes
0answers
36 views

Not able to fix the error "Recipe must specify a dataflow"

I had created a dashboard in one org and now i am trying to deploy it to a higher org environment using copado. I had created the dataset from a recipe so what i had done is that is that i had ...
0
votes
0answers
18 views

Scratch Org with Financial Services Cloud (FSC) [duplicate]

is it possible to spin up a scratch org with FSC enabled? I created a scratch org with FinancialSerivicesUser feature. This scratch org has Financial Services under Feature Settings in Setup. However, ...
2
votes
1answer
104 views

GitLab still recommended for Salesforce

I try to get involved using GitLab in combination with Salesforce. However, the trailhead module 'Build an Automated CI/CD Pipeline with GitLab' seems to have been taken offline, and some other ...
0
votes
1answer
34 views

Modify the layout of Financial Service Cloud components in an installed package

I would like to modify the layout of a Financial Account and persist the change in a managed package, but, as I have seen one cannot just pull the layout locally and then use it when creating a ...
0
votes
1answer
25 views

Can I prune `.sfdx/orgs` and is there a way to do so to only remove orgs I'm not using?

I was checking out the size of my current sfdx project, and found that it was taking up nearly a third of a gigabyte. So I took a look at the individual folders and found that about half of that was ...
0
votes
1answer
22 views

Not able to Pull installed Package metadata(components) using SFDX commands

I have installed package in Scratch org, can someone please tell me how can I pull installed package metadata from Scratch org using SFDX command?
1
vote
1answer
53 views

cannot turn on dev hub and create scratch org

I download the developer edition and log in with a partner license given by Salesforce to my company. However, I cannot follow the partner development guide when it mentions dev hub and scratch orgs. ...
0
votes
1answer
93 views

VSCode SFDX: Retrieve Source from Org failing

I have Lightning Web Components called myList, and when I try to do SFDX: Retrieve Source from Org, to get my classes from Apex class, I get the following error: 20:32:09.428 Starting SFDX: Retrieve ...
0
votes
0answers
28 views

Reset local source tracking to latest source tracking in scratch org

I am using this command to reset the local and remote source tracking force:source:tracking:reset. I am including the --revision parameter to reset source tracking to a specific revision number of an ...
5
votes
1answer
41 views

sfdx-cli can output json. Is the output documented anywhere?

Running a sfdx command with the json flag will return different json output depending on the command. Here is an example of the kind of output returned from sfdx force:package:version:create ... --...
1
vote
0answers
18 views

SFDX test run failing when output dir provided

When I run sfdx force:apex:test:run --codecoverage --resultformat json, I get a normal output. When I add an output dir sfdx force:apex:test:run --codecoverage --resultformat json --outputdir ./test-...
0
votes
0answers
19 views

Permission ViewAllData depends on permission(s): ViewAllForecasts

Getting this error while updating the Permission Set with "View All Data" permission through SFDX/ScratchOrg. NOTE: We do not have forecast enabled.
5
votes
1answer
78 views

How to re-order standard and link buttons in object list view?

I would like to re-order the buttons in the Case list view. Where: Change Owner - standard New - standard Create New Enquiry - Link Button Here's the settings from Search layout: My initial ...
1
vote
0answers
41 views

capture sfdx command errors

One could call a sfdx command from a salesforce sfdx plugin, for example: import Report from "@salesforce/plugin-apex/lib/commands/force/apex/test/report"; ... export default class ...
2
votes
0answers
29 views

LWC1500 SFDX error retrieving 'Rich Text Area' field using @salesforce/schema

I am facing LWC1500: Invalid module id "@salesforce/schema/sObjectName.RichTextAreaField__c" when deploying through SFDX deploy. Does anybody knows why? I also tried another Rich Text Area ...
1
vote
0answers
239 views

Error deploying field with VS Code "Method not implemented"

I am unable to deploy field changes to my dev org with VS Code, due to the following error when running SFDX: Deploy source to org: An error was encountered during conflict detection. ...
12
votes
2answers
342 views

Project structure and modular development best practices

I want to stop using the usual force-app/main/default single folder project structure in order to better organize my projects and decouple dependancies. While researching about this practice, I found ...
0
votes
0answers
54 views

Error when creating scratch org "The processMetadataValues entry for TriggerType has an invalid value."

I try to create a scratch org, but every time I get the error "The processMetadataValues entry for TriggerType has an invalid value." <processMetadataValues> <name>TriggerType&...
0
votes
1answer
26 views

Issue with installing the SFDX CLI in Linux

I had some issues with my SFDX CLI as I was not able to use SFDX commands from the terminal of my VS Code in Linux. So I looked up on the web and as part of one solution that I found on web, I was ...
0
votes
1answer
33 views

Deploying to Scratch Org in Jenkins pipeline with ant

I have a Jenkins script to generate a scratch org, make a user for that scratch org along with a password. When I try to deploy using that username and password I get build/lib/deploy.xml:26: Invalid ...
0
votes
1answer
34 views

2gp, 2 dev hubs, 2 repositories, 1 namespace. Will there be ancestry issues?

I have a 2gp, namespaced package working great. My question is, if I want to experiment in a fork of my git repository, wipe out my sfdx-project.json file in the fork, link it to a NEW dev_hub in the ...
6
votes
1answer
242 views

How do I enable functions in my DevHub org?

I have enabled DevHub in my developer edition org. But I am still not able to enable "Salesforce Functions". Any idea?
1
vote
1answer
27 views

How to retrieve metadata to a custom folder by using default method "Retrieve Source in Manifest ORG" in Visual Studio?

In my ORG I didn't add to repository the default folders like so It was done like the following image: That is, the root files starts in src/ folder instead of force-app/main/default/* It brings ...
0
votes
0answers
26 views

Delegated Authentication Login in Salesforce

I've to create a Delegated Authentication in Salesforce with LDAP. I've the POST call with the generated token (I've used Axiomsso Herokuapp) that return me the SID: POST: https://test.salesforce.com/...
0
votes
1answer
34 views

SFDX: Is it possible to retrieve and deploy Lead record type assignments for the Salutation standard value set?

I made some changes in the Salutation standard value set which I'd like to move across Sandboxes. For the picklist itself it's easy as the Salutation StandardValueSet is possible to retrieve via the ...
0
votes
1answer
28 views

Is it possible to link a namespace frome a developer org to a developer hub

We currently have an unlocked package with a namespace linked to a developer edition hub since at the time we where not aware of the limitations. Since we have the limitation to only do 5 package ...
1
vote
1answer
65 views

Access token doesn't change with JWT flow

I have a connected app to use the JWT flow and I generate the access token with sfdx force:auth:jwt:grant command. I noticed that the obtained token is always the same even after a day. I would expect ...

1
2 3 4 5
47