Skip to main content
Hello Devs,

I'm new to Flow and having issues assigning adding a Record (Single) Variable type to a Record Collection variable. The logical order is:

1. An Apex Action is kicked off, returning a data type of Apex-Defined Data Type list

2. A Loop is kicked off iterating through the list of the Apex-Defined Data Type

3. Assign a Record Data Type the attributes of the Apex-Defined Data Type

4. Add the Record into a Record Collection varible.

The issue that I am having is that it looks like nothing is being added into the Record Collection. The debug results I get reads as: 

ASSIGNMENT: Assign_to_Record_Collection

{!oanda_exchange_rate_record_collection} Add {!oanda_exchange_rate_record}

Result

{!oanda_exchange_rate_record_collection} = "[OandaExchangeRate__c (No ID)]"

Please see screenshots below for context.

Loop ScreenshotAdding Record Variable to Record Collection - Flow

Loop Element Configuration

User-added image

Assign to Record Configuration

User-added image

Assign to Record Collection Configuration

User-added image

Assign to Record Debug

User-added image

 
6 answers
  1. Nov 26, 2024, 7:59 PM

    Hi Harry!

    Did you ever find a solution for this? I am experience the exact same thing and can not get the assignment  of a record variable to a record collection to work. I am getting the " (No ID)" result in debug. Please let me know if you found a solution.

Loading
0/9000