Skip to content

Commit

Permalink
Added Conga scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jawills committed Sep 22, 2024
1 parent 321b83f commit 8560332
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,8 @@ deploy_*
scripts/*.key
scripts/*.crt
*.temp
*.todo
*.todo

## SFDMU
scripts/conga/binary_cache/
scripts/conga/target
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,32 @@ Github actions come as default to enable a deployment pipeline. To enable pushin
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](https://youtu.be/R31DWnkiYpY).

## Deploy Conga Composer

We can use [SFDMU](https://github.com/forcedotcom/SFDX-Data-Move-Utility) to move data from Sandbox to Production (Or Vice-Versa).

## Configuration

[Full Tutorial Here](https://www.1sync.co/deploy-conga-composer-production)

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:

```bash
cd scripts/conga
sh push-prod.sh
```

or to refresh sandbox:

```bash
cd scripts/conga
sh refresh-sb.sh
```
33 changes: 33 additions & 0 deletions scripts/conga/export.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"objects": [
{
"query": "SELECT all FROM APXTConga4__Conga_Template__c",
"operation": "Upsert",
"externalId": "APXTConga4__Key__c",
"afterAddons": [
{
"module": "core:ExportFiles",
"args": {
"operation": "Upsert",
"contentDocumentLinkOrderBy": "ContentDocument.CreatedDate DESC"
}
}
]
},
{
"query": "SELECT all FROM APXTConga4__Conga_Merge_Query__c",
"operation": "Upsert",
"externalId": "APXTConga4__Key__c"
},
{
"query": "SELECT all FROM APXTConga4__Conga_Email_Template__c",
"operation": "Upsert",
"externalId": "APXTConga4__Key__c"
},
{
"query": "SELECT all FROM APXTConga4__Conga_Solution__c",
"operation": "Upsert",
"externalId": "Name"
}
]
}
1 change: 1 addition & 0 deletions scripts/conga/push-prod.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sf sfdmu run --sourceusername SB_USERNAME --targetusername PROD_USERNAME
1 change: 1 addition & 0 deletions scripts/conga/refresh-sb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sf sfdmu run --sourceusername PROD_USERNAME --targetusername SB_USERNAME

0 comments on commit 8560332

Please sign in to comment.