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

Install Version 2.12 Managed (Production or Developer)
Install Version 2.12 Managed (Sandbox)

12/31/20 – Eric Smith – Fixed bug causing “Apex CPU time limit exceeded” in the Datatable CPE

12/30/20 – enhancements to support Collection Process Actions

View Source

FlowScreenComponentsBasePack

FlowScreenComponentsBasePack is available as an unlocked package.

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.

Install Version 2.1.6 Unlocked (Production or Developer)
Install Version 2.1.6 Unlocked (Sandbox)

2/13/21 – Eric Smith – Added fsc_flowCheckbox component to be used in CPEs

View Source

View Source


Reference

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

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

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 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

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

Install Version 2.11 Managed (Production or Developer)
Install Version 2.11 Managed (Sandbox)

Install Version 2.7 Managed 12-20 enhancements to enable Datatable 3

Install Version 2.6 Managed 11-28 bug fix to dual list box

note: due to a packaging mistake, you can’t upgrade directly from version 2.2 to 2.6 (you have to uninstall 2.2). You can upgrade from version 2.1 to 2.6. In the future we’ll avoid creating dead-end versions.

Install Version 2.2 Managed 11-9. Bug Fix

Install Version 2.1 Managed 10-11

Version History – FlowScreenComponentsBasePack

Install Version 2.1.5 Unlocked (this installs into Production and Developer orgs. to install into sandboxes replace ‘login’ with ‘test’ in the url.

Quick Choice
Version 2.32 – 1/28/21 – clifford-fra
Added support for responsive sizing for single column Visual Cards

Install Version 2.1.3 Unlocked (Production or Developer)
Install Version 2.1.3 Unlocked (Sandbox)

12/31/20 – Eric Smith – Added Icon Picker for Flow Screens, Lightning Components and Custom Property Editors

Install Version 2.1.1 Unlocked 12/20/20 – (minor enhancements)

Install Version 2.1.0 Unlocked 11-26 (fixes to FlowComboBox; added FlowBanner)

Install Version 2.0.6 Unlocked 11-2 (removed lwcLogger)

Install Version 2.0.5 Unlocked 11-2

Install Version 2.0.4 Unlocked 10-24