Skip to content

This page is for integrators and developers who read or write comments and reactions through the API, or who need to explain exactly what a user sees in a record’s Discussion tab. It is the technical layer behind the end-user guide Comments & Collaboration. The generated endpoint reference is in Comment — comments-service and Reaction — comments-service; the call token service is documented in Real-time (sockets and RTC).

A comment is always attached to one record: it stores a relatedTo reference made of the record’s entity (dataEntity) and the record’s id (dataEntry). Threads are loaded per record, so a comment never appears on another record. Comments are returned oldest first, ordered by the time each was made. Each carries the text, the author (commenter), attachments, the audience if any, and the time.

Two places use the service:

  • The record’s Discussion tab, when the view has discussions enabled. This is the general case for any entity.
  • Timeline posts. For the built-in POSTS entity, comments and reactions go through the same service, gated by whether the timeline display is enabled in the view.

Alongside the thread a client can request an attachment list (only the files attached across the record’s comments) and a comment count (for badges and counters).

Since 1.8 the author, the directed audience and, for comments posted on someone’s behalf, the delegate are resolved by the service before the thread is returned, so names and pictures render without an extra lookup.

Since 1.10 a comment posted by a visitor who was not signed in (on a public view) has no author account. It is shown as Anonymous and nobody can change its audience. Before this fix such a comment could stop the rest of a public record page from displaying, which also hid a signed-out visitor’s workflow-action dialog on that page.

When the view’s Workflow comments setting (showWorkflowComments) is on, each workflow step note (who executed it and when) is merged into the thread as a read-only comment labelled with the step it came from (long-standing).

A note left when reassigning a step or changing its owner is folded into the same thread under the same setting; before 1.10 it was not. An owner change is not a step execution, so it was never part of the step history the thread is synthesized from. The platform reads it from a narrowly-scoped source, GET …/entries/{id}/owner-change-notes, which returns only owner-change records that carry a note, and renders it like a step note.

Because the note is assembled on read rather than stored as a comment, posting it does not fire the real-time “comments updated” signal that a normal comment post does. A Discussion tab already open in another window picks it up only when that view re-fetches the thread (reopening the entry, switching tabs and back, or the surface’s own refresh).

A new comment accepts three things:

What the client providesFieldRequired
The message textcommentTextNo (may be empty or null)
Files to attachattachments (each with id, name, mimeType, size, optional thumbnail)No
People or groups to direct it toaudience (references; split internally into users and groups)No

The commenter and the time are stamped by the service; the client never sets them. The comment is linked to the record in the route.

Editing is limited to the comment’s own author; any other caller is refused. Only the audience can change; the text is not changed by the edit operation. An empty audience re-opens the comment to everyone (subject to the private-comment rule below).

Deleting. There is no end-user delete in the comments API. Comments are managed through the platform’s data lifecycle: a removed comment is in an archived state and is filtered out of threads. Reactions, by contrast, can be removed directly.

