【问题标题】:How do I create a scratch org with Salesforce Platfom licenses?如何使用 Salesforce Platform 许可证创建临时组织?
【发布时间】:2019-04-16 05:17:46
【问题描述】:

我正在建立一个新的临时组织来部署我们在沙盒中开发的源代码。我们的项目使用 Salesforce 平台许可证,我们的配置文件定义是使用此许可证构建的。

当我使用企业版创建新的 Scratch 组织时,我没有获得 Salesforce 平台许可证,因此无法部署我的源文件。

我需要企业版(而不是开发者版),因为我的来源也启用了社区,并且开发者版中的来宾用户许可证不同。 开发人员版暂存组织带有“访客”许可证类型,而不是 我的 Sandbox 和 Enterprise 版本中的“来宾用户许可”许可类型。

我正在使用的 project-scratch-def.json 文件如下所示

{
  "orgName": "Demo Company",
  "edition": "Enterprise",
  "features": [],
  "settings": {
    "orgPreferenceSettings": {
      "networksEnabled": true,
      "offlineDraftsEnabled": true,
      "pathAssistantsEnabled": true,
      "s1DesktopEnabled": true
    }
  }
}

【问题讨论】:

    标签: salesforce salesforce-development


    【解决方案1】:

    Salesforce 支持人员的回答是在 Features 数组中包含 ForceComPlatform 值。

    类似

    {
      "orgName": "Demo Company",
      "edition": "Enterprise",
      "features": ["ForceComPlatform"],
      "settings": {
        "orgPreferenceSettings": {
          "networksEnabled": true,
          "offlineDraftsEnabled": true,
          "pathAssistantsEnabled": true,
          "s1DesktopEnabled": true
        }
      }
    }
    

    这使用 1 个 Salesforce 平台许可证为我创建了一个临时组织。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-02-13
      • 1970-01-01
      • 2012-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-22
      相关资源
      最近更新 更多