Calling convention: GetProductField(ProductID: Integer, "FieldName": String): String
Description: Reads a named field from the PRODUCT table for a product ID.
Parameters:
ProductID: product identifier.
FieldName: database field name to select from PRODUCT.
Returns: Selected field value, preserving its database type where possible; NULL for NULL or empty arguments, a database NULL or no matching product. Although registered as String, non-text fields are returned as Variants.
Availability: Default; requires the requested field in the PRODUCT table.
Example:
ProductDescription := GetProductField(11, "Description");