Loop "Write to Data Store Entity" process activity

I have a process variable that is a list of CDT records. I want to iterate over this list and write a DSE in a separate table for each process variable row, using values from the row.

Does the Repeat option in the Write to Data Store activity accomplish this? I can configure it to repeat for the length of the process variable, but not sure how it would index each to reference.

I also tried a script task with a for loop that call the write to data store function. It didn't save anything to the table. I googled later and say that the function doesn't work in process models

Does anyone have an approach to this?

 Discussion posts and replies are publicly visible