| 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 | Action object to access parameters of the action. |
| job | sys.jobs.Job | This is the job object, which is only available when the action is executed in background. Keep in mind that the after action executed script is executed right after you triggered the action from the UI and the job might be still pending or running. |
//after action is executed redirect to read only view of given record
var record = sys.data.findOne(query);
sys.ui.sendMessage({
scope: 'global',
name: 'navigate',
view: '590ce2e38a2....',
recordId: record.id()
});