Loading

スクラッチ組織の作成時にパイプラインインスペクションを有効にできない

公開日: Jan 23, 2025
説明

スクラッチ組織定義ファイルを使用して、スクラッチ組織でパイプラインインスペクションを有効化する方法について説明します。

ドキュメントに従い、定義ファイルに以下の設定を記述して「パイプラインインスペクション」を有効にします。

"settings": {    ...    "opportunitySettings": {      "enablePipelineInspectionFlow": true    },    ...  }
  1. スクラッチ組織を作成するには、上記の設定が含まれる定義ファイルを用意します。
  2. Dev Hub 組織を接続した後に、VS Code で以下のコマンドを実行してスクラッチ組織を作成します。 
    sf org create scratch —definition-file config/definition_file_name —alias scratch_org_alias —wait 10 —target-dev-hub devhub_org_username
  3. A Scratch org was created with username testscratch@example.com , but the settings failed to deploy due to: [Error] Opportunity :There was a error enabling or disabling a setting」(スクラッチ組織がユーザー名 testscratch@example.com で作成されましたが、設定のデプロイに失敗しました。原因: [エラー] 商談: 設定の有効化または無効化でエラーが発生しました) というようなエラーが表示される場合があります。
解決策

問題を解決するには、次のように定義ファイルを変更する必要があります。

"features": [---------,"PipelineInspection",**],"settings":{.........."OpportunitySettings”: {"enableOpportunityTeam": true,"enablePipelineInspection":true}...}

“PipelineInspection” キーワードを “Features” に追加し、定義ファイルの “Settings” で "enablePipelineInspection": true を使用します。

定義ファイルにこの変更を加えてから、スクラッチ組織を作成してみます。すると、スクラッチ組織でパイプラインインスペクションが有効になり、正常に作成されます。

注意:“enablePipelineInspectionFlow” ではなく “enablePipelineInspection” を使用すると、商談タブのパイプラインインスペクション機能が有効になります。組織に履歴トレンドの組織権限がある場合は、商談の履歴トレンドも有効にします。

 

 

その他のリソース
ナレッジ記事番号

002718175

 
読み込み中
Salesforce Help | Article