| Name | Type | Description |
|---|---|---|
| record | sys.data.Record | The record where the action will be executed. This variable is only available if the type of the action is |
| query | sys.data.Query | A query object with filters to find all records afected by this action. Only for type Many records. |
| action | sys.data.Action | This allows access to the parameters of the action. When the action is executed from the UI, changes made here will be reflected in the UI. |
//sets the default value as the email of the current user
action.field('sendTo').val(sys.context.getCurrentUser().email());