copySchedInspections

Copies all scheduled inspections from record pFromCapId to record pToCapId.

Version

1.4

Parameters

Parameter Type Description
pFromCapId CapIDModel ID of record from which to copy.
pToCapId CapIDModel ID of record to which to copy. If null, the function uses the current record.

Notes

Includes inspections that have a pending-type result, but copies status over as Scheduled. You do not need to copy the inspection type to the target record. The function can copy duplicate inspections to the target record.

capId is the record ID object for the current record.

getApplication( ), getParent( ), createChild(), createCap() functions each return a record ID object.