Adding extra records (seeds)

Is there a way to add extra records through a data mapper? So I have a CSV file coming through and need to add some extra static records in every time it runs (seeds).

I won’t be using workflow so can’t do a retrieve items, so need to do this within the mapper

Yes, you can use the record.copies property on any record to duplicate it, and then you can use the record.setCopy() method to set values for any or all fields on any of the record copies.

Hi Phil.

Found the page for this in the help. but getting an error saying the field doesn’t exist using the example given, but it does. Am I missing something?

Ignore me, just realised the field has spaces in!

1 Like

I love self-answering questions… :smiley:

1 Like