Flow Action and Screen Component BasePacks

These BasePacks are libraries of useful actions and screen components that are commonly used by developers as building blocks when they build their own actions and screen components.

The BasePacks are separated into two packages, one for Actions and one for Screen Components (the reasons they can’t be combined right now are somewhat arcane).

If you already have some of the components in the base packs installed in your org, you don’t have to worry about collisions because the versions in these base packs have different names. You don’t have to modify any of your existing actions or screen components that use the older versions of these components simply because you’re installing these base packs.

Install

FlowActionsBasePack

Version 3.1 Managed 6/20/22 (Production or Dev) – fix to ConvertRecordsToCSV
Version 3.1 Managed 6/20/22 (Sandbox)

NOTE: The FlowActionsBasePack is also available on the AppExchange. Due to the overhead of passing security reviews, the version published on App Exchange won’t always be the latest version available here at UnofficialSF.com. More details can be found in this article.

NOTE: if you are installing now and you previously installed Version 2.x, Version 3 will be installed alongside Version 2. Don’t worry about deleting Version 2. It will continue to work for older components.

Troubleshoot Installation Issues

View Source

FlowScreenComponentsBasePack

FlowScreenComponents BasePack requires the presence of FlowActions BasePack (see above), because some of the screen components inside of it rely on Apex classes that are included in FlowActions BasePack. So you’ll need to install FlowActions BasePack first.

Version 3.0.7 Unmanaged 6/1/22 (Production or Dev) misc fixes. Requires 3.0.0 FlowActionsBasePack
Version 3.0.7 Unmanaged 6/1/22 (Sandbox)

Note: If you get an upgrade error that references FlowTableViewDefinition please follow the steps in this document.

View Source


Reference

When an org has the BasePacks installed, it has access to the following screen components and their support Actions:

Display Error

This component allows the developer to highlight an input in their CPE with an error condition.

Reference

Dual ListBox

This component surfaces the dual listbox in flow screens. It allows for multiple selection and returns the selected values either as a comma-separated list or (more usefully) as a collection of strings that can be looped over.

Reference

Expression Builder

A full expression builder. Generates formula strings for output, and these can be evaluated at runtime by the Evaluate Formula action, which is part of this package.

Reference

This image has an empty alt attribute; its file name is image-29-1030x331.png

FlexCard

Flexcard is a great way to display collections of records:

Reference

Flow Banner

This is useful for any custom property editor. It provides a section banner with optional section help text.

Reference

This image has an empty alt attribute; its file name is image-1-715x1030.png

Flow Button Bar

Flow Button Bar brings a more user-friendly interface, new features like icons and vertical buttons, and now offers two distinct “modes” of Flow functionality: Navigation Mode and Selection Mode. It has its own CPE giving much greater flexibility and control over configuring the component.

Reference

image.png

Flow Checkbox

This is useful for any custom property editor. It provides checkbox component for CPEs that will support a default value of True and will correctly retain the checkbox status when exiting the CPE.

Reference

Flow Combobox

This is essential for any custom property editor. It provides a picklist showing upstream merge fields.

Reference

Formula Builder

A full formula builder. Generates formula strings for output, and these can be evaluated at runtime by the Evaluate Formula action, which is part of this package.

Reference

Get Field Information

Get Field Information is a simple action that takes the name of an object (e.g. ‘Contact’) and returns information about all of its fields in a collection, including name, label, type, required. The data is returned in a collection of a custom datatype called a FieldDescriptor that can be manipulated declaratively in Flow.

Reference

Icon Picker

This component can add a visual icon picker to your Flow Screen and developers can include it in a Custom Property Editor or other Lightning Web Components. 

Reference

Object and Field Picker

Provides a drop in component for selecting Objects or Object/Field combinations.

Reference

Quick Choice

Add picklists, radio button groups and visual cards that can use dynamic defaults, record-type-filtered picklist fields, and string collections.

Reference

Show Toast

A simple local action that pops a toast up. Works with Screen flows only.

Reference

Transfer Metadata

A screen component that can retrieve or deploy any salesforce metadata.

Reference

Convert Records To CSV

This action takes a collection of records and outputs a CSV file. More detail here.

Developer Notes

When creating a project that relies on Screen Components Base Pack, you need to specify both the Actions Base Pack and the ScreenComponents Base Pack as dependencies, as shown below. This is because the Screen Components Base Pack makes use of the Actions Base Pack. Furthermore, the order you list the dependencies is critical. The ActionsBasePack has to come first.

{
    "packageDirectories": [
        {
            "path": "force-app",
            "dependencies": [
                {
                    "package": "FlowActionsBasePack@2.1.0-0"
                },
                {
                    "package": "FlowScreenComponentsBasePack@2.1.0-0"
                }
            ],
            "default": true,
            "package": "testproj",
            "versionName": "ver 0.1",
            "versionNumber": "0.1.0.NEXT"
        }
    ],
    "namespace": "",
    "sfdcLoginUrl": "https://login.salesforce.com",
    "sourceApiVersion": "50.0",
    "packageAliases": {
        "FlowScreenComponentsBasePack@2.1.0-0": "04t5G000004PuTgQAK",
        "testproj": "0Ho5G000000XZNfSAO",
        "FlowActionsBasePack@2.1.0-0": "04t4W000002vXUCQA2"
    }
}

