M4-S1 — Two queries and the two views
Section titled “M4-S1 — Two queries and the two views”| Module | M4 — Put tickets in front of people |
| After this session you can | Save a query, and build and publish a requesters’ view and a team view with the right screens, access and workflow panels. |
| Time | Facilitated: 60 min · On your own: 60 min |
| Before you start | M3-S1: the workflow and its seven reactions exist. From ACP: M4-S1 (using a saved query) and M7-S1 (building a view). |
| Go deeper | Create the queries · Build the views · Queries & filters · Design the record’s details |
◆ Orientation (1 min) — Two audiences, two screens
Section titled “◆ Orientation (1 min) — Two audiences, two screens”The system can route and notify, but nobody can open a ticket yet: people never work in the designer, only through views. Customers need a simple screen to open and follow their tickets; the support team needs one to work on them. In ACP you used a saved query and built one view. Here you build queries yourself, and you build two views for two audiences, with the panels a workflow needs.
▤ Concept (6 min) — Queries, and what is new in these views
Section titled “▤ Concept (6 min) — Queries, and what is new in these views”A query is a saved filter
Section titled “A query is a saved filter”A query is a filter saved on an entity, so it can be reused by name. Each condition has a Field, an Operator and a Value; conditions sit in a group that requires All conditions are met (every one) or Some conditions are met (at least one).
| Query | Condition | Used by |
|---|---|---|
| Closed tickets | Ticket status = Closed | finding finished tickets; checking the end of the workflow |
| All tickets | Ticket status is filled | the monthly report in M4-S2, which must be based on a query |
All tickets looks odd: why a query for everything? Because a report always takes its rows from a query. Every ticket has a status (it is required, with a default), so “status is filled” matches every ticket.
A value can be Fixed (Closed), taken from another Field, or a Pointer that depends on who is looking or on today’s date; you use pointers in Module 8.
What these views add to what you built in ACP
Section titled “What these views add to what you built in ACP”You know the view designer from ACP M7-S1: Type & source with its Fields, Pin to sidebar under Appearance, Access Permission, Entries list with its displays, Entries details, the create and edit forms with their After Save, and Publish. These two views add five things:
| Setting | What it gives | Why here |
|---|---|---|
| Search & filter | a search box and filters on the list | the team must find one ticket among many |
| Discussion | comments on the ticket | customer and desk can talk on the ticket itself |
| Entry history with Changes and Changer | what changed, and who changed it | anyone can see that the desk changed the status |
| Workflow path | the ticket’s route, with the step it is waiting at | the customer sees where the ticket is |
| Workflow comments (under Discussion) | the notes people type when they take a workflow action, labelled with the step | the customer reads the desk’s and the manager’s notes |
Workflow path and Workflow comments are off by default, and with them off the people using the view see neither the route nor the notes. Two facts to plan around: the workflow tab stays on a finished ticket too, so the customer can still see the route it took; and an approver’s note is invisible anywhere unless Workflow comments is on.
The view does not decide the workflow buttons
Section titled “The view does not decide the workflow buttons”Which workflow buttons a person sees (Send to Processing, Review Solution and so on) depends on who owns the ticket’s current step, not on the view. Likewise, the field rules of Module 2 still decide which fields each person can change at each step: a view’s edit form can list Assigned to, and the representative still cannot change it at Processing Ticket. A view decides who can open the list and which screens exist; the workflow decides who acts.
| View | Open to | People can |
|---|---|---|
| Ticket Request | everyone signed in (Authenticated, nobody picked) | open a ticket, follow it, discuss it |
| Incoming Requests | Desk Agent, Representative One, Support Manager | work on tickets; later, see the status chart |
⛏ Lab (47 min) — Save the queries and build the views
Section titled “⛏ Lab (47 min) — Save the queries and build the views”With a facilitator. The facilitator plays the video, or builds it live in the same order, before the lab starts.
On your own. Watch the video once before you start. The lab below gives every step in writing, so you can also go straight to it without the video.

