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:
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.
This is essential for any custom property editor. It provides a picklist showing upstream merge fields.
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.
Object and Field Picker
Provides a drop in component for selecting Objects or Object/Field combinations.
A simple local action that pops a toast up. Works with Screen flows only.
A screen component that can retrieve or deploy any salesforce metadata.
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:
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