From 4adf02ef5759a4abc9ae92f936cebcecfd867b14 Mon Sep 17 00:00:00 2001 From: Cameron Goodman Date: Mon, 25 May 2020 22:50:15 -0700 Subject: [PATCH] add install check for account sharing settings --- cumulusci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cumulusci.yml b/cumulusci.yml index cb96955..22854cd 100644 --- a/cumulusci.yml +++ b/cumulusci.yml @@ -295,6 +295,13 @@ tasks: sobject: Opportunity internal_sharing_model: Private external_sharing_model: Private + + check_account_owd: + class_path: tasks.owd_preflight.CheckOWDForObject + options: + sobject: Account + internal_sharing_model: ReadWrite + external_sharing_model: ReadWrite add_standard_value_set_entries: options: @@ -557,6 +564,9 @@ plans: - when: "not tasks.check_opportunity_owd()" action: error message: "Please set the Internal and External Organization-Wide Defaults to Private for the Opportunity object prior to installing." + - when: "tasks.check_account_owd()" + action: error + message: "Please set the External Organization-Wide Defaults to Read or Private for the Account object prior to installing." steps: 1: task: add_standard_value_set_entries