From 2a80fa059ab72ee200d43b4bf50203825679a645 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 11 Apr 2024 00:11:09 +0200 Subject: [PATCH 1/4] rm fixed vs --- .../flows/Copy_API_Name_Fixed.flow-meta.xml | 60 ------- ...ML_Statement_In_A_Loop_Fixed.flow-meta.xml | 143 ---------------- ...uplicate_DML_Operation_Fixed.flow-meta.xml | 112 ------------- ...Flow_Naming_Convention_Fixed.flow-meta.xml | 62 ------- .../flows/Hardcoded_Id_Fixed.flow-meta.xml | 156 ------------------ .../Missing_Error_Handler_Fixed.flow-meta.xml | 66 -------- ...ssing_Flow_Description_Fixed.flow-meta.xml | 58 ------- .../Missing_Null_Handler_Fixed.flow-meta.xml | 138 ---------------- .../Outdated_API_Version_Fixed.flow-meta.xml | 46 ------ .../SOQL_Query_In_A_Loop_Fixed.flow-meta.xml | 110 ------------ .../Unconnected_Element_Fixed.flow-meta.xml | 59 ------- .../flows/Unused_Variable_Fixed.flow-meta.xml | 46 ------ 12 files changed, 1056 deletions(-) delete mode 100644 force-app/main/default/flows/Copy_API_Name_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/DML_Statement_In_A_Loop_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/Duplicate_DML_Operation_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/Flow_Naming_Convention_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/Hardcoded_Id_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/Missing_Error_Handler_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/Missing_Flow_Description_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/Missing_Null_Handler_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/Outdated_API_Version_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/SOQL_Query_In_A_Loop_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/Unconnected_Element_Fixed.flow-meta.xml delete mode 100644 force-app/main/default/flows/Unused_Variable_Fixed.flow-meta.xml diff --git a/force-app/main/default/flows/Copy_API_Name_Fixed.flow-meta.xml b/force-app/main/default/flows/Copy_API_Name_Fixed.flow-meta.xml deleted file mode 100644 index 8cf2a06..0000000 --- a/force-app/main/default/flows/Copy_API_Name_Fixed.flow-meta.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - 51.0 - This flow demonstrates how to resolve a violation of the rule "Copy API Name". - Default - Fix: Copy API Name {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - Flow - - mockscreen - - 176 - 134 - true - true - true - - second_mockscreen - - true - true - - - second_mockscreen - - 176 - 242 - true - true - true - true - true - - - 50 - 0 - - mockscreen - - - Active - diff --git a/force-app/main/default/flows/DML_Statement_In_A_Loop_Fixed.flow-meta.xml b/force-app/main/default/flows/DML_Statement_In_A_Loop_Fixed.flow-meta.xml deleted file mode 100644 index 7eb0d86..0000000 --- a/force-app/main/default/flows/DML_Statement_In_A_Loop_Fixed.flow-meta.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - create_case_manually - - 440 - 542 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - aLoop.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - 58.0 - - Assigns values to newCase variable. - createNewCaseAssignment - - 264 - 242 - - newCase.AccountId - Assign - - aLoop.Id - - - - newCase.OwnerId - Assign - - aLoop.OwnerId - - - - newCases - Add - - newCase - - - - aLoop - - - This flow demonstrates how to resolve a violation of the rule "DML Statement In A Loop". - Default - DML Statement In A Loop Fixed {!$Flow.CurrentDateTime} - - - an example loop - aLoop - - 176 - 134 - Accounts - Asc - - createNewCaseAssignment - - - insert_cases - - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - insert_cases - - 176 - 434 - - create_case_manually - - newCases - - - 50 - 0 - - aLoop - - - Active - - A collection of Accounts - Accounts - SObject - true - true - true - Account - - - newCase - SObject - false - false - false - Case - - - Collection of New Cases - newCases - SObject - true - false - false - Case - - - a task - task - SObject - false - false - false - Task - - diff --git a/force-app/main/default/flows/Duplicate_DML_Operation_Fixed.flow-meta.xml b/force-app/main/default/flows/Duplicate_DML_Operation_Fixed.flow-meta.xml deleted file mode 100644 index 6abc715..0000000 --- a/force-app/main/default/flows/Duplicate_DML_Operation_Fixed.flow-meta.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - create_account_manually - - 440 - 350 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - 58.0 - This flow demonstrates how to resolve a violation of the rule "Duplicate DML Operation". - Default - Duplicate DML Operation Fixed {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - Flow - - createAccount - - 176 - 242 - - mock_screen_2 - - - create_account_manually - - - Name - - account_name - - - Account - true - - - mock_screen_1 - - 176 - 134 - true - true - true - - createAccount - - - account_name - String - account name - InputField - false - - true - true - - - mock_screen_2 - - 176 - 350 - false - true - true - true - true - - - 50 - 0 - - mock_screen_1 - - - Active - - Account - SObject - false - false - false - Account - - diff --git a/force-app/main/default/flows/Flow_Naming_Convention_Fixed.flow-meta.xml b/force-app/main/default/flows/Flow_Naming_Convention_Fixed.flow-meta.xml deleted file mode 100644 index 68d7fa3..0000000 --- a/force-app/main/default/flows/Flow_Naming_Convention_Fixed.flow-meta.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - 58.0 - - isAccountsProvided - - 176 - 134 - Default Outcome - - NotNull - and - - Accounts - IsNull - - false - - - - - - This flow demonstrates how to resolve a violation of the rule "Flow Naming Convention". - Default - Fix: Flow Naming Convention {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - 50 - 0 - - isAccountsProvided - - - Active - - Accounts - SObject - true - true - false - Account - - diff --git a/force-app/main/default/flows/Hardcoded_Id_Fixed.flow-meta.xml b/force-app/main/default/flows/Hardcoded_Id_Fixed.flow-meta.xml deleted file mode 100644 index 5b0f173..0000000 --- a/force-app/main/default/flows/Hardcoded_Id_Fixed.flow-meta.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - create_account_manually - - 314 - 458 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - - create_task - - 842 - 242 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - 58.0 - - CheckIfUserIsFound - - 314 - 242 - Default Outcome - - userfound - and - - UserId.Id - IsNull - - false - - - - create_Test_Account - - - - - This flow demonstrates how to resolve a violation of the rule "Hardcoded Id". - Default - Fix: Hardcoded Id {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - create_Test_Account - - 50 - 350 - - create_account_manually - - - Name - - Test Account - - - - OwnerId - - UserId.Id - - - Account - true - - - getUserId - - 314 - 134 - false - - CheckIfUserIsFound - - - create_task - - and - - Name - EqualTo - - Acme - - - Account - - UserId.Id - OwnerId - - - - 188 - 0 - - getUserId - - - Active - - Account - SObject - false - false - false - Account - - - UserId - SObject - false - false - false - User - - diff --git a/force-app/main/default/flows/Missing_Error_Handler_Fixed.flow-meta.xml b/force-app/main/default/flows/Missing_Error_Handler_Fixed.flow-meta.xml deleted file mode 100644 index 7bd40db..0000000 --- a/force-app/main/default/flows/Missing_Error_Handler_Fixed.flow-meta.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - dosomethingelse - - 440 - 242 - NewTask - quickAction - CurrentTransaction - - OwnerId - - $User.Id - - - NewTask - 1 - - - log_call - - 176 - 134 - LogACall - quickAction - - dosomethingelse - - CurrentTransaction - LogACall - 1 - - 58.0 - This flow demonstrates how to resolve a violation of the rule "Missing Error Handler". - Default - Fix: Missing Error Handler {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - 50 - 0 - - log_call - - - Active - diff --git a/force-app/main/default/flows/Missing_Flow_Description_Fixed.flow-meta.xml b/force-app/main/default/flows/Missing_Flow_Description_Fixed.flow-meta.xml deleted file mode 100644 index 632a3c6..0000000 --- a/force-app/main/default/flows/Missing_Flow_Description_Fixed.flow-meta.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - 58.0 - - do_Anything - - 176 - 134 - - text - Assign - - new text - - - - This flow demonstrates how to resolve a violation of the rule "Missing Flow Description". - Default - Missing Flow Description Fixed {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - 50 - 0 - - do_Anything - - - Active - - text - String - false - false - false - - any text - - - diff --git a/force-app/main/default/flows/Missing_Null_Handler_Fixed.flow-meta.xml b/force-app/main/default/flows/Missing_Null_Handler_Fixed.flow-meta.xml deleted file mode 100644 index 6882dfc..0000000 --- a/force-app/main/default/flows/Missing_Null_Handler_Fixed.flow-meta.xml +++ /dev/null @@ -1,138 +0,0 @@ - - - - review_error - - 264 - 350 - FeedItem.NewTaskFromFeedItem - quickAction - - Assign_New_Account_Name - - - true - something_went_wrong - - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - - something_went_wrong - - 792 - 242 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - 58.0 - - Assign_New_Account_Name - - 176 - 590 - - GetAnAccount.Name - Assign - - Test - - - - - ifNotNull - - 176 - 242 - - review_error - - Default Outcome - - notNull - and - - GetAnAccount - IsNull - - false - - - - Assign_New_Account_Name - - - - - This flow demonstrates how to resolve a violation of the rule "Missing Null Handler". - Default - Fix: Missing null handlers {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - GetAnAccount - - 176 - 134 - false - - ifNotNull - - - something_went_wrong - - and - - Name - EqualTo - - Acme - - - true - Account - true - - - 50 - 0 - - GetAnAccount - - - Active - diff --git a/force-app/main/default/flows/Outdated_API_Version_Fixed.flow-meta.xml b/force-app/main/default/flows/Outdated_API_Version_Fixed.flow-meta.xml deleted file mode 100644 index 796795a..0000000 --- a/force-app/main/default/flows/Outdated_API_Version_Fixed.flow-meta.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - 58.0 - This flow demonstrates how to resolve a violation of the rule "Outdated API Version". - Default - Outdated API Version Fixed {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - Flow - - mockscreen - - 176 - 134 - true - true - true - true - true - - - 50 - 0 - - mockscreen - - - Active - diff --git a/force-app/main/default/flows/SOQL_Query_In_A_Loop_Fixed.flow-meta.xml b/force-app/main/default/flows/SOQL_Query_In_A_Loop_Fixed.flow-meta.xml deleted file mode 100644 index 9f089db..0000000 --- a/force-app/main/default/flows/SOQL_Query_In_A_Loop_Fixed.flow-meta.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - dosomethingelse - - 440 - 434 - NewCase - quickAction - CurrentTransaction - NewCase - 1 - - 58.0 - - notnull - - 176 - 434 - Default Outcome - - notnulln - and - - SOQL_Query_Example - IsNull - - false - - - - - - This flow demonstrates how to resolve a violation of the rule "SOQL Query In A Loop". - Default - Fix: SOQL Query In A Loop {!$Flow.CurrentDateTime} - - - an example loop - aLoop - - 176 - 134 - Accounts - Asc - - SOQL_Query_Example - - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - SOQL_Query_Example - - 176 - 326 - false - - notnull - - - dosomethingelse - - and - - Industry - EqualTo - - None - - - true - Account - true - - - 50 - 0 - - aLoop - - - Active - - A collection of Accounts - Accounts - SObject - true - true - true - Account - - diff --git a/force-app/main/default/flows/Unconnected_Element_Fixed.flow-meta.xml b/force-app/main/default/flows/Unconnected_Element_Fixed.flow-meta.xml deleted file mode 100644 index 19fe757..0000000 --- a/force-app/main/default/flows/Unconnected_Element_Fixed.flow-meta.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - 58.0 - - example assignment - getCurrentTime - - 656 - 182 - - currentTime - Assign - - $Flow.CurrentDateTime - - - - This flow demonstrates how to resolve a violation of the rule "Unconnected Element". - Default - Unconnected Element Fixed {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - FREE_FORM_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - 530 - 48 - - getCurrentTime - - - Active - - currentTime - DateTime - false - false - false - - $Flow.CurrentDateTime - - - diff --git a/force-app/main/default/flows/Unused_Variable_Fixed.flow-meta.xml b/force-app/main/default/flows/Unused_Variable_Fixed.flow-meta.xml deleted file mode 100644 index cef493a..0000000 --- a/force-app/main/default/flows/Unused_Variable_Fixed.flow-meta.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - 58.0 - This flow demonstrates how to resolve a violation of the rule "Unused Variable". - Default - Fix: Unused Variables {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - Flow - - mock_screen - - 176 - 134 - true - true - true - true - true - - - 50 - 0 - - mock_screen - - - Active - From ce44fbe99cd984d1e959675fadbcba3332455e9e Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 11 Apr 2024 00:26:20 +0200 Subject: [PATCH 2/4] rm config file --- .flow-scanner.json | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .flow-scanner.json diff --git a/.flow-scanner.json b/.flow-scanner.json deleted file mode 100644 index 6423fb7..0000000 --- a/.flow-scanner.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "rules": { - "APIVersion": {}, - "CopyAPIName": {}, - "DMLStatementInLoop": {}, - "DuplicateDMLOperation": {}, - "FlowDescription": {}, - "HardcodedId": {}, - "MissingFaultPath": {}, - "MissingNullHandler": {}, - "SOQLQueryInLoop": {}, - "UnconnectedElement": {}, - "UnusedVariable": {}, - "FlowName": {} - } -} \ No newline at end of file From 733781dd5833b789b32079f10e116cc85fd40fe7 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 11 Apr 2024 00:26:51 +0200 Subject: [PATCH 3/4] add new flow --- .../default/flows/Make_Case.flow-meta.xml | 161 ++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 force-app/main/default/flows/Make_Case.flow-meta.xml diff --git a/force-app/main/default/flows/Make_Case.flow-meta.xml b/force-app/main/default/flows/Make_Case.flow-meta.xml new file mode 100644 index 0000000..ac4f1e5 --- /dev/null +++ b/force-app/main/default/flows/Make_Case.flow-meta.xml @@ -0,0 +1,161 @@ + + + + create_account_manually + + 440 + 350 + FeedItem.NewTaskFromFeedItem + quickAction + CurrentTransaction + + contextId + + $User.Id + + + FeedItem.NewTaskFromFeedItem + 1 + + 58.0 + Make a new Case simple + Default + Make_Case {!$Flow.CurrentDateTime} + + + BuilderType + + LightningFlowBuilder + + + + CanvasMode + + AUTO_LAYOUT_CANVAS + + + + OriginBuilderType + + LightningFlowBuilder + + + Flow + + create_Case + + 176 + 458 + + AccountId + + Account.Id + + + + Description + + DescriptionRq + + + + Subject + + Subject + + + Case + true + + + createAccount + + 176 + 242 + + mock_screen_2 + + + create_account_manually + + + Name + + account_name + + + Account + true + + + mock_screen_1 + + 176 + 134 + true + true + true + + createAccount + + + account_name + String + Company Name + InputField + false + + + Description + String + Description + InputField + false + + true + true + + + mock_screen_2 + + 176 + 350 + true + true + true + + create_Case + + + Subject + String + Subject + InputField + false + + + DescriptionRq + Description + LargeTextArea + false + + true + true + + + 50 + 0 + + mock_screen_1 + + + Active + + Account + SObject + false + false + false + Account + + From b32aad57af12a1ddcfcee844a8f44dbf48928469 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 11 Apr 2024 15:15:50 +0200 Subject: [PATCH 4/4] rm --- .../default/flows/Make_Case.flow-meta.xml | 161 ------------------ 1 file changed, 161 deletions(-) delete mode 100644 force-app/main/default/flows/Make_Case.flow-meta.xml diff --git a/force-app/main/default/flows/Make_Case.flow-meta.xml b/force-app/main/default/flows/Make_Case.flow-meta.xml deleted file mode 100644 index ac4f1e5..0000000 --- a/force-app/main/default/flows/Make_Case.flow-meta.xml +++ /dev/null @@ -1,161 +0,0 @@ - - - - create_account_manually - - 440 - 350 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - 58.0 - Make a new Case simple - Default - Make_Case {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - Flow - - create_Case - - 176 - 458 - - AccountId - - Account.Id - - - - Description - - DescriptionRq - - - - Subject - - Subject - - - Case - true - - - createAccount - - 176 - 242 - - mock_screen_2 - - - create_account_manually - - - Name - - account_name - - - Account - true - - - mock_screen_1 - - 176 - 134 - true - true - true - - createAccount - - - account_name - String - Company Name - InputField - false - - - Description - String - Description - InputField - false - - true - true - - - mock_screen_2 - - 176 - 350 - true - true - true - - create_Case - - - Subject - String - Subject - InputField - false - - - DescriptionRq - Description - LargeTextArea - false - - true - true - - - 50 - 0 - - mock_screen_1 - - - Active - - Account - SObject - false - false - false - Account - -