How to Update a Dictionary in Appian (AEP)

How-to basics · Updated November 23, 2026

To update a dictionary in Appian, you edit the dictionary’s expression (usually a load() or with() block) in the dictionary’s design object and save a new version. There is no single “update” button; instead, you modify the underlying expression and then re-save the dictionary, which creates a new version that you can publish to your environment.

What Is a Dictionary in Appian?

In Appian, a dictionary is a reusable expression that returns a map (a set of key-value pairs). It is typically used to centralize constants, configuration values, or lookup data that multiple processes, interfaces, or expressions reference. Dictionaries are stored as expression rules with a specific output type, often Dictionary or Map. They help avoid hard-coding values across your application, making maintenance easier.

How to Edit a Dictionary

To update a dictionary, follow these steps:

  1. Open the Appian Designer and navigate to the dictionary’s expression rule (e.g., CONST_MyDictionary).
  2. Click Edit to open the expression editor.
  3. Modify the expression. For example, if your dictionary is defined as load({a: 1, b: 2}), change the values or add new keys.
  4. Click Save. Appian will prompt you to create a new version. Enter a comment describing the change.
  5. Once saved, the new version is available in your current environment. To propagate it to other environments (e.g., from DEV to PROD), use the Deploy feature or export/import the object.

Note: If the dictionary is referenced by other rules, those references automatically use the latest version of the dictionary when you save it, unless you have explicitly pinned a specific version in a rule input.

Versioning and Deployment

Appian tracks every save as a new version. You can view the version history by opening the dictionary and clicking Version History. This allows you to compare changes or roll back to a previous version if needed. When you deploy to another environment, you must include the dictionary object in your deployment package. If you have multiple versions, you can choose which version to deploy. However, in most cases you want to deploy the latest version.

Common Use Cases and Examples

Dictionaries are often used for:

  • Configuration values: e.g., {maxRetries: 3, timeout: 5000}
  • Static lookup data: e.g., a list of country codes with names.
  • UI labels: to centralize text that might change.

For example, suppose you have a dictionary APP_CONFIG with {apiEndpoint: "https://api.example.com", apiKey: "12345"}. To update the API endpoint, you would edit the dictionary expression and change the string. Then save a new version. All rules that use APP_CONFIG will pick up the new value immediately after the save, provided they are not caching the value.

Important Considerations

When updating a dictionary, be aware of the following:

  • References are dynamic: Most Appian expressions evaluate the dictionary at runtime, so changes take effect immediately after save. However, if you use the dictionary inside a process model that is already running, the running instances may still use the old version unless the process node re-evaluates the expression.
  • Data type consistency: Ensure the new values match the expected data types. If you change a value from a number to a string, downstream rules may break.
  • Dependencies: Check if any rules or interfaces depend on specific keys. Adding a new key is safe, but removing or renaming a key will cause errors in expressions that reference it.

Alternatives to Dictionaries

If you need more dynamic or editable data, consider using a database table or a custom data type (CDT) instead. Dictionaries are best for static, code-level constants. For example, if you need to update values frequently without redeploying, a database table with a simple admin interface is more appropriate. Dictionaries are also not ideal for large datasets because they are held in memory.

Frequently Asked Questions

Can I update a dictionary from a process model?

No, you cannot modify a dictionary’s definition at runtime from a process model. Dictionaries are design-time objects. You can, however, use a process model to write to a database table that your dictionary references, but that would require changing the dictionary to pull from the database instead of hard-coded values.

Do I need to redeploy my application after updating a dictionary?

Only if you want the change to appear in another environment. Within the same environment, saving the dictionary is enough. For production, you must deploy the new version through the Appian deployment process.

What happens if I delete a dictionary that is in use?

If you delete a dictionary that other rules reference, those rules will fail to evaluate. Appian will warn you about dependencies before deletion. It is best to update all references first or keep the dictionary and just modify it.

Can I use a dictionary inside a rule that is called frequently?

Yes, but be mindful of performance. Dictionaries are evaluated each time the rule runs, so if the dictionary is large or complex, it may slow down your application. For high-frequency use, consider storing the dictionary in a local variable or using a cached value if possible.

Is there a way to make a dictionary read-only for other developers?

Appian does not have a built-in read-only flag for expression rules. However, you can restrict edit permissions on the dictionary object by adjusting the object’s security settings in the Appian Designer. Only users with edit rights can modify it.

Can I import a dictionary from a JSON file?

Not directly. You can paste JSON into the expression editor and use the jsonToMap() function to convert it, but you must manually copy the JSON. There is no native import feature for dictionaries.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.