LoginSignup
0
0

More than 3 years have passed since last update.

project-scratch-def.jsonのorgPreferenceSettingsが非推奨となりました

Posted at

今日、Salesforce CLIよりスクラッチ組織を作成した際に以下が表示された。

WARNING: We're deprecating OrgPreferenceSettings. We've added the settings to other metadata types in Winter '20. You can continue to use OrgPreferenceSettings until they are replaced by their corresponding settings in Spring '20. But why wait? Here's exactly what you need to update in the scratch org definition file.

Replace the orgPreferenceSettings section:
{
    "settings": {
        "orgPreferenceSettings": {
            "s1DesktopEnabled": true
        }
    }
}
With their updated settings:
{
    "settings": {
        "lightningExperienceSettings": {
            "enableS1DesktopEnabled": true
        }
    }
}
For more info on configuring settings in a scratch org definition file see:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs.htm

OrgPreferenceSettingsが非推奨となり、Winter '20には別のmetadata typesになる予定。変更されるまでにOrgPreferenceSettingsを継続して利用可能とのこと。

私は画像の指摘内容通りjsonファイルを変更した。

project-scratch-def.jsonの場所

プロジェクトフォルダー> config> project-scratch-def.json

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0