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

Inline Edit and Row level Actions

Scenario: I want to use an account standard object action to create numerous Catalog__c custom object records. Catalog records will be imported using a csv file. I want to display the records in a ...
1
vote
0answers
12 views

Generate sfdxAuthUrl from CumulusCI

I'm looking into a way of handle automatic access token refresh for a scratch org and sfdx auth:sfdxurl:store looks like a good candidate. This command requires a sfdxAuthUrl. When I sfdx auth:web:...
0
votes
0answers
15 views

Release notes component for internal development to internal users

I have been searching for a solution already made for displaying a release notes popup or notification to our internal users after we deploy changes to my Salesforce production org. All my searching ...
0
votes
0answers
24 views

VS Code Retrieve Profile Inconsistent between sandboxes

I am seeing unexpected behavior retrieving profiles from one of my developer pro sandboxes. In this particular sandbox, even if I right click and do an SFDX Retrieve on a single profile record, I get ...
0
votes
1answer
29 views

Map of Key with List Object print empty Object in LWC

Trying to Create the Map in JavaScript for key as program and List of Object. Below is the Json Object JSONPObject.program = [ { "Id": "a0l5e000002mFg8AAE", ...
0
votes
0answers
20 views

Content Version's Content Size

i am unable to pass values to Content Version's ContentSize Field. i am getting this compile error: Field is not writeable: ContentVersion.ContentSize here is my sample code: trigger ...
2
votes
1answer
23 views

Possible to add Remote Site Settings to Scratch Org from sfdx cli?

I've been experimenting with a build script to generate a scratch org based on a Devhub that uses external API calls. Ideally this script would Build the scratch org and add Remote Site Settings for ...
0
votes
0answers
31 views

Unable to execute sfdx force:lightning:test:run -a jasmineTests.app in my scratch org from CLI on windows system

I am unable to execute this command sfdx force:lightning:test:install in my scratch org from CLI. It gives a warning. sfdx force:lightning:test:install Result: Warning: force:lightning:test:install is ...
1
vote
0answers
28 views

Error authenticating with the refresh token due to: expired access/refresh token when I try to retrieve/deploy source from org

I have a project in Sandbox in Salesforce. Every day when I try to retrieve source from my org I got this error: How to resolve this issue? The thing is that if I download and create project from ...
0
votes
0answers
27 views

cannot push code to scratch org because of error related to managed object [duplicate]

all From last week, we run into some issue that our DX build cannot push code to a scratch org for below errors. Error force-app/main/default/objects/AAMeta__mdt/fields/VVVV__c.field-meta.xml ...
0
votes
0answers
23 views

Issue while creating scratch org

I am facing an issue while creating a scratch org, Steps i followed is: Initially i have installed vscode, salesforce cli & extensions in vscode, configured their bin path in environment variables....
2
votes
1answer
35 views

2gp: Should components names be unique across all the packages of the same namespace?

Let's say that we have couple 2gp managed packages all sharing the same namespace. Should all components/classes/pages etc. have unique name across all the packages of the same namespace? Are there ...
0
votes
1answer
32 views

Value of sfdcLoginUrl in sfdx-project.json doesn't seem to matter

I'm working on a Salesforce Lightning App project in Visual Studio Code (w/ Salesforce extension), and when I right click on a file and choose "SFDX: Deploy This Source to Org", it deploys ...
0
votes
0answers
27 views

Invalid Type: AccountContactRelation [closed]

I am trying to use AccountContactRelation object in apex class in my scratch org but unable to use it even I have enabled the Allow users to relate a contact to multiple accounts feature in my scratch ...
0
votes
0answers
19 views

Github Action to read sfdx-project.json file

I need to read sfdx-project.json file to read app the dependencies and install them before deploying the code to scratch org. I tried to use notiz-dev/github-action-json-property@release action, but ...
0
votes
0answers
11 views

Create Dataset of Account with or without contacts in Einstein Salesforce

I have created a dataflow where I pull accounts and contacts and apply a augment such that Contact having left source with Key Account.Id while Account having right source with Key Id. Now I am able ...
1
vote
1answer
47 views

Avoid strange error 'The “path” argument must be of type string. Received null', when fthe path is not null

When I execute the command sfdx force:source:deploy -u o14 -p CPQFields I receive an error The "path" argument must be of type string. Received null, despite the path CPQFields is not null ...
0
votes
1answer
31 views

sfdx force:source:retrieve doesn't work for account field

Does anybody knows why this works for field Origin of Case SObject: sfdx force:source:retrieve --metadata "StandardValueSet:CaseOrigin" and this doesn't work for field AccountSource of ...
0
votes
0answers
16 views

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, MemberUpdateTrigger: maximum trigger depth exceeded\ trigger event AfterInsert [duplicate]

i am inserting the List of record in the custom object memberList this has a list of sobject SObjectAccessDecision insertMember = Security.stripInaccessible(AccessType.CREATABLE, memberList); List&...
0
votes
1answer
19 views

Not able to pick value from apex:inputTextarea using javascript

I am trying to pick value in apex:inputTextArea field. There are two input fields. One is apex:input and other is apex:inputTextarea. Here is my visualforce code - <apex:form > <div class=&...
1
vote
0answers
24 views

Salesforce: Cannot Modify Managed Component during upload new version

We are suddenly facing an issue in our Salesforce Dev Org during uploading to create new version. It has suddenly started to show the error that: Cannot Modify Managed Component The component you are ...
1
vote
0answers
18 views

Setting the mydomain login page url in Scratch org via SFDX or CCI

I'm trying to build out a scratch org definition/ cci project and I'm wanting to set the sidebar URL of the main login screen, you set that in the My Domain page, however it doesn't appear to be ...
0
votes
1answer
22 views

How to ensure that static resources created by me in my sandbox are pulled to my local IDE (IntelliJ)

I tried to pull the static resources using Illuminated cloud as well as through sfdx commands, but can not see the static resources created by me in the static resources folder (in the local IDE)
0
votes
0answers
30 views

Cannot authorise a salesforce org in VS Code due to certificate error

I cannot authorise a salesforce org in VS Code. I am prompted to login, but then I get this error: ERROR running auth:web:login: Invalid client credentials. Verify the OAuth client secret and ID. ...
0
votes
0answers
23 views

External string does not exist error while trying to deploy through Jenkins [closed]

We have repo with salesforce code. Goal is to deploy it to scratch org and launch tests. Below is the error as we are getting while running a Jenkins pipeline for common libraries. Error src/main/...
0
votes
1answer
41 views

Error Updating Metadata for renamed LWC Component

I was trying to upload to a Salesforce dev org, a Lightning Web component called "myFirstLwc", and i have this error: No base file for markup://c:myFirstLWC I kind of know why. At First &...
0
votes
1answer
29 views

Second Generation Packages: ERROR running force:package:version:create: : The object 'Object' of type Settings metadata does not exist

I am getting this error when I create version of a new second generation managed package. The project has simple Apex class without code and dependency on single 1st generation managed package. Are ...
0
votes
1answer
18 views

VisualForce Email Template - Error: Syntax error If Condition

Getting Error: Syntax error when i tried to add the below condition in Visual-force Email Template with dynamic variable {!IF(recipient.RecordType.Name != 'Guardian',{!relatedTo.Name__c}, {!relatedTo....
1
vote
1answer
47 views

Debug Test and Debug All Tests for apex unit tests in VSCodedx

Does anyone have a link to the official documentation on this new feature added to VSCode-dx? Also, any tips on using this feature would be appreciated. What I've tried so far: I've tried the feature ...
0
votes
0answers
19 views

SDFX source push with package dependency

I have recently used sfdx force:mdapi:convert to convert to SFDX. Now when I try to sfdx force:source:push I run into problems. (I have redacted the namespace of the dependency managed package, and ...
4
votes
1answer
48 views

Is there a way to deactivate a Flexipage from the command line?

If you try to delete an active flexipage from the cli, you'll get the following error: You can't delete an active Lightning page. Open the page in Lightning App Builder and click Activation to ...
0
votes
1answer
41 views

Error: This component already exists in PackageX which PackageA depends on. You can't include the same component in both packages

Error: You're trying to include RecordType > NAMESPACE__CustomObject__c.NAMESPACE__Recordtype_Name in Package MyPackageName 1.X.X. This component already exists in Package null, which Package ...
0
votes
0answers
21 views

Joining up data from multiple sfdx force:data:tree:export outputs [duplicate]

I have a 3 level deep graph of records that I would like to export: parent records, child records and a grand-child records. Reading this Example: Export and Import Data Between Orgs, I was interested ...
2
votes
1answer
55 views

Anyone have some Apex code that can parse sfdx force:data:tree:export and do an import of that data?

We have some setup data that is presently expressed in Apex as arrays of SObjects - with a couple of levels of parent/child relationships - but need to generalise this to support many variations of ...
0
votes
0answers
25 views

Self-Relationship with scenario

I have two questions which are not cleared by google search Q1. Suppose I have a Closed Won opportunity I want to share with the client how can I?? profile, role, etc all apply on an object so how can ...
0
votes
1answer
21 views

admin created record Is shared with user

I created a user named"F10 manager" so I want to when the admin created the record or the existing record can not share with that user. I uncheck view all option in the profile (which is ...
0
votes
0answers
46 views

SFDX commands not working from API version 52.0 in CLI

Today, when I tried to use the regular command to fetch list of orgs of Salesforce in CLI terminal, it throws me an error/warning as below: And I'm unable to login to my salesforce orgs too. Like no ...
0
votes
0answers
25 views

Unable to see the changes in flow-meta.xml file

In flow screen, As shown in the below screenshot I had a requirement to uncheck the "Use values from when the user last visited this screen" and checked the "Refresh inputs to ...
1
vote
2answers
41 views

SFDX Prod Deployment attempting to run tests that have been deleted

I recently removed a trigger and an apex class from my Sandbox environment, along with the tests for these files. I am attempting to deploy to my production instance, but when I do the deployment ...
2
votes
2answers
35 views

How can a scratch org be created through the Salesforce API?

I'm trying to create a developer tool that involves creating a scratch org programmatically. Is there a way to create a scratch org directly via the Salesforce API without using the sfdx CLI tool? If ...
1
vote
1answer
29 views

2GP package dependency version

When configuring sfdx-project.json for 2GP managed package you specify it's dependencies. My package depends on our 1GP managed package. So I specified 1GP package version Id in depencensies. But what ...
0
votes
1answer
11 views

Linux version of SFDX fails to provide results for “sfdx force:user:list” command

When I tried to build a dynamic script in GitHub Actions using SFDX, I have been puzzled by the weird behaviour of sfdx force:user:list --json command in linux version of SFDX. In MacOS version of ...
0
votes
0answers
10 views

Deploy ListView with CORE.USER.ALIAS column

Using sfdx, I've retrieved metadatas form a sandbox org and I try to deploy those in a scratch org. In severals ListView of different objets, there is a reference to CORE.USERS.ALIAS, CORE.USERS....
0
votes
1answer
27 views

Circle CI integration with salesforce

We want to integrate Circle CI with salesforce for deployment, but the project is not sfdx project. Means the project structure which we have is like below : -Main    -src       -classes       -...
1
vote
1answer
28 views

How to deploy Einstein Discovery Model and Stories with Metadata deployment (ant)

What I need to do if I want to deploy Einstein Discovery Model , which all components do I need to Pick in my package.xml
1
vote
0answers
33 views

SFDX Community create command is not working with template

I am trying to create a community with B2B Commerce template, but command is throwing error, I tried escape double quotes as well but getting the same error. Looks like I am unable to pass the proper ...
0
votes
0answers
26 views

Unable to update a picklist field value with a new vlaue using SF CLI

I am trying to update a picklist field value from my automation framework and I am just unable to. Does anyone know why? C:/QA/sfdx/bin/sfdx.cmd force:data:record:update -s Cycle__c -i ...
0
votes
1answer
50 views

AccountTrigger: System.LimitException: Too many query rows: 50001

Hope all are doing good and safe! I'm trying to executing the below code but getting too many SOQL queries exception. Kindy please suggest how can I avoid this error. public void ...
0
votes
1answer
46 views

can we authorize vscode using session id? because i am not able to authorize , it gives error that no event found

Hi so i am trying to authorize the my org in vscode using the below documentation https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_existing_access_token.htm but ...
0
votes
1answer
47 views

Update failed. First exception on row 0 with id first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

Question 1 : I am stuck while updating the custom object field(salary_c) trigger TotalTheValue on Appointment__c (after insert, after update) { public decimal Sum; list <decimal> tt =new ...

1
2 3 4 5
45