Parameters
NameTypeDescription
recordsys.data.Record

The record where the action will be executed.

This variable is only available if the type of the action is One record or if you are appliying the action to many records.

querysys.data.QueryA query object with filters to find all records afected by this action. Only for type Many records.
actionsys.data.ActionThis 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.
Samples
 
//sets the default value as the email of the current user
action.field('sendTo').val(sys.context.getCurrentUser().email());