The Collect() function is used to create a collection of records. The syntax is: Collect(CollectionName, Data). For example, Collect(Orders, {Product: 'Product1', Quantity: 10, Price: 100}, {Product: 'Product2', Quantity: 5, Price: 200}).