function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Brian Good 8Brian Good 8 

Button to Change Record Type with Flow

I know this can be simplified if you are changing the Record Type with Actions or Quick Actions.  However, I'm using a flow because there are some variables I'm processing through loops and decisions to determine which Record Type I'd like to change to.  

I'm looking to have my users click a button, run the flow, and refresh the page to reflect the new record type (and corresponding page layout).  If I do a Screen Flow I end up having to put an end screen and have them click finish to get through the flow and refresh the record.  I haven't really looked into using an autolaunced flow, but maybe that's a possibility?

Is a custom button the way I should go?  User clicks the button, passes the recordId and kicks off the flow, runs the flow, and then refreshes the page?  Just not quick sure what that all looks like.  Any help is appreciated!
Jakub Kołodziej 7Jakub Kołodziej 7
User clicks the button, passes the recordId and kicks off the flow, runs the flow and in your button add returl={!recordid}