Description: Saves a relation record identified by one master-entry value and one detail-entry value.
Calling convention: CIP_AddRelation("TargetObjectName": String, "MasterEntryName": String, MasterEntryValue: Variant, "DetailEntryName": String, DetailEntryValue: Variant): Integer
Parameters:
TargetObjectName: object that stores the relation.
MasterEntryName, MasterEntryValue: first identifying entry and value.
DetailEntryName, DetailEntryValue: second identifying entry and value.
Returns: Data ID returned by the object's SaveEntryValue operation. Unknown objects or entries raise exceptions.
Availability: Default; writes to the target object's database table. The underlying save operation is responsible for detecting an existing relation.
Example:
RelationID := CIP_AddRelation("OrderProduct", "OrderID", 120, "ProductID", 45);