- You need SFDX installed locally on your computer :
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm - You need an SFDX dev hub :
- https://altius.my.salesforce.com for DCE projects
- the customer's production org with Dev Hub enabled :
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see https://salesforce.stackexchange.com/questions/165551/possible-to-update-namedcredential-from-apex | |
MetadataService.NamedCredential credential = new MetadataService.NamedCredential(); | |
credential.fullName = 'Demo_Credential'; | |
credential.label = 'Demo Credential'; | |
credential.endpoint = 'https://www.DEMO2.com'; | |
credential.principalType = 'NamedUser'; | |
credential.protocol = 'NoAuthentication'; | |
system.debug(createMetadata(credential)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const arr1 = [1,2,3] | |
const arr2 = [4,5,6] | |
const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6] |
In SFDX, script to identify all changes made on this branch, to generate package.xml and destructiveChanges.xml
Make changes on feature branches, then merge them into a sandbox branch. This script identifies all changes made on this sandbox branch since it was created, and generates the package.xml (and destructiveChanges.xml) to push changes to the sandbox. If you are doing CI (Continuous Integration), it will let you find changes since the previous commit.
In feature branch, VS Code feature workspace, and scratch org :
- make changes on a feature branch in scratch orgs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: apex pretify | |
on: | |
push: | |
paths: | |
- 'myns/main/core/classes/**' | |
- 'myns/main/default/classes/**' | |
- 'myns/main/services/classes/**' | |
- 'myns/main/services/classes/tests/**' | |
- 'myns/tests/classes/**' | |
jobs: |