-
Notifications
You must be signed in to change notification settings - Fork 3
/
orgInit.sh
executable file
·31 lines (20 loc) · 1.04 KB
/
orgInit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Create the demo org
sf demoutil org create scratch -f config/project-scratch-def.json -d 1 -s --wait 60 -p platform -e encryption.demo
# Push the metadata into the new scratch org.
sf project deploy start
# Assign permission set
sf org assign permset -n PlatformEncryption
# Set the default password.
sf demoutil user password set -p salesforce1 -g User -l User
# Create Tenant Secrets
sf data record create -s TenantSecret -v "Description=ProbabilisticKey"
# sf data record create -s TenantSecret -v "Description=SearchKey Type=SearchIndex"
sf data record create -s TenantSecret -v "Description=EventBusKey Type=EventBus"
# Deploy platform encryption settings
sf project deploy start -d ./src -w 5
sf data record create -s TenantSecret -v "Description=DeterministicKey Type=DeterministicData"
# Push sample data for demo
sf automig load --inputdir ./data --deletebeforeload
sf data create file --file ./attachment/wp-platform-encryption-architecture.pdf --parent-id `sfdx shane:data:id:query -o Case -w "Type='Electrical'"`
# Open the org.
sf org open