I'm a scripting newbie and need a little help...
I'm attempting to create a number of placement records, linking to a booking where the number of records is inputted by the user.
I've cobbled together pieces from various example scripts I've found, but I'm hitting an error. Please see details below.
This is the script:
This is the error:
And these are the details of the object:
Currently I suspect there's a type mismatch somewhere - but any help would be greatly appreciated!