Skip to main content

Posts

Showing posts from September, 2017

Flow Utility - NoOxfordComma

What would you do if you had a String Collection of values and needed to display them on a screen in a human-readable format? Pass this Flow Utility a String Collection and it'll return a String Variable for you to use.

Just pass it the String Collection and Finishing Word you want to use and it'll return a String Variable for you to use. Example with "and" as my Finishing Word: Value 1, Value 2 and Value 3

Check out FlowUtilities on Github


Flow Utility - RecordTypeHelper

Do you ever have Flows that need multiple Record Type Ids? Wouldn't it be nice to just do 1 Lookup that gets all the active Record Types so you can reference them later? Well, that's what this Flow Utility does.

You first call a Setup Apex Class that gets your active Record Types. Then each time you need to get one, you call a GetId Apex Class that'll return the Record Type Id as a String Variable for you based on the Object Name and Developer Name of the Record Type.

Check out FlowUtilities on Github

Flow Utility - SplitString

Splitting String Variables in Flows is way harder than it needs to be. Did you know there's a .split() method in Apex? That's way easier!

Just pass this the String Variable you need to split, tell it which character separates your values and it'll pass you back a String Collection Variable containing those values.

Check out FlowUtilities on Github

Flow Utility - DedupeStringCollection

Have you ever needed to deduplicate a String Collection in a Flow? You could use Loops, Decisions and Assignments to do this but it's not efficient and will fail if your Collection is too large. Instead, just pass this Flow Utility the String Collection you need to dedupe and it'll return a deduped version.

Check out FlowUtilities on Github