The capabilities described on this page are included in Appian's advanced and premium capability tiers. Usage limits may apply. |
OverviewCopy link to clipboard
When designing and using case management apps, you may want to either bring in data from existing record types or create new record types to capture data related to your case management workflows and processes.
This page will give you an overview of the steps to relate record types to your case management apps and provide an example of how you might use that data in your case management forms and workflows.
How to relate an existing record type to the Case record typeCopy link to clipboard
Being able to use and relate existing data in your record types with case management apps allows you to be more flexible in your workflows and address more complex use cases.
For example, in a customer care app, you might need to create a workflow to allow a case worker to submit a request to update information in one or more customer accounts, which would need to be approved by the case manager or customer(s). The case record type would be related to an existing Customer Account record type that exists outside of case management.
To update the Customer Account data within a case, you would need to design the case intake form in a way that allows for the user to edit the data in the Customer Account record type, as well as data for the case. To do this, we'll need to reference the relevant data fields from the Customer Account record type in the intake form for the case type and be able to write the updated data to the Customer Account record type.
To relate the existing Customer Account record type to a case management workflow, you will:
- Relate the Customer Account record type to the Case record type using record type relationships.
- Add the relevant data fields from the Customer Account record type to the interface for the intake form for case type using the new record type relationship.
If you want to create a new record type instead of using an existing record type, the steps to set up a relationship are the same.
Relating a record type and Case record typeCopy link to clipboard
First, you need to set up a relationship between the Customer Account record type and the Case record type.
To set up the relationship:
- In Designer, find and open the
CMGT_Case
record type in theCMGT Case Management Studio Base
app. Note, this is not the record type for the case type. - In the RELATIONSHIPS section of the Data Model page, click ADD RELATIONSHIP.
- Enter the name of the record type you want to set up a relationship to. In this example, it’s the Customer Account record type.
- Click NEXT.
- Select the relationship type that best fits your use case. For this example, select the Many to One relationship type.
- Select the fields to use as common fields in your relationship. This is usually a primary key ID field. In this example, use the
customerId
field. - In the Write and Delete Related Records field, you can determine whether or not you want to write the data automatically when modifying cases.
- Selecting Write or delete… automatically updates record writes and queries for you.
Below is an example of the data structure and relationship between the Customer Account and Case record types:
Add related data fields to the intake formCopy link to clipboard
After you have your record type relationships set up, you need to add the relevant data fields from the Customer Account record type to the intake form for your case type.
To add data fields to the interface for an intake form:
- In Studio, open the case type you want to configure and click Intake Form.
- Click Create Intake Form and add data fields from your case type. You’ll add data fields from the related record type in the interface for this form in the next step.
- In Designer, find and open the interface for the intake form. All interfaces generated by Studio are in the CMGT Studio Generated Object application by default. The name for intake form interfaces may be long or resemble something like:
CMGT_Category_Customer_Account_Support_Type_Update_Customer_IntakeForm
. - Customize the interface for the intake form to reference the fields from the related record type through the relationship to the Case record type. For this example, add components for the following fields from the Customer Account record type:
- Customer contact
- Contact phone number
- Contact email
- Customer address
- Make sure the fields you add have references to the relevant related record fields.
- Click SAVE CHANGES.
Below is an image of what an intake form for this example might look like, with annotations to highlight which fields are from the case type and which are from the related record type.