An action is a saved list of steps: make a note from a template, set a property, open the note. It runs when you press Run, and by itself only when you give it a When and turn it on: on a schedule, or when a note comes to meet a condition. The steps run in the same order every time.
Make an action
- In the shelf panel, right-click a library, a folder or the shelf's own row, or press and hold it on touch.
- Choose New action.
- The action's page opens. Its name is Action. Type a new name over it at the top of the page.
The action is kept in an Actions folder. A library's actions are in its own Actions folder, which shows under the library once it holds an action. The actions of the shelf and of every folder that is not a library are in the shelf's Actions folder. The first New action makes the folder.
New action is in the menu only where you may change that library, or the shelf itself for its Actions folder.
Add steps
On the action's page, choose Add a step and pick one:
| Step | What it does |
|---|---|
| Create a note | Makes a new note. Into is the folder it goes in. From is a template there, or Blank note. Set gives the note property values. |
| Set a property | Writes one value on one item, or on everything a filter matches. For a date, choose This moment to use the time Run is pressed. |
| Move | Moves items Into another folder. Shelf is the shelf's root. |
| Archive | Archives items. They stay where they are and leave the listings. |
| Move to Trash | Moves items to Trash, where you can restore them. |
| Open | Where the run leaves you: a note, folder, view or file, or The note this run makes. |
Each step but Create and Open has a Subject: One item, or A filter. A filter looks In one library, or in Shelf for everything filed, and keeps the rows Matching your conditions. The step shows how many match now. A run takes the matches at the press, and one step changes at most the first 500.
Set a property cannot write ID, formula, rollup or relation properties.
A Create step's template must stay in a Templates folder. {{date}} and {{time}} in it are filled in when Run is pressed. The note it makes is a real note at once, not a draft that waits for a first edit.
Order the steps
Steps run top to bottom. Drag a step by its grip, or use the up and down arrows at the top right of the step. The × removes it.
Open is always last. A new step goes in above it, and only one Open step is allowed.
Run it
Press Run on the action's page. It reads Running… while it works, then reports in one line, such as Run queued with 3 operations. The changes are made on this device straight away, and sync afterwards like any edit.
Run is also the button at the end of the action's row in the shelf panel, the action's tile on its folder's page, and Run in the action's right-click menu. Selecting the row itself opens the action's page and runs nothing.
Run an action on a note
An action in a library's Actions folder that acts on This note runs on that library's notes. You can run it from any note of the library:
- Right-click a row in a table, a card on a board, a folder's page or All Notes, a search result, or a note in a calendar or a timeline. On touch, press and hold it. In an open note, use the ⋮ menu.
- Choose Run and the action's name, such as Run Mark done.
The menu lists three actions by name. If the library has more, choose Run an action… and pick one.
An action in the shelf's Actions folder runs on no note, and an action in one library never runs on another library's notes.
To run an action on several notes, check them, then right-click one and choose Run Mark done on 12 notes…. You are asked first. It runs once for each note, on up to 500 notes at a time. If it cannot run on some of them, it still runs on the rest, and one message names the notes it skipped. One Undo takes back the whole run.
See a library's actions
To see every action of a library, open the library and press the bolt beside Properties, Filter and Sort. Or right-click the library in the shelf panel and choose Actions. For the shelf's own actions, right-click the shelf's top row and choose Actions.
The panel lists the actions in the library's Actions folder. Each row shows what starts the action, whether it is On or Off, and the same line its page shows: when it last ran, or why it is not running, such as Its When reads Stage, which was deleted. Click an action to open its page. New action makes one in this Actions folder.
When Run is greyed
The whole run is checked before anything changes. If one step cannot run, Run is greyed and nothing is changed. Its reason names the step, such as Step 1: the template is no longer in a Templates folder. Hold the pointer over Run to read it; on the action's page the step itself shows the reason. Fix or remove the step, then press Run again.
An action with no steps says Add a step before running this action. An action in Trash does not run.
Rename, move or remove an action
Right-click the action's row in the shelf panel, or press and hold it on touch:
- Rename or edit steps… opens its page. Change the name at the top.
- Move or copy to… files it in another place's Actions folder. Moved to a library, it goes into that library's Actions folder; moved to any other folder, into the shelf's.
- Move to trash puts it in Trash. Restore it from there, as you would a note.
On the action's page, the ⋮ menu beside Run has Move or copy to…, Archive and Move to trash. The name is changed in place at the top of the page.
An action that uses This note stays in its library's Actions folder: in another library, This note would be that library's note. To use the steps in another library, copy the action there and change its steps.
Buttons run actions in their own place
A button runs an action from the same place: a library's Action property and an alias in a library run actions in that library's Actions folder, and a button on a folder's dashboard runs actions in the Actions folder of that folder's place. A dashboard's button runs only an action that does not act on This note; run one that does from a note's menu. Anyone who may change the action may change the button too, so nobody changes what someone else's button does without that right. A button whose action is somewhere else is greyed, and holding the pointer over it says where the action needs to be.