スクラッチ組織設定
Winter '19 以降、スクラッチ組織設定が、スクラッチ組織定義内に組織設定を定義するための形式になります。この方法では、すべてのメタデータ API 設定を使用できるため、スクラッチ組織を最も包括的に設定できます。メタデータ API でサポートされている設定は、スクラッチ組織でもサポートされます。設定では、有効にするか無効にするかだけでなく、設定のすべての項目で値を定義できるため、きめ細かい制御が可能になります。
メタデータ API 設定およびサポートされる項目についての詳細は、『メタデータ API 開発者ガイド』の「設定」を参照してください。
1{
2 "orgName": "Acme",
3 "edition": "Enterprise",
4 "features": ["Communities", "ServiceCloud", "Chatbot"],
5 "settings": {
6 "communitiesSettings": {
7 "enableNetworksEnabled": true
8 },
9 "lightningExperienceSettings": {
10 "enableS1DesktopEnabled": true
11 },
12 "mobileSettings": {
13 "enableS1EncryptedStoragePref2": true
14 },
15 "omniChannelSettings": {
16 "enableOmniChannel": true
17 },
18 "caseSettings": {
19 "systemUserEmail": "support@acme.com"
20 }
21 }
22}次の例は、スクラッチ組織で SecuritySettings を設定する方法を示しています。この場合、セッションタイムアウトを定義するには、項目値をネストします。
1{
2 "orgName": "Acme",
3 "edition": "Enterprise",
4 "features": [],
5 "settings": {
6 "mobileSettings": {
7 "enableS1EncryptedStoragePref2": true
8 },
9 "securitySettings": {
10 "sessionSettings":{
11 "sessionTimeout": "TwelveHours"
12 }
13 }
14 }
15}次の例は、スクラッチ組織で IoT 機能を設定する方法を示しています。IoT 機能の指定と IoT スクラッチ組織設定の組み合わせが必要です。
1{
2 "orgName": "Acme",
3 "edition": "Enterprise",
4 "features": ["IoT"],
5 "settings": {
6 "mobileSettings": {
7 "enableS1EncryptedStoragePref2": true
8 },
9 "iotSettings": {
10 "enableIoT": true,
11 "iotInsights": true
12 }
13 }
14}