Loading Audio...
Improving Clarity's Ticketing App with Root Objects
Clarity wants to improve the data model for their Ticketing application by enabling users to attach multiple files to each ticket. To achieve this, they need to add an object definition for storing attachments and then relate that definition to the Ticket object. To simplify management, they want to designate the Ticket object as the root for the attachment object, establishing an inheritance relationship. In these exercises, you’ll implement this for Clarity.
Exercise: Enabling the Feature Flag
Before you can use this feature, you must enable the Root Object Definitions (LPD-34594) feature flag for your instance.
-
Open the Global Menu (
), go to the Control Panel tab, and click Instance Settings.
-
Click Feature Flags.
-
In the Release tab, search for LPD-34594 and enable it.
With this feature flag enabled, you can start using the root object feature.
Exercise: Creating the Ticket Attachment Object
By creating a separate object definition for attachments, you can define additional fields for metadata and relate as many attachments to a ticket as needed. Here you’ll create and publish Clarity’s Ticket Attachment object.
-
Open the Global Menu (
), go to the Control Panel tab, and click Objects.
-
Go to the Ticketing folder.
-
Click View in Model Builder.
-
Click Create New Object, enter these details, and click Save:
Field
Value
Label
Ticket Attachment
Plural Label
Ticket Attachments
Object Name
TicketAttachment
-
Click Actions (
) for the new object and select Edit ERC.
-
Enter
TICKET_ATTACHMENT
and click Save. -
Click Add Field or Relationship and select Add Field.
-
Enter these values and click Save.
Field
Value
Label
Title
Field Name
title
Type
Text
Enable Entry Translation
No
Mandatory
Yes
Accept Unique Values Only
No
-
Repeat the above step to add these fields:
Field
Value
Label
Description
Field Name
description
Type
Text
Enable Entry Translation
No
Mandatory
No
Accept Unique Values Only
No
Field
Value
Label
File
Field Name
file
Type
Attachment
Request Files
Upload Directly from the User’s Computer
Show Files in Documents and Media
No
Mandatory
Yes
-
Click Publish, check Ticket Attachment, and click Publish Objects to confirm.
-
Confirm the object is published successfully and click Close.
After creating the object definition, you can relate it to the Ticket object and enable inheritance.
Exercise: Relating the Ticketing Objects
When you define one-to-many relationships, you can enable inheritance, designating the parent object as the root for the child object. Here you’ll create a one-to-many relationship between the Ticketing objects and enable inheritance.
-
In the Object Model Builder, drag a line from the Ticket object to the Ticket Attachment object to create a relationship.
-
Enter these details:
Field
Value
Label
Ticket to Attachments
Name
ticketToAttachments
Type
One to Many
One Record Of
Ticket
Many Records Of
Ticket Attachments
Enable Inheritance
Yes
-
Click Save.
This designates Ticket as the root object for Ticket Attachment.
Conclusion
Congratulations! By configuring an inheritance relationship between Tickets and Ticket Attachments, you’ve improved Clarity’s data model, centralized access control, and established a scalable structure for managing related entities. In future exercises, you’ll see how this inheritance impacts permissions.
Next, you’ll review what you’ve learned before moving on to the next module.
Capabilities
Product
Education
Contact Us