Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Generating new records with specific dates and days of the week for a date range


This topic is 5557 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I need a script to be able to create a new set of records with dates for specific days of the week. Like:

Generate 9 records starting with April 5th that fall into the following sequential pattern:

April 5

April 5

April 8

April 12

April 12

April 15

April 19

April 19

April 22

and so on

this is to facilitate creating service order records for church services (Two services on Sunday and one on Wednesday) Right now I have to create all the service/date records manually.

  • 5 months later...
Posted

You could build a script that loops through a list of dates in a field. Use GetValue and a variable that increments with each loop. Something like this:

Set Variable [$values; Value:ValueCount ( Services::gDateList )]

Set Variable [$counter; Value:1]

Loop

Exit Loop If [$counter > $values]

New Record/Request

Set Field [ Services::Date; GetValue ( Services::gDateList ; $counter )]

Set Field [// Set other fields as appropriate]

Set Variable [$counter; Value:$counter + 1]

End Loop

This topic is 5557 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.