KeyRoutines
StepFreedict.set

Add or change a value in a dictionary in your routine

Set dictionary value adds an entry to a dictionary or replaces one with the same name. Leave the dictionary empty to start a fresh one, which is a simple way to bundle related values.

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

SettingWhat it does
DictionaryThe dictionary to change. Keep empty to start a new one.
KeyThe name of the entry, such as volume or lastFolder.
ValueIts 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.

Pairs well with

Build this routine in KeyRoutines

Free from the Microsoft Store for Windows 11 and 10. Pro is a one-time upgrade.