Introducing Flow Base Components

As more Flow extensions get built, some components are proving to be popular and reused. To manage this more effectively and minimize conflicts that prevent installation, we’ve created this single base component library. If you want to use one of these components, we recommend that you make this package a dependency and reference the components here. This will help ensure your extension can be easily installed.

There isn’t going to be a managed package version of this because that would put the lightning components into a custom namespace, and lwc doesn’t currently allow lightning components to be used across namespaces

The current components included in Flow Base Components are:

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

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

Object and Field Picker

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

Reference

Show Toast

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

Learn more.

Transfer Metadata

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

Learn more.

Usage Notes

All of the classes and components in this repo have been given a prefix of ‘fbc_’ this looks a little like a namespace but it is not. This is an unlocked package in the c namespace.

For sample code showing how to reference these, take a look at Update Field, a Flow Action that makes extensive use of this base component package. Here are some examples:

Referencing a base screen component

Pay particular note to the mixed use of hyphens and underscores:

Referencing a class method

Referencing methods and components from an lwc

Note the different syntax:

Install

1.2.3 Unlocked 8/5

Version Information

1.2.3 bug fixes to Flow Combobox

1.2.2: improvements to Transfer Metadata

In version 1.2.1, Flow Base Components gains:

  • Transfer Metadata
  • Show Toast

Flow Base Components already contains:

  • Expression Builder
  • Formula Builder
  • Flow Combobox
  • Pick Object and Field

View Source

source

Old Versions

1.2.2 Unlocked 7/26

1.2.1 Unlocked 7/25

Subscribe
Notify of
guest
9 Comments
Inline Feedbacks
View all comments
Eric Smith

Were you planning to add DualListBox to this package?

[…] Learn more. […]

[…] installing this component you need to have on your org the Flow Base Components support package. Install that […]

[…] because it can be combined with the Get Field Definitions component that is included in the new Flow Base Components […]

[…] Flow Base Components is a package that will contain components shared among other Flow components. By enabling them all to share a single set of core components, we can dramatically reduce upgrade conflicts. […]

[…] Flow Base Components is a package that will contain components shared among other Flow components. By enabling them all to share a single set of core components, we can dramatically reduce upgrade conflicts. […]

Dani Finkelshtein

when installing version1.2.1 getting this error

Cannot add component of type:ApexClass named:fbc_FieldPickerControllerTest subjectId:01p1k000003DUib to another package because it is an installed component.

[…] Now part of Flow Base Components […]

[…] this version of Quick Choice is the first version to require the presence on the org of the new Flow Base Components library. Although it’s some extra effort to install Flow Base Components, having a single set […]