Attachments are validated against the view’s attachment settings. There is no fixed list of accepted types; the allowed types are configured per view.

  • Size. Each file must be within the configured maximum. If the view sets none, the default cap is 1 MB (1,048,576 bytes) per file.
  • Types. Files are checked against the view’s allowed-extensions list. If the view enables attachments but configures no allowed extensions, files are rejected. An entry can be a file extension (.pdf), an exact MIME type (image/png) or a wildcard MIME type (image/*).
  • If the view does not enable attachments, any file is rejected.

A failing file rejects the whole post, with an error naming the attachment by position. The portal shows Failed to upload the file. Please ensure it meets the upload requirements and try again.

Since 1.10 an attached file is held in temporary storage and kept only once the comment is posted; a file attached to a comment that is never posted is not kept. See Files: storage rules.

When a view allows mentions, the portal’s comment box opens an autocomplete on @. The mentions autocomplete searches active users and groups by group name and person full name (in each configured language) and by a person’s email address or username. Results are capped at a handful of suggestions.

Who can be suggested depends on the view’s mentions-list mode, set by the builder:

ModeWho can be mentioned
EveryoneAny active user or group.
Based on view permissionOnly users and groups with access to the view (used when the view is restricted).
Custom — FixedA fixed list chosen by the builder.
Custom — DynamicUsers and groups taken from fields on the record, for example an assignees field.

Anonymous (not signed-in) visitors cannot mention anyone, even where mentions are enabled.

Since 1.8 builders and administrators adding a comment from the back office (an entry’s sidebar in Administration, not the portal) use the same mentions and audience lookup. Before this fix a back-office search always returned a “you don’t have access permission” error, because only the portal’s view-based check existed and it does not apply outside a view. A back-office search now requires the caller to hold at least view access somewhere in the back office, through their user or a group.

On post, the service scans the text for mention markers of the form @<uuid> (a person or group id wrapped in @<…>), resolves each to a real user or group, and stores three lists on the comment: the combined mentions, the mentioned users and the mentioned groups. The last two drive notifications.

Since 1.10 a mention that can no longer be resolved (an account or group since deleted or deactivated) renders as @Unknown (Arabic “غير معروف”) instead of breaking the page. Before, such a mention blanked the whole entry view until a reload. Mention names are also resolved the moment the comment is posted, so a name just mentioned appears immediately.

The platform ships a built-in trigger on comments that runs Send Notification to the mentioned users and groups on the in-app channel, titled Mention, with the message {{person}} has mentioned you in a comment, where {{person}} is the author’s name. Mentions, the autocomplete and the list modes are long-standing.

Since 1.10 on an installation that hosts several organizations, a mention could previously notify nobody: the comment entities and the built-in mention trigger were never set up per organization. They are now created for every organization, existing ones and any added later. Nothing changed in how users write or mention.

A comment can be directed to an audience: users and/or groups, stored split into users and groups. A directed comment is visible only to its author, the targeted users and the members of the targeted groups. A comment with no audience is visible to everyone who can see the thread. The portal’s comment box offers the audience picker only when the view allows it.

Private comments (limited to the current view)

Section titled “Private comments (limited to the current view)”

A view can keep its comments private (limitCommentsToCurrentView, shown to builders as limiting posted messages to the view). Comments posted there are flagged private (commentIsPrivate) and tagged with the view they were created in. Reading a thread then returns the comments made privately in the same view plus every non-private comment, from any view; the audience rules still apply on top. One record can therefore carry separate, view-scoped discussions (long-standing).

On timeline posts and other records where reactions are enabled, the only reaction type defined is Like.

  • Adding or changing a reaction replaces the caller’s previous one: at most one reaction per user per record. Identity and time are stamped by the service.
  • Removing a reaction deletes only the caller’s own.
  • A client can list a record’s reactions and get a reaction count.

Reacting to a timeline post also registers an impression on the post, and requires the post to be published and the timeline to be active in the view.

The portal’s Join action (shown in view mode on non-draft entries whose entity has real-time enabled) opens a call whose channel is the entry’s id, so everyone joining from the same entry shares the call. The portal requests a token for the channel on the user’s behalf from the RTC service, which issues Agora tokens. A token request names the channel, the role — publisher (can send audio and video) or audience (receive only) — and an expiry that defaults to 3,600 seconds (1 hour). The token is bound to the user id and the channel; a client refreshes it before it expires. Requests without a channel, without an identified user or with an unrecognised role are rejected. Calls are web-only. Service detail: Real-time (sockets and RTC).

A record accumulates the emails the platform sent about it. The entry’s E-Mail tab (when the view shows it) lists them per record and opens each with its content and attachments. It is a read-only history; nothing is composed from it.

View configuration (set by the builder) decides availability:

  • Discussions enabled — required to see or add comments at all for non-timeline records. On the POSTS timeline, the timeline display must be enabled instead.
  • Allow add comments — required to write text comments.
  • Allow add attachments — required to attach files, with its own size and type limits.
  • Allow mentions — required to mention, and the user must be signed in.

The caller’s access to the record decides reading and writing:

  • Reading a record’s comments needs at least view access to the record, granted at system, module or entity level.
  • Adding a comment or a reaction needs edit access, at the same levels.

Since 1.8 reading comments honours module-level and entity-level grants, not only system-wide viewer access, so a restricted user with a module or entity grant can see the discussion without a blanket system role.

When a builder previews a view that has no real data, comment threads show placeholder content: a realistic thread over the real record with sample commenters and text, so the layout can be judged. It never affects real comments.

All comment and reaction endpoints require authentication and the view and access checks above. Comment and reaction routes are served by the comments service under the comments API base (for example /api/comments); the token route by the RTC service.

PurposeMethod and path
List a record’s commentsGET /v1/{entity}/{relatedToId}
List comment attachmentsGET /v1/{entity}/{relatedToId}/attachments
Count a record’s commentsGET /v1/{entity}/{relatedToId}/count
Add a commentPOST /v1/{entity}/{relatedToId}
Edit a comment’s audiencePATCH /v1/{entity}/{relatedToId}/{commentId}
Mentions autocompleteGET /v1/comments/{entityId}/{entryId}/mentions-list?keyword=…
Audience autocompleteGET /v1/comments/audience-list?keyword=…
List reactions on a recordGET /v1/reaction/{entity}/{relatedToId}
Count reactionsGET /v1/reaction/{entity}/{relatedToId}/count
Add or change the caller’s reactionPUT /v1/reaction/{entity}/{relatedToId}
Remove the caller’s reactionDELETE /v1/reaction/{entity}/{relatedToId}
Get a call (Agora) tokenGET /api/rtc/{channel}/{role}?expiry=…

Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27