UnofficialSF introduces radical new highlighting scheme

Sometimes, one person can change the world. And in this case, that one person is Brian Doogan, who wrote:

Now, some might call this harsh criticism. But here at UnofficialSF, we share the Salesforce enthusiasm for honest, true conversations and real feedback. So we took it to heart and innovated this dramatic new ‘blue’ selection technology:

Of course, doing this kind of advanced work increases the cost of maintaining UnofficialSF, so starting immediately, we’ll be charging $1/day via anonymous bitcoin for access to the site. Address any concerns on that front to Brian, whose email we have conveniently provided above.

Flow Base Components 1.2 Upgrade: Now with Transfer Metadata

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.

In version 1.2, Flow Base Components gains:

Flow Base Components already contains:

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

If you’re not a developer, then you’ll encounter Flow Base Components as a prerequisite when you’re trying to install something else, looking like this:

Learn more here.

Flow on the Idea Exchange

Check out the new links on the Flow Home Page for Flow ideas on the Idea Exchange.

Convert Date to Datetime Flow Action

Check out the new Flow Action that can be used to create/convert a Datetime value in your local Timezone.

New Enhancements for Dual List Box

Sometimes small changes can make a big difference. I’m creating a Configuration Helper for my Datatable component and I want the Admin to be able to select a group of fields from a list of all of the fields on an Object. The Dual List Box Flow Screen Component is perfect for this because it can be combined with the Get Field Definitions component that is included in the new Actions Base Pack.

The only problem with this list is that even though all the fields are shown, they are not in any particular order. I updated the component to allow you to specify a parameter to sort the list of fields. The options include sorting by the field label or by the field value (API Name).

This component has also received a nice Summer ’20 update with the inclusion of a CPE (Custom Property Editor).

Now my selection list for the Object fields is sorted and much easier to use.

Crazy Amounts of Flow Scheduling via the Schedule-o-matic 9000 by David Cohen

A powerful new scheduler with a very entertaining documentation and intro video. Has some similarities to Mass Action Scheduler and works with Apex as well as with Flow. Check it out!

Build Tests Automatically with Flow Test Builder

This extension includes a flow that will generate Apex test classes for a selected target flow. A good example and use case is shown in this video:

Autolaunched Flows can be launched via a REST or Apex call. That means that you can create tests that invoke the flows, passing in specified inputs, and inspect the outputs from the Flow to see if it’s returning the expected result.

This Flow Autotest package installs a flow called Flow Test Generator. When you run it, you’re asked first if you want to Add, Edit or Delete a FlowTest. FlowTest is a Custom Object that stores the information specific to one test and its assertions:

Creating a new test involves first selecting the target flow, which must be an Autolaunched flow:

For each test, configure the desired combination of flow input values:

Then define the tests you want to run on the resulting flow output values:

The test class will then be generated. At this time, you have to add it manually to your org using Developer Console.

Install

Prerequisite: This app requires Flow Actions Base Pack (v3.11+) and Flow Screen Components Base Pack (3.0.18+). You can install them here.

2/26 V3.0 Production Sandbox – Works with V3 Action and Screen Components Base Pack versions.

Source Code

view source

Old Versions

Version 1.0.2 Unlocked 9/3/21

Version 1.0 Unlocked 7/19/20

Introducing Flow Base Components

NOTE: The Flow Base Components package has been superseded by the Flow Action BasePack and Flow Screen Component Base Pack. If you’re a developer, use those as your prerequisites.

Most components available on UnofficialSF now use the Actions Base Pack and Screen Components Base Pack, described above. A few existing older components still use and require the original 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.

Quick Choice

Learn more here.

Dual ListBox

Learn more here.

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.3.4 Unlocked

10/4 fixed test bug.

Version Information

1.3.3 Unlocked 10/1 fixes QuickChoice naming conflict

1.3.2 Unlocked 9/26 Adds QuickChoice and DualListBox. Also reduces the size of the MetadataService file to avoid the ‘1 million character’ limit.

1.2.6 Unlocked
9/3/20 – Eric Smith – Updated to Escape and Unescape the {} characters so the metadata string value can be handled by a flow

1.2.5 Unlocked 9/1
9/1/20 – Eric Smith – Added Extracted Metadata String and Escaped Metadata String outputs to the RetrieveMetadata and the TransferMetadata components

1.2.4 bug fixes

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.4 Unlocked 8/21

1.2.3 Unlocked 8/5

1.2.2 Unlocked 7/26

1.2.1 Unlocked 7/25