Skip to content

Commit

Permalink
SFDC toCrmAccount: include school in Organization record type check
Browse files Browse the repository at this point in the history
  • Loading branch information
brmeyer committed Jul 11, 2024
1 parent dcaa1b6 commit 7d9be2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ protected CrmAccount toCrmAccount(SObject sObject) {
recordTypeName = (String) sObject.getChild("RecordType").getField("Name");
recordTypeName = recordTypeName == null ? "" : recordTypeName.toLowerCase(Locale.ROOT);
// TODO: Customize record type names through env.json?
if (recordTypeName.contains("business") || recordTypeName.contains("church") || recordTypeName.contains("org") || recordTypeName.contains("group")) {
if (recordTypeName.contains("business") || recordTypeName.contains("church") || recordTypeName.contains("school") || recordTypeName.contains("org") || recordTypeName.contains("group")) {
recordType = EnvironmentConfig.AccountType.ORGANIZATION;
}
}
Expand Down

0 comments on commit 7d9be2b

Please sign in to comment.