1

I am attempting to include Record Type as a field to be filled by the user in a Flow screen. I was trying to enter it as a typical picklist type of dropdown field, and using Picklist Choice as choices. However, Record Type is not one of the options when I attempt to assign Choices. After I select the Object, my only options are the custom Picklist fields on that object.

Am I missing something here ? Is there a different process which needs to be followed when filling out a Record Type in a Flow Screen element ?

Thank you.

1 Answer 1

3

Record Type in flow is actually stored, realized and worked through as a separate object, which is technically how it is kept in the Salesforce databases. It is not natively a picklist on the original object; Salesforce just presents it that way as a matter of convenience for the users.

Therefore, when working with Record Type in Flow, you would not be able to access it as a standard picklist, since it is not really one. There is, however, the object "Record Type" that can be set when performing any Record Lookup.

My advice would be to create a non-Picklist Choice field on your screen, just a normal Choice, and populate it manually with the possibilities. You can then use a Decision to set a path based on which Record Type was chosen, and in each possible path, run a Record Lookup on the Record Type object, getting the ID of the Record Type where the name matches the choice. Actually, that is the easy path, but a bit more fragile; it would be better to perform the lookup based off of the DeveloperName of the Record Type, though you will have to manually enter these into your Decision criteria.

Once you have the Record Type ID, you can use it in the Flow wherever you need it.

1
  • @markross_c - thank you very much. This all turned out to be much more complex than I thought it would be. After reading your suggestion, I was thinking that maybe the best (or at least easiest) way to do this might be to use the picklist like you suggested, but to take that text value and convert them to the RecordTypeID value using a Formula element - and then assign that value to a Variable - and then assign the RecordTypeID "field" to that Variable in the Create Record element.....seems like that might work....?
    – Zoom_v
    Commented Jan 29, 2016 at 15:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .