The independent daily for Salesforce admins, developers and architects

Curated by Abhinav (opens in a new tab)

Must-read

Using Global Flow Resources for value mapping in Screen Flows (opens in a new tab)

You will learn how to define a value mapping once as a Global Flow Resource and call it from a Transform element, replacing hardcoded CASE() formulas and lookup objects.

Why read this

You will also learn its fallback options and its limits.

Before Summer '26

  • CASE() formula copied into each flow
  • Edit and reactivate every flow to change
  • Or a mapping object queried with SOQL

Global Flow Resource

  • Defined once in the Automation app
  • Called from the Transform element
  • One edit applies to every flow
Global Flow Resources replace per-flow CASE() formulas and lookup objects for value mapping

The article explains that value mapping, translating one value into another such as a satisfaction rating into a customer message, has traditionally been done with CASE() formulas or with a Custom Object queried by Get Records. The first approach means editing and reactivating every flow that uses it when a value changes, and the second costs a SOQL query on every run. Summer ’26 adds Global Flow Resources, org-wide value mappings defined once in the Automation app and used in the Transform element of any flow, so one edit applies everywhere.

A mapping supports String, Number, Boolean, Date or Date/Time source and target values. When an unmapped value arrives you can pass it through unchanged, fail the flow, or return a default. The author suggests pass-through for mostly matching values, failing for integrations where a missing value signals an upstream change, and a default for customer-facing flows.

The walkthrough builds a Screen Flow over a Satisfaction Level picklist on Case. It creates a mapping of five picklist values to messages, adds a record variable and a Screen element, then sets up a Transform element that maps the field through the mapping into a text variable. A second screen displays the result, and the author tests it in Debug.

The limits are that a mapping works on a single record or value, not a collection, so it cannot transform 20 records pulled into a collection in one Transform element. It cannot be used in before-save Record-Triggered Flows. Mappings are strictly one-to-one, so a result depending on several fields still needs a Decision element or formula. A mapping cannot be deleted while any flow still references it.

Read the original at Salesforce Ben (opens in a new tab)

Worth reading?

Recommended

Combining Selected and Edited Data Table Rows in a Screen Flow (opens in a new tab)

You will learn why a Data Table's Selected Rows and Edited Rows outputs must be merged to get the chosen records with their updated values.

Why read this

You will also see two ways to do it: a single Transform element, which drops unedited selections, and a Loop with Collection Filter, which keeps every selected row.

  1. Loop over Selected Rows
  2. Collection Filter on edited Id
  3. Decision: match found?
  4. Assign edited Quantity
  5. Add row to new collection
Option 2 merges the two outputs by looping over the selected rows

The standard Data Table component in Screen Flow can return selected rows and edited rows as two separate collections. The Selected Rows output holds the records the user picked but not their edited field values, while the Edited Rows output holds the changed values whether or not the row was selected. Neither output alone gives the set of selected records with their updated values, and the component does not offer a single combined output.

The article’s example is a screen where users pick Price Book Entry records and enter a quantity for each, using a custom Quantity field. The author notes that a user can edit a row without selecting it, or select it without editing, so the two outputs must be merged to get the list the flow needs.

The first option uses a Transform element with the two outputs as sources, joined on Id. The Quantity must be mapped from the Edited Rows collection to get the user’s value. This is simple and needs no loops, but it performs an inner join, so a selected row with no edit is excluded. The article suggests this fits when every selected row is expected to be edited.

The second option keeps all selected rows. A Loop runs over Selected Rows, a Collection Filter finds any matching edited record by Id, and a Decision checks whether a match exists. If one does, an Assignment copies its Quantity; if not, the original values are kept. Each row is then added to a new collection. The author says this uses more elements but gives more control. The choice depends on whether unedited selections should be kept.

Read the original at Salesforce Time (opens in a new tab)

Worth reading?

Replicate the standard Recently Viewed List View inside a Screen Flow (opens in a new tab)

You will learn how to query the Recently Viewed object, merge its results with parent records using the Transform element, and sort the combined data for display in a Screen Flow.

Why read this

This approach replaces the missing native sorting capability in Flow Builder.

The article addresses the limitation of Flow Builder when trying to replicate the standard Recently Viewed List View, noting that direct sorting by view date is unavailable through standard Get Records elements. It introduces the Recently Viewed object as the underlying source that tracks records accessed by each user without requiring explicit user filtering.

The author demonstrates a six-step process starting with a Get Records element to fetch Recently Viewed entries filtered by the Account type. A Transform element extracts the record identifiers, which are then used in a second Get Records element to retrieve full Account data.

Because the original view date field resides outside the Account collection, another Transform element joins the two datasets using the record identifier as the key. The merged collection is subsequently ordered by the Last Viewed Date field using a Collection Sort element before being rendered in a Data Table component.

Read the original at Salesforce Time (opens in a new tab)

Worth reading?