Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xdaybreakerx/sf-sales-cloud-declarative-demo
Salesforce Sales Cloud demo - using only declarative customisations
https://github.com/xdaybreakerx/sf-sales-cloud-declarative-demo
salesforce sf sfdx
Last synced: 12 days ago
JSON representation
Salesforce Sales Cloud demo - using only declarative customisations
- Host: GitHub
- URL: https://github.com/xdaybreakerx/sf-sales-cloud-declarative-demo
- Owner: xdaybreakerx
- Created: 2024-08-20T04:39:03.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T05:41:36.000Z (5 months ago)
- Last Synced: 2024-08-20T08:50:22.990Z (5 months ago)
- Topics: salesforce, sf, sfdx
- Language: VBA
- Homepage:
- Size: 9.63 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sales Cloud Declarative Org project
This project was created to practice declarative changes within Salesforce.
## Deliverables
![image](./assets/deliverables.001.png)
![image](./assets/deliverables.002.png)
![image](./assets/deliverables.003.png)
![image](./assets/deliverables.004.png)
![image](./assets/deliverables.005.png)
![image](./assets/deliverables.006.png)
![image](./assets/deliverables.007.png)
![image](./assets/deliverables.008.png)
![image](./assets/deliverables.009.png)
![image](./assets/deliverables.010.png)
![image](./assets/deliverables.011.png)
![image](./assets/deliverables.012.png)
![image](./assets/deliverables.013.png)
![image](./assets/deliverables.014.png)
![image](./assets/deliverables.015.png)
![image](./assets/deliverables.016.png)
![image](./assets/deliverables.017.png)
![image](./assets/deliverables.018.png)
![image](./assets/deliverables.019.png)## Sync Org metadata to GitHub
Salesforce doesn't directly integrate to GitHub.
In order to save changes to your org to GitHub you need to first download the metadata, and then sync to a repo as you would for any other project.To download the metadata:
1. Install [Salesforce CLI](https://developer.salesforce.com/tools/salesforcecli)
2. Install [VSCode extensions](https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode)
3. [Enable and install DevOps Center in the org](https://help.salesforce.com/s/articleView?id=sf.devops_center_setup_install.htm&type=5)
4. Create a SFDX Project in VS Code from your Salesforce instance
- Inside VS Code, open the command pallet `Ctrl + Shift + P` and run `SFDX: Create Project with Manifest`.
- Choose the `empty` template.
- Give the project a name, eg `SFDX-Project`
- Choose the local folder location.
5. Retrieve source doe from your Salesforce instance
- Open the command pallet
- Run `SFDX: Authorize an Org`
- Choose the type of org, eg `Production`
- Login via your browser
- Once authenticated open the folder `manifest`, right-click the file `package.xml`, and run the command `SFDX: Retrieve Source in Manifest from Org`.This does not necessarily download all your metadata - due to Salesforce using a combination of declarative, and programattic tools for changes best practice is to use GitHub for *only* the components that are changed programattically.
If a Salesforce Admin made a declarative change, this would have the potential to be overridden if the component was tracked here.
Beyond this - Salesforce limits requests per day - as such depending on Org size, if all components are tracked you may exceed limits.
Given this projects:
- has a limited scope (and is therefore unlikely to hit request limits)
- has no future updates planned
- is worked on only by myselfI have elected to backup *all* components.
### GitHub Actions
#### Automate metadata backups
This project uses a GitHub action to create backups if differences are found. This occurs daily, at midnight.## Discussion
A full break down of this project can be found in the following posts.
1. [Creating a Demo Org with Salesforce, Jira and Artificial Intelligence.](https://www.xandersalathe.com/salesforce/creating-a-simple-demo-org-with-salesforce-jira-and-artificial-intelligence)
2. [Presenting your Salesforce Demo Org](https://www.xandersalathe.com/salesforce/presentingyourdemoorg)