Description: Creates one new offline record per configured shift and calendar day in the requested interval, sets its global Batch_Start entry to the shift start and recalculates the record.
Calling convention: HP_Create_RecordTemplateNew("ObjectName": String, "StartTime": TDateTime, "EndTime": TDateTime): NULL
Parameters:
ObjectName: exact configured target object name.
StartTime: interval start; its date is truncated before processing.
EndTime: exclusive upper limit used by the day loop.
Returns: Always Variant NULL. Missing arguments or configuration display an error. The function does not check for pre-existing shift records and does not wrap all inserts, updates and recalculations in one transaction.
Availability: Default. Requires an interactive Windows session, write access, a shift model for the target object and a global Batch_Start entry.
Example:
HP_Create_RecordTemplateNew("HP_Batch", StartDate, EndDate);