Selecting Date Based on Record Creation Sequence

Discussion created by laguna92651 on Aug 28, 2018
Latest reply on Aug 28, 2018 by laguna92651

I am creating a set of records in list view. I would like to use one of three dates when I create the records.


Date 1 for the first 5 records, a second date for the next  5 records and a third date for the next 5 records.


After the first fifteen records have been created the date assignment would repeat with the three dates. The number of records that the dates would apply to could vary, say 8 instead of 5, it is a global field.


How might I select the appropriate date based on the record creation sequence in a script?