Version History – FlowActionsBasePack

Version 3.0.0 Managed 4/14/22 (Production or Dev) – change to ‘usf3’ namespace
Version 3.0.0 Managed 4/14/22 (Sandbox)

Version 2.38 Managed 4/7/22 (Production or Dev) – fixed problematic test class
Version 2.38 Managed 4/7/22 (Sandbox)

Version 2.37 Managed 1/21/22 (Production or Dev) – Removed test class that fails
Version 2.37 Managed 1/21/22 (Sandbox)

Version 2.36 Managed 1/21/22 (Production or Dev) – Added Convert Records to CSV action, which is used by some components to support exports.
Version 2.36 Managed 1/21/22 (Sandbox)

Version 2.34 Managed 12/30/21 (Production or Dev) – Support Multiselect Field picking in pickObjectAndField; some security improvements to metadata transers
Version 2.34 Managed 12/30/21 (Sandbox)

Version 2.33 Managed 10/11/21 (Production or Dev) – update to 53.0
Version 2.33 Managed 10/11/21 (Sandbox)

sion 2.32 Managed 8/13/21 (Production or Dev) – getFieldInformation updated to API 52.0
Version 2.32 Managed 8/13/21 (Sandbox)

Version 2.32 Managed 8/13/21 (Production or Dev) – getFieldInformation updated to API 52.0
Version 2.32 Managed 8/13/21 (Sandbox)

Version 2.29 Managed 7/22/21 (Production or Dev) – Fix for bug that prevents metadata deployment to production orgs
Version 2.29 Managed (Sandbox)

Version 2.28 Managed 7/21/21 (Production or Dev) – Fixes some problems in Formula Evaluator
Version 2.28 Managed 7/15/21 (Sandbox)

Version History – FlowScreenComponentsBasePack

Version 3.0.6 Unmanaged 4/14/22 (Production or Dev) misc fixes. Requires 3.0.0 FlowActionsBasePack
Version 3.0.6 Unmanaged 4/14/22 (Sandbox)

Version 2.7.8 Unmanaged 4/7/22 (Sandbox)

Version 2.7.7 Unmanaged 3/10/22 (Production or Dev) fixed bug in Object Picker that was causing values entered by the user to get forgotten, improved sorting library
Version 2.7.7 Unmanaged 3/10/22 (Sandbox)

Version 2.7.6 Unmanaged 1/30/22 (Production or Dev) Removed QuickRecord, renamed Lookup to fsc_lookup
Version 2.7.6 Unmanaged 1/30/22 (Sandbox)

Version 2.7.5 Unmanaged 1/22/22 (Production or Dev) Flexcard enhancements
Version 2.7.5 Unmanaged 1/22/22 (Sandbox)

Version 2.7.3 Unmanaged 1/18/22 (Production or Dev) Flexcard enhancements
Version 2.7.3 Unmanaged 1/18/22 (Sandbox)

Version 2.7.1 Unmanaged 1/13/22 (Production or Dev) bug fix
Version 2.7.1 Unmanaged 1/13/22 (Sandbox)

Version 2.7 Unmanaged 1/12/22 (Production or Dev) Adds QuickRecord
Version 2.7 Unmanaged 1/7/22 (Sandbox)

Version 2.6.2 Unmanaged 1/7/22 (Production or Dev) Adds Flexcard Visual Picker support
Version 2.6.2 Unmanaged 1/7/22 (Sandbox)

Version 2.6.1 Unmanaged 1/3/22 (Production or Dev) Adds Flexcard Custom Property Editor support
Version 2.6.1 Unmanaged 1/3/22 (Sandbox)

Version 2.5.9 Unmanaged 11/2/21 (Production or Dev)
Version 2.5.9 Unmanaged 11/2/21 (Sandbox)

Changes since 7/21/21 (Version 2.5.1)

  • fsc_flowCombobox fix for error introduced in API 52.0 for selecting a field from an object variable in a CPE (v2.5.5)
  • Added support for Quote and QuoteLineItem to Quick Choice and Dual List Box
  • New Static List attribute type for Quick Choice
  • fsc_lwcModal utility for CPE developers
  • Quick Choice CPE will now show the current version #
  • Fixed default value issue in Quick Choice

Version 2.5.4 Unmanaged 8/13/21 (Production or Dev)
Version 2.5.4 Unmanaged 8/13/21 (Sandbox)

Version 2.5.3 Unmanaged 8/10/21 (Production or Dev) – fixes: Quick Choice CPE gets static list builder, lwcModal utility for CPE added to package NOTE will not install currently

Version 2.5.3 Unmanaged 8/10/21 (Sandbox)