This content demonstrates writing an event handler for the QueryExecuting form datasource event in Dynamics 365 for Finance and Operations. The business requirement is to hide records in a form based on a given condition. The provided code dynamically adds ranges to a form datasource using the event handler.