From c02c127093e4cbd51c5aeecc3997e4a22489a8cc Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 14:55:40 -0700
Subject: [PATCH 01/23] Update fsc_actionList3.js-meta.xml
---
.../default/lwc/fsc_actionList3/fsc_actionList3.js-meta.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_actionList3/fsc_actionList3.js-meta.xml b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_actionList3/fsc_actionList3.js-meta.xml
index d000d7828..70fcb62e1 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_actionList3/fsc_actionList3.js-meta.xml
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_actionList3/fsc_actionList3.js-meta.xml
@@ -2,7 +2,7 @@
- 57.0
+ 60.0
false
From a6566aeb7cdacfad357baf8ef5025047910ceef3 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 14:56:02 -0700
Subject: [PATCH 02/23] Update fsc_flexcardCPE.js-meta.xml
---
.../default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml
index 46450740a..34f44cf9d 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js-meta.xml
@@ -1,6 +1,6 @@
- 58.0
+ 60.0
true
Flow Flex Card CPE
From 06dfa5b83ca3efa7f0b61654a6c52b1d98879eac Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 14:56:49 -0700
Subject: [PATCH 03/23] Update fsc_flexcardCPE.js
---
.../lwc/fsc_flexcardCPE/fsc_flexcardCPE.js | 32 +++++++++++++++++--
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js
index 068bbf5f2..c50bb7759 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.js
@@ -2,7 +2,7 @@
* @description :
* @author : Josh Dayment
* @group :
- * @last modified on : 05-31-2023
+ * @last modified on : 04-29-2024
* @last modified by : Josh Dayment
**/
import { api, track, LightningElement } from 'lwc';
@@ -54,10 +54,26 @@ export default class fsc_flexcardCPE extends LightningElement {
];
componentStyling = [
- { label: 'Card Size', helpText: 'Size in pixels default is 300px' },
+ { label: 'Component Label', helpText: 'Label for the entire component does support rich text' },
+ { label: 'Card Width', helpText: 'Size in pixels default is 300px' },
+ { label: 'Card Height', helpText: 'Size in pixels default is 300px' },
+
+ ];
+
+ headerStyling = [
+ { label: 'Header Field', helpText: 'Choose the field name to populate in the card header' },
{ label: 'Style attribute for the card headers', helpText: 'Standard HTML syling to apply to the card headers' },
{ label: 'Pick an Icon', helpText: 'When an Icon is selected it will apply it before the name in the card header' },
+ { label: 'Apply SLDS class to header field?', helptText: 'Select SLDS class to apply to header text' },
+ ];
+
+ cardStyling = [
+ { label: 'Style attribute for the card body', helpText: 'Standard HTML syling to apply to the card body' },
+ { label: 'Apply SLDS class to field values?', helptText: 'Select SLDS class to apply to field values' },
+ { label: 'Show or hide field labels?', helptText: 'Decide if you want to show the field labels or just the values' },
+
];
+
flexCardActions = [
{ label: 'List or Menu', helpText: 'Menu will display that action in a dropdown list, list will display the action as a list on the card' },
{ label: 'Actons Menu Label', helpText: 'When there is a text string here it either adds a label to the menu button or if list it will add a label with an h1 tag' },
@@ -90,6 +106,8 @@ export default class fsc_flexcardCPE extends LightningElement {
cardWidth: { value: null, valueDataType: null, isCollection: false, label: 'Card Width', helpText: 'This is the width of the card in Pixels' },
fieldVariant: { value: null, valueDatatType: null, isCollection: false, label: 'Field Variant' },
fieldClass: { value: null, valueDataType: null, isCollection: false, label: 'Field Class' },
+ headerField: { value: null, valueDataType: null, isCollection: false, label: 'Header Field' },
+ headerFieldClass: { value: null, valueDataType: null, isCollection: false, label: 'Header Field Class' },
};
@api get builderContext() {
@@ -175,7 +193,7 @@ export default class fsc_flexcardCPE extends LightningElement {
get fieldClassOptions() {
return [
- { label: '--None--', value:''},
+ { label: '--None--', value: '' },
{ label: 'Body Small', value: 'slds-text-body_small' },
{ label: 'Heading Large', value: 'slds-text-heading_large' },
{ label: 'Heading Medium', value: 'slds-text-heading_medium' },
@@ -370,10 +388,18 @@ export default class fsc_flexcardCPE extends LightningElement {
this.dispatchFlowValueChangeEvent('fieldClass', event.detail.value, 'String')
}
+ handleHeaderFieldClassChange(event) {
+ this.dispatchFlowValueChangeEvent('headerFieldClass', event.detail.value, 'String')
+ }
+
handleAllowAllObjects(event) {
this.dispatchFlowValueChangeEvent('allowAllObjects', event.detail.value, 'String');
}
+ handleHeaderFieldNameChange(event) {
+ this.dispatchFlowValueChangeEvent('headerField', event.detail.value, 'String');
+ }
+
get isMenu() {
let displayType = this.inputValues.actionDisplayType.value
if (displayType == 'menu')
From cbfd137a33965bbe9d8b27fc999ac7e71967a6e3 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 14:57:23 -0700
Subject: [PATCH 04/23] Update fsc_flexcardCPE.html
---
.../lwc/fsc_flexcardCPE/fsc_flexcardCPE.html | 38 +++++++++++++------
1 file changed, 26 insertions(+), 12 deletions(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.html b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.html
index fea9c29ca..f172d8d59 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.html
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardCPE/fsc_flexcardCPE.html
@@ -2,7 +2,7 @@
@description :
@author : ChangeMeIn@UserSettingsUnder.SFDoc
@group :
- @last modified on : 08-20-2023
+ @last modified on : 04-29-2024
@last modified by : Josh Dayment
-->
@@ -27,35 +27,50 @@
onvaluechanged={handleFlowComboboxValueChange} required=true>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
@@ -66,7 +81,6 @@
-
From f2a1ad1a0c822f61ea9e03765bfe6c39c778b5dc Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 14:57:54 -0700
Subject: [PATCH 05/23] Update fsc_flexcardFlow.js-meta.xml
---
.../lwc/fsc_flexcardFlow/fsc_flexcardFlow.js-meta.xml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js-meta.xml b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js-meta.xml
index f9544cfdf..9775c9e8c 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js-meta.xml
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js-meta.xml
@@ -1,7 +1,8 @@
- 57.0
+ 60.0
true
+ Flow Flex Cards
lightning__FlowScreen
@@ -66,6 +67,8 @@
+
+
From 50b2bb020a23ffc5a1a590b21ab838668132cfec Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 14:59:44 -0700
Subject: [PATCH 06/23] Update fsc_flexcardFlow.js
---
.../default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js
index 7d7915747..b665b7a2e 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js
@@ -2,7 +2,7 @@
* @description :
* @author : Josh Dayment
* @group :
- * @last modified on : 01-03-2024
+ * @last modified on : 04-29-2024
* @last modified by : Josh Dayment
**/
import { LightningElement, api, track, wire } from 'lwc';
@@ -107,6 +107,8 @@ export default class FlexcardFlow extends LightningElement {
@api cardWidth = 300;
@api fieldVariant;
@api fieldClass;
+ @api headerField = 'Name';
+ @api headerFieldClass = 'slds-text-heading_small';
curRecord;
@@ -121,6 +123,7 @@ export default class FlexcardFlow extends LightningElement {
renderedCallback() {
if (this.value != null && !this.allowMultiSelect && this.isClickable) {
this.template.querySelector('[data-id="' + this.value + '"]').checked = true;
+
}
}
@@ -131,6 +134,10 @@ export default class FlexcardFlow extends LightningElement {
}
//console.log('records are: ' + JSON.stringify(this.records));
this.recs = JSON.parse(JSON.stringify(this.records));
+
+
+
+
}
@@ -139,6 +146,8 @@ export default class FlexcardFlow extends LightningElement {
processRecords() {
this.recs = JSON.parse(JSON.stringify(this._records));
+ this.setHeaderValue;
+ console.log(this.headerValue)
}
@@ -215,4 +224,5 @@ export default class FlexcardFlow extends LightningElement {
}
}
+
}
From b135dfef1508ba261f07050272b458b0982c474e Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 15:00:15 -0700
Subject: [PATCH 07/23] Update fsc_flexcardFlow.html
---
.../lwc/fsc_flexcardFlow/fsc_flexcardFlow.html | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.html b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.html
index 0a1032257..d45a41bac 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.html
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.html
@@ -2,7 +2,7 @@
@description :
@author : ChangeMeIn@UserSettingsUnder.SFDoc
@group :
- @last modified on : 01-03-2024
+ @last modified on : 04-29-2024
@last modified by : Josh Dayment
-->
@@ -31,7 +31,15 @@
- {record.Name}
+
+
+
+
+
+
+
+
From ee999267c2fab27a4d4a6a06338bf79e6f108a23 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 15:00:32 -0700
Subject: [PATCH 08/23] Update fsc_modalFlow.js-meta.xml
---
.../main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml
index 26bba5fe3..dca00dbec 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js-meta.xml
@@ -1,5 +1,5 @@
- 56.0
+ 60.0
true
-
\ No newline at end of file
+
From fd7d86619ad5bd7698e4d42bc49a1885a20a97c3 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 15:01:04 -0700
Subject: [PATCH 09/23] Update fsc_modalFlow.js
---
.../main/default/lwc/fsc_modalFlow/fsc_modalFlow.js | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js
index d69918ee3..63bd03a3b 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_modalFlow/fsc_modalFlow.js
@@ -2,11 +2,12 @@
* @description :
* @author : Josh Dayment
* @group :
- * @last modified on : 05-31-2023
+ * @last modified on : 04-29-2024
* @last modified by : Josh Dayment
**/
import { LightningElement, api } from 'lwc';
import LightningModal from 'lightning/modal';
+import { notifyRecordUpdateAvailable } from 'lightning/uiRecordApi'; // Added by Brian Paul
export default class fsc_modalFlow extends LightningModal {
@api flowNameToInvoke;
@@ -16,7 +17,11 @@ export default class fsc_modalFlow extends LightningModal {
handleOpenModal(event){
if(event.detail.status === 'FINISHED' || event.detail.status === 'FINISHED_SCREEN'){
+ const recordId = this.flowParams[0]?.value;
+ if(recordId) {
+ notifyRecordUpdateAvailable([{recordId: recordId}])
+ } // Add by Brian Paul
this.close('modal closed, flow status is ' + event.detail.status);
}
}
-}
\ No newline at end of file
+}
From 77830cbaffa140cabe980a10bf430e3512c2a9ea Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 29 Apr 2024 15:04:37 -0700
Subject: [PATCH 10/23] Update fsc_flexcardFlow.js
---
.../main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js | 3 ---
1 file changed, 3 deletions(-)
diff --git a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js
index b665b7a2e..901004363 100644
--- a/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js
+++ b/flow_screen_components/FlowScreenComponentsBasePack/force-app/main/default/lwc/fsc_flexcardFlow/fsc_flexcardFlow.js
@@ -146,9 +146,6 @@ export default class FlexcardFlow extends LightningElement {
processRecords() {
this.recs = JSON.parse(JSON.stringify(this._records));
- this.setHeaderValue;
- console.log(this.headerValue)
-
}
From 3f12e9ed28a07d1a60ab1b84bbaf2e0a02872ee8 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 3 Jun 2024 14:00:22 -0700
Subject: [PATCH 11/23] Add files via upload
---
.../main/default/classes/ApprovalChecker.cls | 9 +++++++++
.../default/classes/ApprovalChecker.cls-meta.xml | 5 +++++
.../main/default/classes/ApprovalCheckerTest.cls | 16 ++++++++++++++++
.../classes/ApprovalCheckerTest.cls-meta.xml | 5 +++++
4 files changed, 35 insertions(+)
create mode 100644 flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
create mode 100644 flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
create mode 100644 flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
create mode 100644 flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
diff --git a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
new file mode 100644
index 000000000..4ce9ed1a0
--- /dev/null
+++ b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
@@ -0,0 +1,9 @@
+public class ApprovalChecker {
+ @InvocableMethod (label='Check if a record is locked')
+ public static List isLocked(List recordIdToCheck) {
+ List isLockedList = new List();
+ for (Id recordId : recordIdToCheck) {
+ isLockedList.add(system.Approval.isLocked(recordId));
+ }
+ return isLockedList;}
+}
\ No newline at end of file
diff --git a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
new file mode 100644
index 000000000..651b17293
--- /dev/null
+++ b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 61.0
+ Active
+
diff --git a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
new file mode 100644
index 000000000..0a985cc3e
--- /dev/null
+++ b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
@@ -0,0 +1,16 @@
+@isTest
+private class ApprovalCheckerTest {
+ @isTest
+ static void testIsLocked() {
+ // Create test data
+ Account acc = new Account(Name='Test Account');
+ insert acc;
+
+ // Call the method to be tested
+ List result = ApprovalChecker.isLocked(new List{acc.Id});
+
+ // Perform assertions
+ System.assertEquals(1, result.size(), 'Result should have only one entry');
+ System.assertEquals(false, result[0], 'The test account should not be locked');
+ }
+}
\ No newline at end of file
diff --git a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
new file mode 100644
index 000000000..651b17293
--- /dev/null
+++ b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 61.0
+ Active
+
From f810af73a6e16a8bc20b09840e0c8a1569c3964b Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 3 Jun 2024 14:00:54 -0700
Subject: [PATCH 12/23] Delete flow_action_components/Approval Checker/Approval
Checker/force-app/main/default/classes directory
---
.../main/default/classes/ApprovalChecker.cls | 9 ---------
.../default/classes/ApprovalChecker.cls-meta.xml | 5 -----
.../main/default/classes/ApprovalCheckerTest.cls | 16 ----------------
.../classes/ApprovalCheckerTest.cls-meta.xml | 5 -----
4 files changed, 35 deletions(-)
delete mode 100644 flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
delete mode 100644 flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
delete mode 100644 flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
delete mode 100644 flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
diff --git a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
deleted file mode 100644
index 4ce9ed1a0..000000000
--- a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
+++ /dev/null
@@ -1,9 +0,0 @@
-public class ApprovalChecker {
- @InvocableMethod (label='Check if a record is locked')
- public static List isLocked(List recordIdToCheck) {
- List isLockedList = new List();
- for (Id recordId : recordIdToCheck) {
- isLockedList.add(system.Approval.isLocked(recordId));
- }
- return isLockedList;}
-}
\ No newline at end of file
diff --git a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
deleted file mode 100644
index 651b17293..000000000
--- a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- 61.0
- Active
-
diff --git a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
deleted file mode 100644
index 0a985cc3e..000000000
--- a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
+++ /dev/null
@@ -1,16 +0,0 @@
-@isTest
-private class ApprovalCheckerTest {
- @isTest
- static void testIsLocked() {
- // Create test data
- Account acc = new Account(Name='Test Account');
- insert acc;
-
- // Call the method to be tested
- List result = ApprovalChecker.isLocked(new List{acc.Id});
-
- // Perform assertions
- System.assertEquals(1, result.size(), 'Result should have only one entry');
- System.assertEquals(false, result[0], 'The test account should not be locked');
- }
-}
\ No newline at end of file
diff --git a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml b/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
deleted file mode 100644
index 651b17293..000000000
--- a/flow_action_components/Approval Checker/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- 61.0
- Active
-
From 89bccc6e4bc2edf2ccdc42fa2d31223e6ac34f65 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 3 Jun 2024 14:01:27 -0700
Subject: [PATCH 13/23] Add files via upload
---
.../main/default/classes/ApprovalChecker.cls | 9 +++++++++
.../default/classes/ApprovalChecker.cls-meta.xml | 5 +++++
.../main/default/classes/ApprovalCheckerTest.cls | 16 ++++++++++++++++
.../classes/ApprovalCheckerTest.cls-meta.xml | 5 +++++
4 files changed, 35 insertions(+)
create mode 100644 flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
create mode 100644 flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
create mode 100644 flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
create mode 100644 flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
diff --git a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
new file mode 100644
index 000000000..4ce9ed1a0
--- /dev/null
+++ b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
@@ -0,0 +1,9 @@
+public class ApprovalChecker {
+ @InvocableMethod (label='Check if a record is locked')
+ public static List isLocked(List recordIdToCheck) {
+ List isLockedList = new List();
+ for (Id recordId : recordIdToCheck) {
+ isLockedList.add(system.Approval.isLocked(recordId));
+ }
+ return isLockedList;}
+}
\ No newline at end of file
diff --git a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
new file mode 100644
index 000000000..651b17293
--- /dev/null
+++ b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 61.0
+ Active
+
diff --git a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
new file mode 100644
index 000000000..0a985cc3e
--- /dev/null
+++ b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
@@ -0,0 +1,16 @@
+@isTest
+private class ApprovalCheckerTest {
+ @isTest
+ static void testIsLocked() {
+ // Create test data
+ Account acc = new Account(Name='Test Account');
+ insert acc;
+
+ // Call the method to be tested
+ List result = ApprovalChecker.isLocked(new List{acc.Id});
+
+ // Perform assertions
+ System.assertEquals(1, result.size(), 'Result should have only one entry');
+ System.assertEquals(false, result[0], 'The test account should not be locked');
+ }
+}
\ No newline at end of file
diff --git a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
new file mode 100644
index 000000000..651b17293
--- /dev/null
+++ b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 61.0
+ Active
+
From 97f27bb1d53af6bc7ae06b18eec339a4e2fe4d0d Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 3 Jun 2024 14:02:47 -0700
Subject: [PATCH 14/23] Delete flow_action_components/Approval Checker
directory
---
.../main/default/classes/ApprovalChecker.cls | 9 ---------
.../default/classes/ApprovalChecker.cls-meta.xml | 5 -----
.../main/default/classes/ApprovalCheckerTest.cls | 16 ----------------
.../classes/ApprovalCheckerTest.cls-meta.xml | 5 -----
4 files changed, 35 deletions(-)
delete mode 100644 flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
delete mode 100644 flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
delete mode 100644 flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
delete mode 100644 flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
diff --git a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
deleted file mode 100644
index 4ce9ed1a0..000000000
--- a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls
+++ /dev/null
@@ -1,9 +0,0 @@
-public class ApprovalChecker {
- @InvocableMethod (label='Check if a record is locked')
- public static List isLocked(List recordIdToCheck) {
- List isLockedList = new List();
- for (Id recordId : recordIdToCheck) {
- isLockedList.add(system.Approval.isLocked(recordId));
- }
- return isLockedList;}
-}
\ No newline at end of file
diff --git a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
deleted file mode 100644
index 651b17293..000000000
--- a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalChecker.cls-meta.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- 61.0
- Active
-
diff --git a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
deleted file mode 100644
index 0a985cc3e..000000000
--- a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls
+++ /dev/null
@@ -1,16 +0,0 @@
-@isTest
-private class ApprovalCheckerTest {
- @isTest
- static void testIsLocked() {
- // Create test data
- Account acc = new Account(Name='Test Account');
- insert acc;
-
- // Call the method to be tested
- List result = ApprovalChecker.isLocked(new List{acc.Id});
-
- // Perform assertions
- System.assertEquals(1, result.size(), 'Result should have only one entry');
- System.assertEquals(false, result[0], 'The test account should not be locked');
- }
-}
\ No newline at end of file
diff --git a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml b/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
deleted file mode 100644
index 651b17293..000000000
--- a/flow_action_components/Approval Checker/force-app/main/default/classes/ApprovalCheckerTest.cls-meta.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- 61.0
- Active
-
From 1b40ff314990919346b6bbb32b83542c227cc163 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 3 Jun 2024 14:03:13 -0700
Subject: [PATCH 15/23] Create ApprovalChecker
---
flow_action_components/ApprovalChecker | 1 +
1 file changed, 1 insertion(+)
create mode 100644 flow_action_components/ApprovalChecker
diff --git a/flow_action_components/ApprovalChecker b/flow_action_components/ApprovalChecker
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/flow_action_components/ApprovalChecker
@@ -0,0 +1 @@
+
From 6df2dfe937568270a06cc30414f719a1edafaaf4 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 3 Jun 2024 14:03:36 -0700
Subject: [PATCH 16/23] Delete flow_action_components/ApprovalChecker
---
flow_action_components/ApprovalChecker | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 flow_action_components/ApprovalChecker
diff --git a/flow_action_components/ApprovalChecker b/flow_action_components/ApprovalChecker
deleted file mode 100644
index 8b1378917..000000000
--- a/flow_action_components/ApprovalChecker
+++ /dev/null
@@ -1 +0,0 @@
-
From e4e8173ee8474472ff70028da8303d71c21be097 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Mon, 3 Jun 2024 14:07:11 -0700
Subject: [PATCH 17/23] Add files via upload
---
.../ApprovalChecker/ApprovalChecker.cls | 9 +++++++++
.../ApprovalChecker/ApprovalChecker.cls-meta.xml | 5 +++++
.../ApprovalChecker/ApprovalCheckerTest.cls | 16 ++++++++++++++++
.../ApprovalCheckerTest.cls-meta.xml | 5 +++++
4 files changed, 35 insertions(+)
create mode 100644 flow_action_components/ApprovalChecker/ApprovalChecker.cls
create mode 100644 flow_action_components/ApprovalChecker/ApprovalChecker.cls-meta.xml
create mode 100644 flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls
create mode 100644 flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls-meta.xml
diff --git a/flow_action_components/ApprovalChecker/ApprovalChecker.cls b/flow_action_components/ApprovalChecker/ApprovalChecker.cls
new file mode 100644
index 000000000..4ce9ed1a0
--- /dev/null
+++ b/flow_action_components/ApprovalChecker/ApprovalChecker.cls
@@ -0,0 +1,9 @@
+public class ApprovalChecker {
+ @InvocableMethod (label='Check if a record is locked')
+ public static List isLocked(List recordIdToCheck) {
+ List isLockedList = new List();
+ for (Id recordId : recordIdToCheck) {
+ isLockedList.add(system.Approval.isLocked(recordId));
+ }
+ return isLockedList;}
+}
\ No newline at end of file
diff --git a/flow_action_components/ApprovalChecker/ApprovalChecker.cls-meta.xml b/flow_action_components/ApprovalChecker/ApprovalChecker.cls-meta.xml
new file mode 100644
index 000000000..651b17293
--- /dev/null
+++ b/flow_action_components/ApprovalChecker/ApprovalChecker.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 61.0
+ Active
+
diff --git a/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls b/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls
new file mode 100644
index 000000000..0a985cc3e
--- /dev/null
+++ b/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls
@@ -0,0 +1,16 @@
+@isTest
+private class ApprovalCheckerTest {
+ @isTest
+ static void testIsLocked() {
+ // Create test data
+ Account acc = new Account(Name='Test Account');
+ insert acc;
+
+ // Call the method to be tested
+ List result = ApprovalChecker.isLocked(new List{acc.Id});
+
+ // Perform assertions
+ System.assertEquals(1, result.size(), 'Result should have only one entry');
+ System.assertEquals(false, result[0], 'The test account should not be locked');
+ }
+}
\ No newline at end of file
diff --git a/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls-meta.xml b/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls-meta.xml
new file mode 100644
index 000000000..651b17293
--- /dev/null
+++ b/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls-meta.xml
@@ -0,0 +1,5 @@
+
+
+ 61.0
+ Active
+
From da93b13bd65ad658190bc652ca34ed78cf6cf5a5 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Tue, 4 Jun 2024 07:42:16 -0700
Subject: [PATCH 18/23] Update and rename ApprovalChecker.cls to
LockChecker.cls
---
.../ApprovalChecker/{ApprovalChecker.cls => LockChecker.cls} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename flow_action_components/ApprovalChecker/{ApprovalChecker.cls => LockChecker.cls} (91%)
diff --git a/flow_action_components/ApprovalChecker/ApprovalChecker.cls b/flow_action_components/ApprovalChecker/LockChecker.cls
similarity index 91%
rename from flow_action_components/ApprovalChecker/ApprovalChecker.cls
rename to flow_action_components/ApprovalChecker/LockChecker.cls
index 4ce9ed1a0..c7b5a64a3 100644
--- a/flow_action_components/ApprovalChecker/ApprovalChecker.cls
+++ b/flow_action_components/ApprovalChecker/LockChecker.cls
@@ -1,4 +1,4 @@
-public class ApprovalChecker {
+public class LockChecker {
@InvocableMethod (label='Check if a record is locked')
public static List isLocked(List recordIdToCheck) {
List isLockedList = new List();
@@ -6,4 +6,4 @@ public class ApprovalChecker {
isLockedList.add(system.Approval.isLocked(recordId));
}
return isLockedList;}
-}
\ No newline at end of file
+}
From 021a1e955a22e40c940d924b47b4472fbb95991f Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Tue, 4 Jun 2024 07:42:34 -0700
Subject: [PATCH 19/23] Rename ApprovalChecker.cls-meta.xml to
LockChecker.cls-meta.xml
---
.../{ApprovalChecker.cls-meta.xml => LockChecker.cls-meta.xml} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename flow_action_components/ApprovalChecker/{ApprovalChecker.cls-meta.xml => LockChecker.cls-meta.xml} (100%)
diff --git a/flow_action_components/ApprovalChecker/ApprovalChecker.cls-meta.xml b/flow_action_components/ApprovalChecker/LockChecker.cls-meta.xml
similarity index 100%
rename from flow_action_components/ApprovalChecker/ApprovalChecker.cls-meta.xml
rename to flow_action_components/ApprovalChecker/LockChecker.cls-meta.xml
From a247301c9f23d7b68b3d27fd364ddc8e4d55a603 Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Tue, 4 Jun 2024 07:43:07 -0700
Subject: [PATCH 20/23] Update ApprovalCheckerTest.cls
---
.../ApprovalChecker/ApprovalCheckerTest.cls | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls b/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls
index 0a985cc3e..5e0d351df 100644
--- a/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls
+++ b/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls
@@ -1,5 +1,5 @@
@isTest
-private class ApprovalCheckerTest {
+private class LockCheckerTest {
@isTest
static void testIsLocked() {
// Create test data
@@ -7,10 +7,10 @@ private class ApprovalCheckerTest {
insert acc;
// Call the method to be tested
- List result = ApprovalChecker.isLocked(new List{acc.Id});
+ List result = LockChecker.isLocked(new List{acc.Id});
// Perform assertions
System.assertEquals(1, result.size(), 'Result should have only one entry');
System.assertEquals(false, result[0], 'The test account should not be locked');
}
-}
\ No newline at end of file
+}
From 3cc887a7a8246e4a55b83dcccddcfd26b59358fb Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Tue, 4 Jun 2024 07:43:24 -0700
Subject: [PATCH 21/23] Rename ApprovalCheckerTest.cls to LockCheckerTest.cls
---
.../{ApprovalCheckerTest.cls => LockCheckerTest.cls} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename flow_action_components/ApprovalChecker/{ApprovalCheckerTest.cls => LockCheckerTest.cls} (100%)
diff --git a/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls b/flow_action_components/ApprovalChecker/LockCheckerTest.cls
similarity index 100%
rename from flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls
rename to flow_action_components/ApprovalChecker/LockCheckerTest.cls
From 79f947b0b81c84548f5174e22b8d69ed1e8a760e Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Tue, 4 Jun 2024 07:43:38 -0700
Subject: [PATCH 22/23] Rename ApprovalCheckerTest.cls-meta.xml to
LockCheckerTest.cls-meta.xml
---
...rovalCheckerTest.cls-meta.xml => LockCheckerTest.cls-meta.xml} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename flow_action_components/ApprovalChecker/{ApprovalCheckerTest.cls-meta.xml => LockCheckerTest.cls-meta.xml} (100%)
diff --git a/flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls-meta.xml b/flow_action_components/ApprovalChecker/LockCheckerTest.cls-meta.xml
similarity index 100%
rename from flow_action_components/ApprovalChecker/ApprovalCheckerTest.cls-meta.xml
rename to flow_action_components/ApprovalChecker/LockCheckerTest.cls-meta.xml
From 9109c547801896dc87df86c3763fa0a8f6f7434d Mon Sep 17 00:00:00 2001
From: Josh Dayment <52637666+jdayment@users.noreply.github.com>
Date: Tue, 4 Jun 2024 07:45:56 -0700
Subject: [PATCH 23/23] Rename LockChecker.cls to LockChecker.cls
---
.../{ApprovalChecker => LockChecker}/LockChecker.cls | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename flow_action_components/{ApprovalChecker => LockChecker}/LockChecker.cls (100%)
diff --git a/flow_action_components/ApprovalChecker/LockChecker.cls b/flow_action_components/LockChecker/LockChecker.cls
similarity index 100%
rename from flow_action_components/ApprovalChecker/LockChecker.cls
rename to flow_action_components/LockChecker/LockChecker.cls