How it works
- Pick the dictionary (empty starts a new one), the key, such as volume or lastFolder, and the value.
- The value can be text, a number, or a result from an earlier step.
- It returns a new dictionary and its entry count; the dictionary you passed in stays as it was.
Routines that use it
Save a setup
Build a dictionary with the current volume and default device, then save it with Remember to restore later.
Build a webhook message
Set title and text keys, then send the dictionary with HTTP request.
Write a settings file
Change one key in a settings dictionary and save it with Write JSON value.
Settings
| Setting | What it does |
|---|---|
| Dictionary | The dictionary to change. Keep empty to start a new one. |
| Key | The name of the entry, such as volume or lastFolder. |
| Value | Its value: text, a number, or a value from an earlier step. |
Questions
- How do I create a dictionary in KeyRoutines?
- Use Set dictionary value with the dictionary left empty. It starts a new one with your first entry.
- What happens if the key already exists?
- Its value is replaced with the new one in the copy the step returns.