What are Case Databases?
A Case Database can be used as author-configurable data storage in a BRYTER Application whose primary purpose is to store (case) records. Authors can create Case Databases within an Application and configure the fields – the database schema – as well as use the configured Database in READ or WRITE Database Nodes in their Modules. These native Case Databases can replace existing external database or Excel Integrations and enable case management use cases. For a better overview, take a look at our Case Databases article.
What is a Unique Identifier (ID)?
The Identifier (ID) is a unique sequence by which a person/record/case/matter/etc. can be identified by a computer system, network, or, as in our BRYTER example, a Case Database. We use IDs frequently in our daily lives – whether in their physical form to identify ourselves to certain professional groups or – even more frequently – on the Internet, to log onto platforms to check our emails, transfer money or build Modules on BRYTER.
Sometimes we do not recognize IDs right away, as they can have different names depending on the context: e.g., case number, customer number, employee number, ticket number, etc. – this already gives us an idea of potential use cases in terms of building Modules.
In Case Databases, IDs link user entries (records) to the specific user and allow for hassle-free further processing, e.g., in other Modules. For instance, by passing a record's ID to modules via URL Parameters, different Modules can work on the same case. This is a great feature when it comes to Handover processes.
How to use IDs
Every Case Database comes with a special ID field that uniquely identifies a record. The identifier (ID) of the case record is automatically added as a mandatory field in every Case Database. It can be renamed by typing into the blue field below Unique Identifier, e.g., client_id, technician_id, employee_id, etc.
As Databases can be used to read values out of the Database and/or to write values into it, there are different options when it comes to using the ID:
Writing values in a Case Database
You have two options when setting up an ID to write in a Database, you can:
- leave the ID field empty – it will be generated for you automatically; or
- specify an ID – but you will need to ensure that it is unique for this Database as existing entries with this ID would get updated and overwritten
If you write a record without providing an ID, a unique and hard-to-guess ID will be automatically generated for you, it could look something like this: 4579a71e-7053-4ee4-8c38-baf2488f3166.
This is helpful as you do not run the risk of setting up an ID (e.g. through referencing the client_name) that could be already existing or become non-unique at some point in time. For instance, when another user has the same name as an already existing one. Similarly, while emails tend to be unique, there is always the possibility that a user changes to a different email which would make the records from the database non-retrievable, deeming them potentially useless.
Whenever you want to retrieve records from a Module (that is, reading values from a Case Database), it is advisable that you provide an ID. While some IDs like ticket numbers do not necessarily have to follow a specific pattern, others do to quickly identify and reference. Think of the examples mentioned above, e.g., case numbers, client numbers, etc.
Sometimes you want existing entries to be updated or overwritten in a Database, e.g., whenever you want a user to be able to update the old information that is no longer relevant. If you specify an ID in a Write Database Node, and an entry with that ID exists in the Database, the existing entry gets updated with the new values provided. Only fields with a non-blank value get overwritten.
Reading values from a Case Database
By specifying an ID (as plaintext or as a variable reference) in the Read Node, you can read all the values from the relevant Database fields if the entry exists. All available OUTPUT parameters - the fields in the selected Case Database – are displayed in the sidebar. The ID is the only INPUT parameter and can be @-referenced, e.g., from an Input Node, a URL Parameter, or a Value Node.
If you have chosen an automatically generated ID, you will need to pass it through a Text Value, e.g., through a Text Input Node or a URL Parameter set to the TYPE Text:
After referencing the ID in the READ Database Node, authors can retrieve the values stored in the Database through @-referencing the fields in any Node that follows.
Keywords: data base; databse; Datenbank