B25.FormRecordCollection
Overview
A wrapper around a collection of B25.FormRecords, with some additional methods to manipulate the collection.
This class implements the Iterator interface. This makes it act like a List<B25.FormRecord> and allows you to loop over the collection, for example this code demonstrates setting the checked in time on every reservation contact:
B25.FormRecord record = form.getActiveRecord();
B25.FormRecordCollection reservationContacts = record.getRelatedRecords('B25__Reservation_Contacts__r');
for (B25.FormRecord reservationContact : reservationContacts) {
reservationContact.put(B25__ReservationContact__c.B25__Check_In_Datetime__c, System.now());
}
Example
The following code demonstrates adding a reservation contact from inside an