Creating multiple Quick Actions for each Record Type means getting a lot of buttons on a page layout. Trying to create this in Flow can streamline the number of buttons down to 1. You can’t show all record types, however, as if a User selects a record type they don’t have access to, things break.

The Get Available Record Types Apex Action will allow you to check a User’s permissions with Record Types on a given object. Simply enter select the Get Available Record Types Apex action.

Then select the object that you want to retrieve the Record Types for.

And set the output of those records to a Record Variable that allows for multiple values with the Object type of Record Type.

You can also get the Default Record Type Id in a Text Variable.

Simply choose them in the output of the Apex Action.

And you can easily assign the default Record Type in your Flow!

NOTE: As of right now, this Apex Action has the main function of getting the Default Record Type. There is a Lightning Component that has been built that will allow you to display the Record Type List to the User, however there is a current Salesforce bug that is preventing this from being able to be added to the Flow Components package.
https://success.salesforce.com/issues_view?id=a1p3A000000BMPtQAO Once this is resolved, we will update the package with the Record Type Picklist Lightning Component that will allow you to easily have users select the Record Type of the record they would like to create with the results of the Get Available Record Types Apex Action.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.