From 1ad3a57e2dc56047d01cc9e63bfdaf99473131de Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 2 Aug 2024 07:02:55 -0700 Subject: [PATCH 01/10] Rename LockChecker.cls-meta.xml to LockChecker.cls-meta.xml --- .../{ApprovalChecker => LockChecker}/LockChecker.cls-meta.xml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename flow_action_components/{ApprovalChecker => LockChecker}/LockChecker.cls-meta.xml (100%) diff --git a/flow_action_components/ApprovalChecker/LockChecker.cls-meta.xml b/flow_action_components/LockChecker/LockChecker.cls-meta.xml similarity index 100% rename from flow_action_components/ApprovalChecker/LockChecker.cls-meta.xml rename to flow_action_components/LockChecker/LockChecker.cls-meta.xml From 55deb564f0c6da3677788bc90a19972b09cf4047 Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 2 Aug 2024 07:03:27 -0700 Subject: [PATCH 02/10] Rename LockCheckerTest.cls to LockCheckerTest.cls --- .../{ApprovalChecker => LockChecker}/LockCheckerTest.cls | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename flow_action_components/{ApprovalChecker => LockChecker}/LockCheckerTest.cls (100%) diff --git a/flow_action_components/ApprovalChecker/LockCheckerTest.cls b/flow_action_components/LockChecker/LockCheckerTest.cls similarity index 100% rename from flow_action_components/ApprovalChecker/LockCheckerTest.cls rename to flow_action_components/LockChecker/LockCheckerTest.cls From 2a55e869a670fb740fe18fc93271caeb4b49001d Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 2 Aug 2024 07:04:04 -0700 Subject: [PATCH 03/10] Rename LockCheckerTest.cls-meta.xml to LockCheckerTest.cls-meta.xml --- .../{ApprovalChecker => LockChecker}/LockCheckerTest.cls-meta.xml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename flow_action_components/{ApprovalChecker => LockChecker}/LockCheckerTest.cls-meta.xml (100%) diff --git a/flow_action_components/ApprovalChecker/LockCheckerTest.cls-meta.xml b/flow_action_components/LockChecker/LockCheckerTest.cls-meta.xml similarity index 100% rename from flow_action_components/ApprovalChecker/LockCheckerTest.cls-meta.xml rename to flow_action_components/LockChecker/LockCheckerTest.cls-meta.xml From f1d529e264b8f32cb2dc5c05902e65a86a6a1374 Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:45:51 -0700 Subject: [PATCH 04/10] Add files via upload --- .../default/classes/Base64ToFileConverter.cls | 67 +++++++++++++++++++ .../Base64ToFileConverter.cls-meta.xml | 5 ++ .../classes/TestBase64ToFileConverter.cls | 50 ++++++++++++++ .../TestBase64ToFileConverter.cls-meta.xml | 5 ++ 4 files changed, 127 insertions(+) create mode 100644 flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls create mode 100644 flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml create mode 100644 flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls create mode 100644 flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml diff --git a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls new file mode 100644 index 000000000..4104c0dff --- /dev/null +++ b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls @@ -0,0 +1,67 @@ +/** + * @description : + * @author : Josh Dayment + * @group : + * @last modified on : 09-03-2024 + * @last modified by : Josh Dayment +**/ +global with sharing class Base64ToFileConverter { + + @InvocableMethod(label='Convert Base64 to File and Attach' iconName='slds:standard:attach') + global static List convertAndAttach(List requests) { + + List responses = new List(); + + for(Request req : requests) { + // Decode the Base64 string + Blob fileBody = EncodingUtil.base64Decode(req.base64Text.substringAfter(',')); + + + // Prepare the ContentVersion (File) record + ContentVersion cv = new ContentVersion(); + cv.VersionData = fileBody; + cv.Title = req.fileName; + cv.PathOnClient = req.fileName; + cv.FirstPublishLocationId = req.recordId; + + // Check if user can create and insert Content Version Records. + if (Schema.sObjectType.ContentVersion.isCreateable() && Schema.sObjectType.ContentVersion.isUpdateable()) { + insert cv; + } + + // Create a Response object and add it to the list + Response res = new Response(); + res.contentVersionId = cv.Id; + responses.add(res); + + // Optionally, create a ContentDocumentLink if needed for explicit linking in some scenarios + // ContentDocumentLink cdl = new ContentDocumentLink(); + // cdl.LinkedEntityId = req.recordId; + // cdl.ContentDocumentId = [SELECT ContentDocumentId FROM ContentVersion WHERE Id = :cv.Id].ContentDocumentId; + // cdl.ShareType = 'V'; // Adjust as per your sharing requirements + // insert cdl; + } + + return responses; + } + + // Invocable Method Variables + + global class Request { + @InvocableVariable(label='Base64 Encoded File Content') + global String base64Text; + + @InvocableVariable(label='Related Record ID') + global Id recordId; + + @InvocableVariable(label='File Name' description='Enter the full file name, including extension (e.g. myFile.jpg)' placeholderText='myFile.jpg' required=true) + global String fileName; + } + +// Invocable Method Variables + + global class Response { + @InvocableVariable(label='Content Version ID') + global String contentVersionId; + } +} \ No newline at end of file diff --git a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml new file mode 100644 index 000000000..7d5f9e8a3 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml @@ -0,0 +1,5 @@ + + + 61.0 + Active + \ No newline at end of file diff --git a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls new file mode 100644 index 000000000..cb190d15b --- /dev/null +++ b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls @@ -0,0 +1,50 @@ +/** + * @description : + * @author : Josh Dayment + * @group : + * @last modified on : 08-21-2024 + * @last modified by : Josh Dayment +**/ +@IsTest +public class TestBase64ToFileConverter { + + @IsTest + static void testConvertAndAttach() { + // Create a test Account record + Account acc = new Account(Name='Test Account'); + insert acc; + + // Create a test File Content + Blob fileBody = Blob.valueOf('Test file content'); + + // Convert the Blob to Base64 + String base64Text = EncodingUtil.base64Encode(fileBody); + + // Create a test Request object + Base64ToFileConverter.Request req = new Base64ToFileConverter.Request(); + req.base64Text = 'data:image/jpeg;base64,' + base64Text; + req.recordId = acc.Id; + req.fileName = 'testFile.jpg'; + + // Prepare a list of test Request objects + List requests = new List{ req }; + + // Run the test as a specific user + System.runAs(new User(Id = UserInfo.getUserId())) { + Test.startTest(); + + // Call the method to be tested + List responses = Base64ToFileConverter.convertAndAttach(requests); + + Test.stopTest(); + + // Assertions + System.assertEquals(1, responses.size(), 'Response list should have 1 item'); + System.assertNotEquals(null, responses[0].contentVersionId, 'ContentVersionId should not be null'); + + } + } +} + + + diff --git a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml new file mode 100644 index 000000000..b48fe5449 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml @@ -0,0 +1,5 @@ + + + 47.0 + Active + \ No newline at end of file From 6fe2be433b0d0582c1337589a1cfe53b366ae9c0 Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:47:38 -0700 Subject: [PATCH 05/10] Delete flow_action_components/Base64 To File Converter/force-app/main/default/classes directory --- .../default/classes/Base64ToFileConverter.cls | 67 ------------------- .../Base64ToFileConverter.cls-meta.xml | 5 -- .../classes/TestBase64ToFileConverter.cls | 50 -------------- .../TestBase64ToFileConverter.cls-meta.xml | 5 -- 4 files changed, 127 deletions(-) delete mode 100644 flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls delete mode 100644 flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml delete mode 100644 flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls delete mode 100644 flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml diff --git a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls deleted file mode 100644 index 4104c0dff..000000000 --- a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @description : - * @author : Josh Dayment - * @group : - * @last modified on : 09-03-2024 - * @last modified by : Josh Dayment -**/ -global with sharing class Base64ToFileConverter { - - @InvocableMethod(label='Convert Base64 to File and Attach' iconName='slds:standard:attach') - global static List convertAndAttach(List requests) { - - List responses = new List(); - - for(Request req : requests) { - // Decode the Base64 string - Blob fileBody = EncodingUtil.base64Decode(req.base64Text.substringAfter(',')); - - - // Prepare the ContentVersion (File) record - ContentVersion cv = new ContentVersion(); - cv.VersionData = fileBody; - cv.Title = req.fileName; - cv.PathOnClient = req.fileName; - cv.FirstPublishLocationId = req.recordId; - - // Check if user can create and insert Content Version Records. - if (Schema.sObjectType.ContentVersion.isCreateable() && Schema.sObjectType.ContentVersion.isUpdateable()) { - insert cv; - } - - // Create a Response object and add it to the list - Response res = new Response(); - res.contentVersionId = cv.Id; - responses.add(res); - - // Optionally, create a ContentDocumentLink if needed for explicit linking in some scenarios - // ContentDocumentLink cdl = new ContentDocumentLink(); - // cdl.LinkedEntityId = req.recordId; - // cdl.ContentDocumentId = [SELECT ContentDocumentId FROM ContentVersion WHERE Id = :cv.Id].ContentDocumentId; - // cdl.ShareType = 'V'; // Adjust as per your sharing requirements - // insert cdl; - } - - return responses; - } - - // Invocable Method Variables - - global class Request { - @InvocableVariable(label='Base64 Encoded File Content') - global String base64Text; - - @InvocableVariable(label='Related Record ID') - global Id recordId; - - @InvocableVariable(label='File Name' description='Enter the full file name, including extension (e.g. myFile.jpg)' placeholderText='myFile.jpg' required=true) - global String fileName; - } - -// Invocable Method Variables - - global class Response { - @InvocableVariable(label='Content Version ID') - global String contentVersionId; - } -} \ No newline at end of file diff --git a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml deleted file mode 100644 index 7d5f9e8a3..000000000 --- a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 61.0 - Active - \ No newline at end of file diff --git a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls deleted file mode 100644 index cb190d15b..000000000 --- a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @description : - * @author : Josh Dayment - * @group : - * @last modified on : 08-21-2024 - * @last modified by : Josh Dayment -**/ -@IsTest -public class TestBase64ToFileConverter { - - @IsTest - static void testConvertAndAttach() { - // Create a test Account record - Account acc = new Account(Name='Test Account'); - insert acc; - - // Create a test File Content - Blob fileBody = Blob.valueOf('Test file content'); - - // Convert the Blob to Base64 - String base64Text = EncodingUtil.base64Encode(fileBody); - - // Create a test Request object - Base64ToFileConverter.Request req = new Base64ToFileConverter.Request(); - req.base64Text = 'data:image/jpeg;base64,' + base64Text; - req.recordId = acc.Id; - req.fileName = 'testFile.jpg'; - - // Prepare a list of test Request objects - List requests = new List{ req }; - - // Run the test as a specific user - System.runAs(new User(Id = UserInfo.getUserId())) { - Test.startTest(); - - // Call the method to be tested - List responses = Base64ToFileConverter.convertAndAttach(requests); - - Test.stopTest(); - - // Assertions - System.assertEquals(1, responses.size(), 'Response list should have 1 item'); - System.assertNotEquals(null, responses[0].contentVersionId, 'ContentVersionId should not be null'); - - } - } -} - - - diff --git a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml b/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml deleted file mode 100644 index b48fe5449..000000000 --- a/flow_action_components/Base64 To File Converter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 47.0 - Active - \ No newline at end of file From b885915c87dff709b657af2d93acc5212c70faaa Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:53:08 -0700 Subject: [PATCH 06/10] Add files via upload --- .../Base64ToFileConverter/README.md | 18 +++++ .../config/project-scratch-def.json | 13 ++++ .../default/classes/Base64ToFileConverter.cls | 67 +++++++++++++++++++ .../Base64ToFileConverter.cls-meta.xml | 5 ++ .../classes/TestBase64ToFileConverter.cls | 49 ++++++++++++++ .../TestBase64ToFileConverter.cls-meta.xml | 5 ++ .../force-app/main/default/lwc/jsconfig.json | 20 ++++++ .../Base64ToFileConverter/jest.config.js | 6 ++ .../Base64ToFileConverter/package.json | 41 ++++++++++++ .../scripts/apex/hello.apex | 10 +++ .../scripts/soql/account.soql | 6 ++ .../Base64ToFileConverter/sfdx-project.json | 12 ++++ 12 files changed, 252 insertions(+) create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/README.md create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/config/project-scratch-def.json create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/lwc/jsconfig.json create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/jest.config.js create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/package.json create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/apex/hello.apex create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/soql/account.soql create mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/sfdx-project.json diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/README.md b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/README.md new file mode 100644 index 000000000..afcda4a66 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/README.md @@ -0,0 +1,18 @@ +# Salesforce DX Project: Next Steps + +Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started. + +## How Do You Plan to Deploy Your Changes? + +Do you want to deploy a set of changes, or create a self-contained application? Choose a [development model](https://developer.salesforce.com/tools/vscode/en/user-guide/development-models). + +## Configure Your Salesforce DX Project + +The `sfdx-project.json` file contains useful configuration information for your project. See [Salesforce DX Project Configuration](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm) in the _Salesforce DX Developer Guide_ for details about this file. + +## Read All About It + +- [Salesforce Extensions Documentation](https://developer.salesforce.com/tools/vscode/) +- [Salesforce CLI Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm) +- [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm) +- [Salesforce CLI Command Reference](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference.htm) diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/config/project-scratch-def.json b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/config/project-scratch-def.json new file mode 100644 index 000000000..bb72192e2 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/config/project-scratch-def.json @@ -0,0 +1,13 @@ +{ + "orgName": "Demo company", + "edition": "Developer", + "features": ["EnableSetPasswordInApi"], + "settings": { + "lightningExperienceSettings": { + "enableS1DesktopEnabled": true + }, + "mobileSettings": { + "enableS1EncryptedStoragePref2": false + } + } +} diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls new file mode 100644 index 000000000..4104c0dff --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls @@ -0,0 +1,67 @@ +/** + * @description : + * @author : Josh Dayment + * @group : + * @last modified on : 09-03-2024 + * @last modified by : Josh Dayment +**/ +global with sharing class Base64ToFileConverter { + + @InvocableMethod(label='Convert Base64 to File and Attach' iconName='slds:standard:attach') + global static List convertAndAttach(List requests) { + + List responses = new List(); + + for(Request req : requests) { + // Decode the Base64 string + Blob fileBody = EncodingUtil.base64Decode(req.base64Text.substringAfter(',')); + + + // Prepare the ContentVersion (File) record + ContentVersion cv = new ContentVersion(); + cv.VersionData = fileBody; + cv.Title = req.fileName; + cv.PathOnClient = req.fileName; + cv.FirstPublishLocationId = req.recordId; + + // Check if user can create and insert Content Version Records. + if (Schema.sObjectType.ContentVersion.isCreateable() && Schema.sObjectType.ContentVersion.isUpdateable()) { + insert cv; + } + + // Create a Response object and add it to the list + Response res = new Response(); + res.contentVersionId = cv.Id; + responses.add(res); + + // Optionally, create a ContentDocumentLink if needed for explicit linking in some scenarios + // ContentDocumentLink cdl = new ContentDocumentLink(); + // cdl.LinkedEntityId = req.recordId; + // cdl.ContentDocumentId = [SELECT ContentDocumentId FROM ContentVersion WHERE Id = :cv.Id].ContentDocumentId; + // cdl.ShareType = 'V'; // Adjust as per your sharing requirements + // insert cdl; + } + + return responses; + } + + // Invocable Method Variables + + global class Request { + @InvocableVariable(label='Base64 Encoded File Content') + global String base64Text; + + @InvocableVariable(label='Related Record ID') + global Id recordId; + + @InvocableVariable(label='File Name' description='Enter the full file name, including extension (e.g. myFile.jpg)' placeholderText='myFile.jpg' required=true) + global String fileName; + } + +// Invocable Method Variables + + global class Response { + @InvocableVariable(label='Content Version ID') + global String contentVersionId; + } +} \ No newline at end of file diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml new file mode 100644 index 000000000..651b17293 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml @@ -0,0 +1,5 @@ + + + 61.0 + Active + diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls new file mode 100644 index 000000000..c83f2eadb --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls @@ -0,0 +1,49 @@ +/** + * @description : + * @author : Josh Dayment + * @group : + * @last modified on : 08-21-2024 + * @last modified by : Josh Dayment +**/ +@IsTest +public class TestBase64ToFileConverter { + + @IsTest + static void testConvertAndAttach() { + // Create a test Account record + Account acc = new Account(Name='Test Account'); + insert acc; + + // Create a test File Content + Blob fileBody = Blob.valueOf('Test file content'); + + // Convert the Blob to Base64 + String base64Text = EncodingUtil.base64Encode(fileBody); + + // Create a test Request object + Base64ToFileConverter.Request req = new Base64ToFileConverter.Request(); + req.base64Text = 'data:image/jpeg;base64,' + base64Text; + req.recordId = acc.Id; + req.fileName = 'testFile.jpg'; + + // Prepare a list of test Request objects + List requests = new List{ req }; + + // Run the test as a specific user + System.runAs(new User(Id = UserInfo.getUserId())) { + Test.startTest(); + + // Call the method to be tested + List responses = Base64ToFileConverter.convertAndAttach(requests); + + Test.stopTest(); + + // Assertions + System.assertEquals(1, responses.size(), 'Response list should have 1 item'); + System.assertNotEquals(null, responses[0].contentVersionId, 'ContentVersionId should not be null'); + + // Additional assertions if needed + // ... + } + } +} \ No newline at end of file diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml new file mode 100644 index 000000000..252fbfd04 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml @@ -0,0 +1,5 @@ + + + 47.0 + Active + diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/lwc/jsconfig.json b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/lwc/jsconfig.json new file mode 100644 index 000000000..01abc135d --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/lwc/jsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "experimentalDecorators": true, + "baseUrl": ".", + "paths": { + "c/*": [ + "*" + ] + } + }, + "include": [ + "**/*", + "../../../../.sfdx/typings/lwc/**/*.d.ts" + ], + "typeAcquisition": { + "include": [ + "jest" + ] + } +} diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/jest.config.js b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/jest.config.js new file mode 100644 index 000000000..f5a9fed2b --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/jest.config.js @@ -0,0 +1,6 @@ +const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config'); + +module.exports = { + ...jestConfig, + modulePathIgnorePatterns: ['/.localdevserver'] +}; diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/package.json b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/package.json new file mode 100644 index 000000000..bba35bd70 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/package.json @@ -0,0 +1,41 @@ +{ + "name": "salesforce-app", + "private": true, + "version": "1.0.0", + "description": "Salesforce App", + "scripts": { + "lint": "eslint **/{aura,lwc}/**/*.js", + "test": "npm run test:unit", + "test:unit": "sfdx-lwc-jest", + "test:unit:watch": "sfdx-lwc-jest --watch", + "test:unit:debug": "sfdx-lwc-jest --debug", + "test:unit:coverage": "sfdx-lwc-jest --coverage", + "prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"", + "prettier:verify": "prettier --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"", + "postinstall": "husky install", + "precommit": "lint-staged" + }, + "devDependencies": { + "@lwc/eslint-plugin-lwc": "^1.1.2", + "@prettier/plugin-xml": "^3.2.2", + "@salesforce/eslint-config-lwc": "^3.2.3", + "@salesforce/eslint-plugin-aura": "^2.0.0", + "@salesforce/eslint-plugin-lightning": "^1.0.0", + "@salesforce/sfdx-lwc-jest": "^3.1.0", + "eslint": "^8.11.0", + "eslint-plugin-import": "^2.25.4", + "eslint-plugin-jest": "^27.6.0", + "husky": "^8.0.3", + "lint-staged": "^15.1.0", + "prettier": "^3.1.0", + "prettier-plugin-apex": "^2.0.1" + }, + "lint-staged": { + "**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [ + "prettier --write" + ], + "**/{aura,lwc}/**/*.js": [ + "eslint" + ] + } +} diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/apex/hello.apex b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/apex/hello.apex new file mode 100644 index 000000000..1fba73250 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/apex/hello.apex @@ -0,0 +1,10 @@ +// Use .apex files to store anonymous Apex. +// You can execute anonymous Apex in VS Code by selecting the +// apex text and running the command: +// SFDX: Execute Anonymous Apex with Currently Selected Text +// You can also execute the entire file by running the command: +// SFDX: Execute Anonymous Apex with Editor Contents + +string tempvar = 'Enter_your_name_here'; +System.debug('Hello World!'); +System.debug('My name is ' + tempvar); \ No newline at end of file diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/soql/account.soql b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/soql/account.soql new file mode 100644 index 000000000..10d4b9c78 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/soql/account.soql @@ -0,0 +1,6 @@ +// Use .soql files to store SOQL queries. +// You can execute queries in VS Code by selecting the +// query text and running the command: +// SFDX: Execute SOQL Query with Currently Selected Text + +SELECT Id, Name FROM Account diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/sfdx-project.json b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/sfdx-project.json new file mode 100644 index 000000000..fcbe13da9 --- /dev/null +++ b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/sfdx-project.json @@ -0,0 +1,12 @@ +{ + "packageDirectories": [ + { + "path": "force-app", + "default": true + } + ], + "name": "Base64ToFileConverter", + "namespace": "", + "sfdcLoginUrl": "https://login.salesforce.com", + "sourceApiVersion": "61.0" +} From a32f9abbc986db445723ae95fedafba48b8438e5 Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:58:41 -0700 Subject: [PATCH 07/10] Rename flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls to flow_action_components/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls --- .../force-app/main/default/classes/Base64ToFileConverter.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename flow_action_components/{Base64 To File Converter => }/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls (99%) diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls b/flow_action_components/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls similarity index 99% rename from flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls rename to flow_action_components/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls index 4104c0dff..d8022c2e5 100644 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls +++ b/flow_action_components/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls @@ -64,4 +64,4 @@ global with sharing class Base64ToFileConverter { @InvocableVariable(label='Content Version ID') global String contentVersionId; } -} \ No newline at end of file +} From 20c988a112c0c9d0fc120ddc46591e6677be7bf9 Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:59:51 -0700 Subject: [PATCH 08/10] Delete flow_action_components/Base64ToFileConverter/force-app/main/default/classes directory --- .../default/classes/Base64ToFileConverter.cls | 67 ------------------- 1 file changed, 67 deletions(-) delete mode 100644 flow_action_components/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls diff --git a/flow_action_components/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls b/flow_action_components/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls deleted file mode 100644 index d8022c2e5..000000000 --- a/flow_action_components/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @description : - * @author : Josh Dayment - * @group : - * @last modified on : 09-03-2024 - * @last modified by : Josh Dayment -**/ -global with sharing class Base64ToFileConverter { - - @InvocableMethod(label='Convert Base64 to File and Attach' iconName='slds:standard:attach') - global static List convertAndAttach(List requests) { - - List responses = new List(); - - for(Request req : requests) { - // Decode the Base64 string - Blob fileBody = EncodingUtil.base64Decode(req.base64Text.substringAfter(',')); - - - // Prepare the ContentVersion (File) record - ContentVersion cv = new ContentVersion(); - cv.VersionData = fileBody; - cv.Title = req.fileName; - cv.PathOnClient = req.fileName; - cv.FirstPublishLocationId = req.recordId; - - // Check if user can create and insert Content Version Records. - if (Schema.sObjectType.ContentVersion.isCreateable() && Schema.sObjectType.ContentVersion.isUpdateable()) { - insert cv; - } - - // Create a Response object and add it to the list - Response res = new Response(); - res.contentVersionId = cv.Id; - responses.add(res); - - // Optionally, create a ContentDocumentLink if needed for explicit linking in some scenarios - // ContentDocumentLink cdl = new ContentDocumentLink(); - // cdl.LinkedEntityId = req.recordId; - // cdl.ContentDocumentId = [SELECT ContentDocumentId FROM ContentVersion WHERE Id = :cv.Id].ContentDocumentId; - // cdl.ShareType = 'V'; // Adjust as per your sharing requirements - // insert cdl; - } - - return responses; - } - - // Invocable Method Variables - - global class Request { - @InvocableVariable(label='Base64 Encoded File Content') - global String base64Text; - - @InvocableVariable(label='Related Record ID') - global Id recordId; - - @InvocableVariable(label='File Name' description='Enter the full file name, including extension (e.g. myFile.jpg)' placeholderText='myFile.jpg' required=true) - global String fileName; - } - -// Invocable Method Variables - - global class Response { - @InvocableVariable(label='Content Version ID') - global String contentVersionId; - } -} From e4bb211966787d244375ad32e0317e068dd2082a Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 20 Sep 2024 09:00:25 -0700 Subject: [PATCH 09/10] Delete flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes directory --- .../Base64ToFileConverter.cls-meta.xml | 5 -- .../classes/TestBase64ToFileConverter.cls | 49 ------------------- .../TestBase64ToFileConverter.cls-meta.xml | 5 -- 3 files changed, 59 deletions(-) delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml deleted file mode 100644 index 651b17293..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/Base64ToFileConverter.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 61.0 - Active - diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls deleted file mode 100644 index c83f2eadb..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @description : - * @author : Josh Dayment - * @group : - * @last modified on : 08-21-2024 - * @last modified by : Josh Dayment -**/ -@IsTest -public class TestBase64ToFileConverter { - - @IsTest - static void testConvertAndAttach() { - // Create a test Account record - Account acc = new Account(Name='Test Account'); - insert acc; - - // Create a test File Content - Blob fileBody = Blob.valueOf('Test file content'); - - // Convert the Blob to Base64 - String base64Text = EncodingUtil.base64Encode(fileBody); - - // Create a test Request object - Base64ToFileConverter.Request req = new Base64ToFileConverter.Request(); - req.base64Text = 'data:image/jpeg;base64,' + base64Text; - req.recordId = acc.Id; - req.fileName = 'testFile.jpg'; - - // Prepare a list of test Request objects - List requests = new List{ req }; - - // Run the test as a specific user - System.runAs(new User(Id = UserInfo.getUserId())) { - Test.startTest(); - - // Call the method to be tested - List responses = Base64ToFileConverter.convertAndAttach(requests); - - Test.stopTest(); - - // Assertions - System.assertEquals(1, responses.size(), 'Response list should have 1 item'); - System.assertNotEquals(null, responses[0].contentVersionId, 'ContentVersionId should not be null'); - - // Additional assertions if needed - // ... - } - } -} \ No newline at end of file diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml deleted file mode 100644 index 252fbfd04..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/classes/TestBase64ToFileConverter.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 47.0 - Active - From d362cab492269cff42d28b97bfdc1aa626a63130 Mon Sep 17 00:00:00 2001 From: Josh Dayment <52637666+jdayment@users.noreply.github.com> Date: Fri, 20 Sep 2024 09:00:41 -0700 Subject: [PATCH 10/10] Delete flow_action_components/Base64 To File Converter/Base64ToFileConverter directory --- .../Base64ToFileConverter/README.md | 18 -------- .../config/project-scratch-def.json | 13 ------ .../force-app/main/default/lwc/jsconfig.json | 20 --------- .../Base64ToFileConverter/jest.config.js | 6 --- .../Base64ToFileConverter/package.json | 41 ------------------- .../scripts/apex/hello.apex | 10 ----- .../scripts/soql/account.soql | 6 --- .../Base64ToFileConverter/sfdx-project.json | 12 ------ 8 files changed, 126 deletions(-) delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/README.md delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/config/project-scratch-def.json delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/lwc/jsconfig.json delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/jest.config.js delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/package.json delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/apex/hello.apex delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/soql/account.soql delete mode 100644 flow_action_components/Base64 To File Converter/Base64ToFileConverter/sfdx-project.json diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/README.md b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/README.md deleted file mode 100644 index afcda4a66..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Salesforce DX Project: Next Steps - -Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started. - -## How Do You Plan to Deploy Your Changes? - -Do you want to deploy a set of changes, or create a self-contained application? Choose a [development model](https://developer.salesforce.com/tools/vscode/en/user-guide/development-models). - -## Configure Your Salesforce DX Project - -The `sfdx-project.json` file contains useful configuration information for your project. See [Salesforce DX Project Configuration](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm) in the _Salesforce DX Developer Guide_ for details about this file. - -## Read All About It - -- [Salesforce Extensions Documentation](https://developer.salesforce.com/tools/vscode/) -- [Salesforce CLI Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm) -- [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm) -- [Salesforce CLI Command Reference](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference.htm) diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/config/project-scratch-def.json b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/config/project-scratch-def.json deleted file mode 100644 index bb72192e2..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/config/project-scratch-def.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "orgName": "Demo company", - "edition": "Developer", - "features": ["EnableSetPasswordInApi"], - "settings": { - "lightningExperienceSettings": { - "enableS1DesktopEnabled": true - }, - "mobileSettings": { - "enableS1EncryptedStoragePref2": false - } - } -} diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/lwc/jsconfig.json b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/lwc/jsconfig.json deleted file mode 100644 index 01abc135d..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/force-app/main/default/lwc/jsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "experimentalDecorators": true, - "baseUrl": ".", - "paths": { - "c/*": [ - "*" - ] - } - }, - "include": [ - "**/*", - "../../../../.sfdx/typings/lwc/**/*.d.ts" - ], - "typeAcquisition": { - "include": [ - "jest" - ] - } -} diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/jest.config.js b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/jest.config.js deleted file mode 100644 index f5a9fed2b..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/jest.config.js +++ /dev/null @@ -1,6 +0,0 @@ -const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config'); - -module.exports = { - ...jestConfig, - modulePathIgnorePatterns: ['/.localdevserver'] -}; diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/package.json b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/package.json deleted file mode 100644 index bba35bd70..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "salesforce-app", - "private": true, - "version": "1.0.0", - "description": "Salesforce App", - "scripts": { - "lint": "eslint **/{aura,lwc}/**/*.js", - "test": "npm run test:unit", - "test:unit": "sfdx-lwc-jest", - "test:unit:watch": "sfdx-lwc-jest --watch", - "test:unit:debug": "sfdx-lwc-jest --debug", - "test:unit:coverage": "sfdx-lwc-jest --coverage", - "prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"", - "prettier:verify": "prettier --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"", - "postinstall": "husky install", - "precommit": "lint-staged" - }, - "devDependencies": { - "@lwc/eslint-plugin-lwc": "^1.1.2", - "@prettier/plugin-xml": "^3.2.2", - "@salesforce/eslint-config-lwc": "^3.2.3", - "@salesforce/eslint-plugin-aura": "^2.0.0", - "@salesforce/eslint-plugin-lightning": "^1.0.0", - "@salesforce/sfdx-lwc-jest": "^3.1.0", - "eslint": "^8.11.0", - "eslint-plugin-import": "^2.25.4", - "eslint-plugin-jest": "^27.6.0", - "husky": "^8.0.3", - "lint-staged": "^15.1.0", - "prettier": "^3.1.0", - "prettier-plugin-apex": "^2.0.1" - }, - "lint-staged": { - "**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [ - "prettier --write" - ], - "**/{aura,lwc}/**/*.js": [ - "eslint" - ] - } -} diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/apex/hello.apex b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/apex/hello.apex deleted file mode 100644 index 1fba73250..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/apex/hello.apex +++ /dev/null @@ -1,10 +0,0 @@ -// Use .apex files to store anonymous Apex. -// You can execute anonymous Apex in VS Code by selecting the -// apex text and running the command: -// SFDX: Execute Anonymous Apex with Currently Selected Text -// You can also execute the entire file by running the command: -// SFDX: Execute Anonymous Apex with Editor Contents - -string tempvar = 'Enter_your_name_here'; -System.debug('Hello World!'); -System.debug('My name is ' + tempvar); \ No newline at end of file diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/soql/account.soql b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/soql/account.soql deleted file mode 100644 index 10d4b9c78..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/scripts/soql/account.soql +++ /dev/null @@ -1,6 +0,0 @@ -// Use .soql files to store SOQL queries. -// You can execute queries in VS Code by selecting the -// query text and running the command: -// SFDX: Execute SOQL Query with Currently Selected Text - -SELECT Id, Name FROM Account diff --git a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/sfdx-project.json b/flow_action_components/Base64 To File Converter/Base64ToFileConverter/sfdx-project.json deleted file mode 100644 index fcbe13da9..000000000 --- a/flow_action_components/Base64 To File Converter/Base64ToFileConverter/sfdx-project.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "packageDirectories": [ - { - "path": "force-app", - "default": true - } - ], - "name": "Base64ToFileConverter", - "namespace": "", - "sfdcLoginUrl": "https://login.salesforce.com", - "sourceApiVersion": "61.0" -}