---
title: "Events defined in Common Functions"
app: "Warehouse Insight"
section: "Developer"
last_updated: "2022-06-02"
url: "https://insight-works.com/kb/warehouse-insight/events-defined-in-common-functions/"
---

# Events defined in Common Functions

### Properties

| Property | Value |
| --- | --- |
| Object Type | Codeunit |
| Object Subtype | Normal |
| Object ID | 23044901 |
| Accessibility Level | Public |

### Events

#### OnBeforeGetTodaysDate()

OnBeforeGetTodaysDate event executes inside GetTodaysDate procedure of Warehouse Insight’s Common Functionals Codeunit before the procedure creates a new current date by default. Developers can customize the process on how to get the current date value by subscribing to this event.

##### Syntax

```
OnBeforeGetTodaysDate(var ptrecEventParams: Record "IWX Event Param" temporary, var pdtDateOut: Date, var pbHandled: Boolean)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _ptrecEventParams_ | Record “IWX Event Param” | The event context with all variables from scanner. |
| _pdtDateOut_ | Date | Date variable of the current date as the event output. |
| _pbHandled_ | Boolean | Boolean variable to check if current date is handled. Set the value to true to skip the default date assignment process. |

#### OnBeforeGetTodaysTime()

OnBeforeGetTodaysDate event executes inside GetTodaysTime procedure of Warehouse Insight’s Common Functionals Codeunit before the procedure creates a new current time by default. Developers can customize the process on how to get the current time value by subscribing to this event.

##### Syntax

```
OnBeforeGetTodaysTime(var ptrecEventParams: Record "IWX Event Param" temporary, var ptTimeOut: Time, var pbHandled: Boolean)
```

##### Parameters

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| _ptrecEventParams_ | Record “IWX Event Param” | The event context with all variables from scanner. |
| _ptTimeOut_ | Time | Time variable of the current time as the event output. |
| _pbHandled_ | Boolean | Boolean variable to check if current time is handled. Set the value to true to skip the default time assignment process. |
