Skip to content
/ sf-new-org Public template

New Org Template to start Salesforce Development

Notifications You must be signed in to change notification settings

jawills/sf-new-org

Repository files navigation

1Sync New Org Template

This template quickstarts the ability of onboarding a new Salesforce org. Quickly get started and enable:

  • Relevant Metadata Download
  • Deployment Pipeline with GitHub Actions
  • Prettier Config

Downloading Metadata From Salesforce

  1. Open VS Code
  2. Authenticate with Salesforce using the sf CLI.
  3. Open the manifest folder.
  4. Right click on the package.xml and select SFDX: Retrieve Source in Manifest from Org
  5. Delete the .gitkeep file inside the force-app directory.

Allow the Metadata API to run and download source data from Salesforce. Customize the package.xml as needed for your needs. For more information check out this video on how to use the metadata api.

Configuring A Deployment Pipeline

Github actions come as default to enable a deployment pipeline. To enable pushing from a staging branch to production:

  1. Authenticate with sf cli using the following command: sf org display --verbose --json -o <MY_TARGET_ORG_ALIAS>.
  2. Copy this value and add to the GitHub variable SFDX_AUTH_URL.
  3. Ensure the target branch name is correct. The default branch is master.

To add additional environments, clone the deploy-production.yml and validate-production.yml. To learn more about using a developer pipeline, check out the following tutorial.

Deploy Conga Composer

We can use SFDMU to move data from Sandbox to Production (Or Vice-Versa).

Configuration

Full Tutorial Here

There are two files that need to be updated in the conga/scripts folder:

  • push-prod.sh
  • refresh-sb.sh

Replace SB_USERNAME with your Sandbox Alias, and PROD_USERNAME with your Production Alias.

Then, to push changes to production, run:

cd scripts/conga
sh push-prod.sh

or to refresh sandbox:

cd scripts/conga
sh refresh-sb.sh

Backup Salesforce Metadata

We can backup the salesforce metadata nighly (or on-demand) using Github Actions.

Learn more by following this tutorial.

TLDR: Uncomment the following line in the file backup-salesforce-metadata.yml

- cron: "0 0 * * *"

About

New Org Template to start Salesforce Development

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages