Skip to content
This repository was archived by the owner on Jan 27, 2024. It is now read-only.

douglascayers/sfdc-compare-multi-select-picklists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Select Picklist Field Compare

Overview

Invocable Apex that compares two multi-select picklist fields and determines their common and unique values. A simple flow is included in this project to demonstrate usage.

Inspired by Jeffrey Berger.

screen shot

Getting Started

  • Deploy from Github
  • In Setup, navigate to Flows and run Multi-Select Picklist Field Compare Flow

When you run the included demo flow you'll be prompted to choose values from two multi-select picklist fields.

screen shot

Click the Next button to be shown the comparison of common and unique values. The flow could have decisions to perform actions if one of the output variables is null or contains specific values.

screen shot

Open the flow in the designer view. You can customize where the data for the first and second multi-select picklist field comes from. They can come from screen input fields as per this example or from Salesforce records or any variable that has semi-colon (;) delimited text.

screen shot

The invocable apex flow plugin produces three output variables:

  1. Values common to both picklists
  2. Values unique to the first picklist
  3. Values unique to the second picklist

screen shot

About

Invocable Apex that compares two multi-select picklist fields and determines their common and unique values.

Resources

License

Stars

Watchers

Forks

Contributors

Languages