The following is a list of methods that can be used in Schedule Action records. All standard method names begin with window.com.kruvi.actions. For example, to use the newRecord method, the method name should be:
window.com.kruvi.actions.newRecord
Custom methods can be placed inside their own packages, with different naming conventions, using a Javascript plugin.
Method | Parameter | Description |
---|---|---|
newRecord | Object Type API Name | Creates a new record of the specified object type, and opens the record edit form. |
edit | Opens a form to edit the selected record. If more than one record is selected, only the first one is edited. | |
delete | Deletes the selected record(s). The user must confirm this action first. | |
copy | Copies the selected record(s) to the clipboard. | |
cut | Copies the selected record(s) to the clipboard. Once pasted, these records will be moved instead of cloned. | |
paste | Pastes any copied or cut records to the selected cell(s). | |
viewDetails | Opens the record page for the selected record. | |
viewRelatedRecord | Field API Name | Opens the record page of a related record. The Field API Name parameter must be the name of a lookup field, or another field that contains a record ID. |
repeat | Opens the Repeat form for the selected record(s). | |
Opens the browser’s Print dialog. | ||
selectAll | Selects all visible records. | |
update | JSON-formatted data packet | Updates the selected record(s) with the data in the JSON packet without having to open the record edit form, and without manual data entry. A packet should look like the following:{"name":"New Record Name"} Note: Any updated fields must already be configured to be loaded on the object. |
flowBackground | Flow API Name | Executes an auto-launched flow in the background. The record ID of the first selected record is passed into the recordId variable of the flow. Note that you must use the flow API name, rather than the human-readable label. |
flow | Flow API Name | Opens a modal window that displays a screen flow. The record ID of the first selected record is passed into the recordId variable of the flow. Note that you must use the flow API name, rather than the human-readable label. |