I have a flow that creates a Conversion Event record (custom object) whenever a Campaign Line (CLN) record (related custom object) is created (via the Clone button). Typically, there are multiple Conversion Events, which are auto-numbered, related to a CLN. The intention of the flow is to clone/copy over those Conversion Events from the old CLN to the new cloned CLN without the user having to recreate them.
In the flow, I use a Get Records to pull all the Conversion Event info from the previous CLNs and then loop through all the records and use an Assignment to assign the values to the field variables and a Collection to hold all of the newly created records. However, I have one field, a picklist that is just a list of numbers 1-20, that doesn't always pull the number from the looped records and populate in the new Conversion Event record.
Does anyone know why this would happen and how it can be fixed? I'm wondering if there is something nuanced about using numbers in a picklist that I don't know about?
Thanks!
#Flow #Flows
Hii Lisa,
The 1–20 picklist values are not the issue. I would check the Flow’s loop or assignment
pattern first.
Make sure the picklist is assigned directly from Current Item from Loop to the new record variable, then add that record variable to the collection. Create the records after the loop, not inside it. Salesforce specifically recommends this pattern because the Current Item is reset on each iteration.
Also verify that the picklist values are "Active" and available for the target "Record Type"
(and controlling value, if it’s dependent).
Check this for references:
https://trailhead.salesforce.com/content/learn/modules/loops-in-flow-builder/build-a-loop
https://help.salesforce.com/s/articleView?id=platform.troubleshoot_picklist_values.htm&type=5