There is already excellent snowfakery documenation. This one-pager acts as a quick-reference guide for common scenarios when working with Salesforce objects ans associated field types.
- Python 3
- Snowfakery
<# | |
PREREQUISITES: | |
1. GITHUB CLI IS INSTALLED IN YOUR MACHINE (https://cli.github.com/) | |
2. GITHUB CLI IS AUTHENTICATED (https://cli.github.com/manual/gh_auth_login) USING THE WEB BROWSER LOGIN IS REALLY SIMPLE IF ALREADY LOGGED IN BROWSER | |
3. KNOW YOUR GITHUB USERNAME OR GITHUB ORGANIZATION NAME | |
4. IF USING BYPASS ADMIN TEAM IN EXAMPLE BELOW, GET TEAM SLUG BY GOING TO TEAM AND GRABBING SLUG NAME FROM URL | |
DOCUMENTATION FOR CREATING BRANCH PROTECTOIN WITH GRAPH QL: https://docs.github.com/en/graphql/reference/mutations#createbranchprotectionrule |
There is already excellent snowfakery documenation. This one-pager acts as a quick-reference guide for common scenarios when working with Salesforce objects ans associated field types.
// **** THIS SCRIPT WILL START OFF BY DELETING ALL ASSIGNMENTS OF THE BELOW PERMISSION SETS IN VARIABLE personaToPermissionSetsToRemove AGAINST THE TARGETED ORG *** | |
// **** THIS SCRIPT IS INTENDED TO SWITCH OUT PERM SETS AND PERM SET GROUPS IN THE REMOVE MAP VARIABLE WITH THE PERM SETS AND PERM SET GROUPS IN THE REPLACE MAP VARIABLE**** | |
// **** NOTE -- PERMISSION SETS AND PERMISSION SET GROUPS ARE INTERCHANGEABLE FOR PERMISSIOSETASSIGNMENTS | |
// STEP #1 - Get all Permission Sets and Permission Set Group API Names that will be Removed AND Added from/to Users | |
List<String> allPermissionSetAndPermissionSetGroupAPINames = new List<String> { | |
'Account_ReadOnly', |
#!/bin/bash | |
### BELOW PREREQUISITE CHECKLIST TO ENSURE ALL CLI'S AND EXPECTED VALUES ARE CORRECTLY SETUP | |
#################### BEGIN SCRIPT LOGIC ############################# | |
REPOSITORY_OWNER="jdschleicher" | |
TEMPLATE_NAME="setup-github-salesforce-dx-unlocked-package-template" | |
DEVHUB_ALIAS="your-devhub" | |
ORG_NAME="Company" | |
IS_PUBLIC_REPOSITORY=true #if repository is not a pro github account and is private then the brahcn protection rules features will not be enabled |
List<String> permissionSetAPINamesToRemove = new List<String>{ | |
'permset_api_name_one', | |
'other_permset_api_name' | |
}; | |
List<String> userIdsToRemoveAssignment = new List<String>{ | |
'18characteruserid', | |
'18characteruseridTwo' | |
}; |
Id agileAcceleratorScrumTeamCurrentSprintId = 'sprintidfromagileaccelerator'; | |
Id copadosScrumTeamProjectId = 'projectidfromcopado'; | |
Id copadosScrumTeamsDevOrgCredentialId = 'devorgidfromcopado'; | |
Id copadoReleaseId = 'releaseidfromcopado'; | |
List<agf__ADM_Work__c> agileAcceleratorWorkItems = [ | |
SELECT | |
agf__Age__c, |