From ede2bf5297ca584c24a193b273e379a791427654 Mon Sep 17 00:00:00 2001 From: Austin Turner Date: Sat, 23 Nov 2024 13:05:43 -0700 Subject: [PATCH] Include SecondGen-Installed-Editable in automation control These flows are editable and should be included in the visible flows resolves #1042 --- .../automation-control/src/automation-control-data-utils.tsx | 2 +- .../automation-control/src/automation-control-soql-utils.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/features/automation-control/src/automation-control-data-utils.tsx b/libs/features/automation-control/src/automation-control-data-utils.tsx index 4e75462a..cbdd0d6e 100644 --- a/libs/features/automation-control/src/automation-control-data-utils.tsx +++ b/libs/features/automation-control/src/automation-control-data-utils.tsx @@ -331,7 +331,7 @@ export async function getFlowsMetadata(selectedOrg: SalesforceOrgUi, sobjects: s ) ) .flatMap(({ queryResults }) => queryResults.records) - .filter((record) => record.ManageableState === 'unmanaged' || record.IsTemplate); + .filter((record) => record.ManageableState === 'unmanaged' || record.ManageableState === 'installedEditable' || record.IsTemplate); return flowMetadataRecords; } diff --git a/libs/features/automation-control/src/automation-control-soql-utils.tsx b/libs/features/automation-control/src/automation-control-soql-utils.tsx index bc1c0aac..584b0830 100644 --- a/libs/features/automation-control/src/automation-control-soql-utils.tsx +++ b/libs/features/automation-control/src/automation-control-soql-utils.tsx @@ -242,7 +242,7 @@ export function getFlowsQuery(sobjects: string[]) { left: { field: 'ManageableState', operator: 'IN', - value: ['unmanaged', 'installed'], + value: ['unmanaged', 'installedEditable', 'installed'], literalType: 'STRING', }, operator: 'AND',