| Field References
How to put references to data in fields of other entries.
|
Introduction
KeePass can insert data stored in different
entries into fields of an entry.
This means that multiple entries can share a common
field (user name, password, ...), and by changing the actual data entry,
all other entries will also use the new value.
Placeholder Syntax
The placeholder syntax for field references is the following:
{REF:<WantedField>@<SearchIn>:<Text>}
The WantedField and SearchIn parts need to be replaced by
1-letter codes identifying the field:
| Code | Field |
| T | Title |
| U | User name |
| P | Password |
| A | URL |
| N | Notes |
| I | UUID |
| O | Other custom strings (KeePass 2.x only) |
The Text part is the search string, i.e. this text
must occur in the specified field of an entry to match.
If multiple entries match the specified search criterion, the first
entry will be used.
To avoid ambiguity, entries can be identified by their UUIDs, which are unique.
Example:
{REF:P@I:46C9B1FFBD4ABC4BBB260C6190BAD20C} would insert the
password of the entry having 46C9B1FFBD4ABC4BBB260C6190BAD20C as UUID.
KeePass 2.x Only
Referencing fields of other entries only works with standard fields, not
with custom user strings. If you want to insert a custom user string, you need
to place a redirection in a standard field using {S:<Name>},
and reference the standard field.
Example
Let's assume you have two entries: one with title "Mozilla Website"
and one with "Mozilla Forums", and want to insert the user name
of the website account into the URL of the forums entry. Within the forum entry's
URL, you could reference the user name like this:
http://fictitious-forum.mozilla.org/?user={REF:U@T:Mozilla Website}
|