Tutorial · Part 5 of 8 · 3 min 10 s
Queries and the two views
What to notice: A query is a saved filter (Ticket status equals Closed; All tickets uses Is filled). Then the two views: Ticket Request, open to anyone signed in, and Incoming Requests, open only to the Technical Support Office group. Watch the three options that are off by default, Discussion with Workflow comments, Entry history, and Workflow path, and that the add form also needs Ticket status. Save, then publish.
Goal. Save Closed tickets and All tickets, and build and publish Ticket Request and Incoming Requests.
Before you start. Signed in as yourself.
Save the two queries
- Open Support Tickets, select the Queries tab, and select + (New Query).
- Keep All conditions are met. Select Condition and set Field Ticket status, Operator =, and the value Fixed, Closed.
- Under Query Settings, enter the Query Name Closed tickets and select Save Query.
- Select + again. Add the condition Ticket status is filled (it needs no value).
- Name it All tickets and select Save Query.
- Select Apply query next to All tickets: the list is empty for now. That is expected; you create tickets in Module 5.
Screenshot pending The query dialog for Closed tickets: All conditions are met, one condition Ticket status = Closed, and the Query Name What to notice: a condition reads like a sentence, field, operator, value. The name is how views, reports and summaries will find it.
Build Ticket Request
- Select the Views tab and New View. Under View information, enter the Name Ticket Request (Arabic طلب تذكرة) and pick the Icon megaphone.
- Under Type & source, set Source view to Entries. In Fields, choose Ticket number, Ticket title, Ticket description, Start date and Service evaluation.
- Under Appearance, turn on Pin to sidebar.
- Under Access Permission, turn on Authenticated and leave Select Users and Select groups empty.
- Turn on Entries list. Under Displays, turn on Table view with all five fields and make it the Default. Turn on Search & filter. Leave Dashboard off.
- Turn on Entries details with the same fields. Turn on Workflow path.
- Turn on Discussion with all its options, including Workflow comments. Turn on Entry history with Changes and Changer. Leave Relations off.
- Turn on Creating new entries with the same fields, and set After Save to Go to view entry details. Turn on Editing entries with the same fields and the same After Save.
- Select Save, then Save Changes. On the Views tab, select Publish on the Ticket Request card and confirm.
Screenshot pending The Entries details and Discussion settings of Ticket Request, with Workflow path and Workflow comments turned on What to notice: both workflow settings start off. Without them the customer could neither see where the ticket waits nor read the desk’s notes.
Build Incoming Requests
- Select New View again. Name Incoming Requests (Arabic الطلبات الواردة), any icon. Source view Entries; in Fields choose the five fields above plus Ticket status, Assigned to, End date and Solution. Turn on Pin to sidebar.
- Under Access Permission, turn on Authenticated, and in Select Users pick Desk Agent, Representative One and Support Manager.
- Turn on Entries list with a Table view of Ticket number, Ticket title, Ticket status, Assigned to and Start date, as the Default, and turn on Search & filter.
- Turn on Entries details with all the chosen fields and Workflow path; turn on Discussion with Workflow comments, and Entry history with Changes and Changer.
- Leave Creating new entries off: tickets are opened from Ticket Request. Turn on Editing entries with Ticket status, Assigned to, End date and Solution, and set After Save to Go to view entry details.
- Select Save, then Save Changes, and Publish Incoming Requests. On the Views tab, Ticket Request is listed under Authenticated and Incoming Requests, which also picks users, under Restricted.
Check it
- Reload. In the sidebar, open Customer Support System: it lists Ticket Request and Incoming Requests.
- In the private window, sign in as Customer One: the sidebar shows Ticket Request only.
Check.
- Closed tickets and All tickets are on the Queries tab.
- Both views are published.
- Customer One sees Ticket Request but not Incoming Requests.
- Ticket Request can create tickets; Incoming Requests cannot.
- Both views have Workflow path, Workflow comments and Entry history on.
- Incoming Requests is open to exactly three users.
Pass condition. Customer One sees Ticket Request with an Add button and does not see Incoming Requests; you see both.
If something goes wrong
| What you see | What to do |
|---|---|
| Save in the view designer stays greyed out | As in ACP: choose Fields under Type & source first, and give each of Creating new entries and Editing entries an After Save. |
| A field list says No Results Found | The field is not chosen under Type & source › Fields. |
| Sorry, you can’t publish this view, until configuring the view permission | Turn on Authenticated (or Anonymous) under Access Permission first. |
| A view is missing from the Views tab | Look under the other filter buttons (Authenticated, Restricted). |
| Customer One sees Incoming Requests | Its Select Users is empty, which opens it to everyone signed in. Pick the three staff users. |
| Workflow path or Workflow comments cannot be found | They sit with the record’s details and with Discussion; open those sections fully. |
Model answer
The two views differ by audience:
- Ticket Request is open to everyone signed in, because any customer must be able to open a ticket. It can create tickets; after saving, the customer lands on the ticket, where Send Request waits.
- Incoming Requests is open to three named staff users, and cannot create tickets. Its edit form lists the fields the staff fill in; the step rules still decide who may change which.
- On both, Workflow path lets people see where a ticket waits, and Workflow comments shows the notes typed with each action, labelled with the step. Entry history shows who changed what. Without these three, a customer would have a ticket number and nothing else.
✓ Practice (5 min) — Check your understanding
Section titled “✓ Practice (5 min) — Check your understanding”Why does the tutorial save an All tickets query whose condition is Ticket status is filled?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
A customer opens a ticket she submitted yesterday and asks: “Where is it, and what did the desk write when they sent it on?” She sees only the ticket’s fields. What did the builder leave off?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
Because Incoming Requests lists Assigned to in its edit form, a representative can change Assigned to while the ticket is at Processing Ticket.
Check your answer
The correct answer is B (False). Open the explanation under each option to see why.
The support manager opens Incoming Requests and sees no Send to Processing button on a new ticket. Everyone else’s buttons work. What is the most likely reason?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
↺ Recap (1 min) — What you can do now
Section titled “↺ Recap (1 min) — What you can do now”You saved two queries and built two views for two audiences: customers open and follow tickets in Ticket Request; the staff work them in Incoming Requests. Both show the route and the notes, and both leave the decisions to the workflow.
Next. In M4-S2 you give managers their figures: a status chart inside Incoming Requests and a monthly report built on All tickets.