M7-S2 — A knowledge base as a virtual entity
Section titled “M7-S2 — A knowledge base as a virtual entity”| Module | M7 — Connect the data |
| After this session you can | Offer an existing entity’s records in a new shape, safely, as a virtual entity. |
| Time | Facilitated: 33 min · On your own: 33 min |
| Before you start | M7-S1. At least one closed ticket (from M5-S1) and the query Closed tickets (M4-S1). |
| Go deeper | Virtual entities · Proxy views |
◆ Orientation (1 min) — Reuse what is already there
Section titled “◆ Orientation (1 min) — Reuse what is already there”Representatives solve the same problems again and again. A list of solved tickets, with their solutions, would let them look up an answer before writing a new one. You could copy closed tickets into a new entity, but copies go stale. A virtual entity offers the same records in a new shape, kept up to date by the platform, with nothing copied by hand.
▤ Concept (4 min) — Three kinds of virtual entity
Section titled “▤ Concept (4 min) — Three kinds of virtual entity”A virtual entity has no records of its own to fill in: its records are calculated from one or more source entities and kept up to date shortly after the sources change. You build views on it and use it in queries, like any entity.
| Kind (Data Entity Type) | Gives you | Example |
|---|---|---|
| Virtual Proxy Entity | one source entity, re-exposed under another name, possibly fewer records and fields | Solved Tickets: closed tickets only, with their solutions |
| Joiner Virtual Entity | a source combined with entities linked to it through relations, one row carrying fields of all | each ticket together with its product’s line and support level |
| Aggregate Entity | records assembled from several sources, each field mapped from a source | one All open items list from tickets, service requests and visits |
A proxy is governed by a proxy view
Section titled “A proxy is governed by a proxy view”A proxy entity is controlled by a Proxy View, a special view on the source entity. It sets the most the proxy may ever do: which records (through its query), which fields, and whether records may be created, edited or archived through it. A new proxy is read-only; you turn operations on only if people should change source records through it, and then the source’s own rules and workflow still apply. Views you build on the proxy can show less than the proxy view allows, never more.
flowchart LR S["Support Tickets<br/>(source)"] --> PV["Proxy view: Solved tickets source<br/>query Closed tickets, 4 fields, read-only"] PV --> P["Solved Tickets<br/>(virtual proxy entity)"] P --> V["View: Knowledge Base<br/>for Support Staff"]
What to notice: the limits are set once, on the source, in the proxy view. The knowledge base view cannot show an open ticket or a field the proxy view leaves out.
A virtual entity has no workflow of its own; the source’s workflow stays with the source.
⛏ Lab (22 min) — Build the Knowledge Base
Section titled “⛏ Lab (22 min) — Build the Knowledge Base”Goal. A Knowledge Base view, for Support Staff, that lists only closed tickets with their solutions, and cannot change them.
Before you start. Signed in as yourself.
The proxy view, on the source
- Open Support Tickets › Views › New View. Name Solved tickets source.
- Under Type & source, set View type Proxy View, the Query Closed tickets, and Fields Ticket number, Ticket title, Product and Solution. Leave create, edit and archive off. Save.
The proxy entity
- Open Administration › Applications › Data Entities and select Add Data Entity.
- Name Solved Tickets (Arabic التذاكر المحلولة), Single Name Solved Ticket, Plural Name Solved Tickets, Choose Module Customer Support System.
- In Data Entity Type, choose Virtual Proxy Entity. In Choose Entity, expand Support Tickets and pick the proxy view Solved tickets source. Select Create.
The view people use
- Open Solved Tickets › Views › New View. Name Knowledge Base (Arabic قاعدة المعرفة). Source view Entries, all four fields. Pin to sidebar on.
- Access Permission: Authenticated, Select groups Support Staff.
- Entries list with a Table view of Ticket number, Ticket title and Product, and Search & filter. Entries details with all four fields. No create, edit or archive.
- Save, and Publish Knowledge Base.
Check it
- As Representative One, open Knowledge Base: the closed ticket Software installation is listed; Printer not found (still open) is not. Search for install.
- Open the ticket: its solution is shown, and there is no edit button.
Screenshot pending The Knowledge Base view as Representative One, listing only closed tickets What to notice: the open ticket is absent, and so are the customer’s rating and the status: the proxy view left them out.
Check.
- The proxy view Solved tickets source uses Closed tickets and four fields, read-only.
- Solved Tickets is a Virtual Proxy Entity on that proxy view.
- Knowledge Base is published for Support Staff.
- Representative One sees closed tickets only, and cannot edit them.
Pass condition. Representative One can search the solutions of closed tickets in Knowledge Base, and sees no open ticket.
If something goes wrong
| What you see | What to do |
|---|---|
| No Proxy View in View type | Your platform version may not offer proxy views; build the proxy on the entity alone (it then offers every record and field) and note the difference. |
| The knowledge base is empty | No closed ticket exists yet, or the query is not Closed tickets. Changes appear shortly after the source changes: wait a moment and reload. |
| This entity’s source proxy view was not found | The proxy view was deleted. Link the proxy to another proxy view on Support Tickets. |
| Customer One sees Knowledge Base | Its access is Authenticated with no group picked. Pick Support Staff. |
Model answer
Why a proxy, and why it is safe: the knowledge base needs the same records as Support Tickets, fewer of them (closed only) and fewer fields (no rating, no status), and no changes. That is a proxy. The limits live in the proxy view on the source, so no view built on Solved Tickets can show an open ticket or a hidden field, and the proxy is read-only by default. Nothing is copied: a ticket closed tomorrow appears in the knowledge base on its own.
◇ Worked scenario (1 min) — Proxy, joiner or aggregate?
Section titled “◇ Worked scenario (1 min) — Proxy, joiner or aggregate?”Three requests reach you. Decide the kind before reading on.
“The sales module needs our product list, without letting sales change it.” One source, re-exposed in another module, read-only: a proxy. A proxy is the recommended way to use one module’s data in another, because modules stay independent.
“A manager wants one list of tickets with each product’s line and support level as columns.” One source plus data reached through its link to Products: a joiner on Support Tickets with Products as an additional source. The relation from M7-S1 is what the joiner follows.
“The operations manager wants a single list of everything open: tickets, device replacement requests and site visits.” Several sources, mapped into one shape: an aggregate. Each source’s status may use different words, which the aggregate maps onto its own.
✓ Practice (4 min) — Check your understanding
Section titled “✓ Practice (4 min) — Check your understanding”A builder wants representatives to change a ticket’s solution from the knowledge base. What must change?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
You need one list of every ticket with its product’s Product line beside it. Which kind of virtual entity fits?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
When a ticket is closed tomorrow, someone must add it to Solved Tickets.
Check your answer
The correct answer is B (False). 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 chose the right kind of virtual entity for three needs and built a read-only knowledge base on a proxy, limited by a proxy view. After Module 7 you can connect entities, carry values across the links, change a live entity safely, and reuse data in a new shape.
Next. Module 8 gives each audience its own screen: customers see only their own tickets, representatives get a board and a live count, and everyone gets a home page.