Code Monkey home page Code Monkey logo

flowutilities's Introduction

Salesforce Flow Utilities Library

Visual Flow is a powerful tool, but does have its limitations. This library contains Apex Classes that will help you do things in Flow that are difficult or impossible to do without using Apex.

Currently, the Library contains these Flow Utilities:

DedupeStringCollection

Have you ever needed to deduplicate a String Collection in a Flow? You could use Loops, Decisions and Assignments to do this in Flow 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.

Click here to Dive Deeper or here to go Back to the Top

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? Well, this Flow Utility will turn those values into a comma separated sentence without the Oxford Comma.

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

Click here to Dive Deeper or here to go Back to the Top

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.

Click here to Dive Deeper or here to go Back to the Top

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.

Click here to Dive Deeper or here to go Back to the Top

flowutilities's People

Contributors

thebrettbarlow avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.