Activity — for the developer
Updated
The office Activity is the CRM 4.3.0 document (optional Opportunity
link from CRM 4.4.0). It is not AgentTask
(field Call/Collect/Other) and not the Internal Activity widget on a form.
User: log a call or meeting. Inbox contract: office work items.
Objects#
| Name | Kind |
|---|---|
Activity |
a document with no table part |
| Subtypes | Open / Done / Cancelled |
CompleteActivity |
Open → Done |
CancelActivity |
Open → Cancelled |
| Kind | String: Call, Meeting, Email, Note |
Agent |
SalesPerson. Inbox assignee is SalesPerson.UserId |
RelatedWorkItem |
Guid, hidden, stamped after EnsureOpen |
There are no transaction movements. requiresPosting: true is there only so that
the subtype change goes through the posting pipeline (same as SalesLead).
Work item key: CompleteActivity:{activityMetaId}. No UserId on the agent →
no work item; the activity still saves for the desk. CancelActivity runs
CancelBySourceAsync in OnAfterPost so the command-journal hook cannot
complete a cancelled row.
AgentTask emits CompleteTask:{id} the same way. Do not merge the kinds.
Customer 360#
CRM places three record-documents tiles on Inventory Customer (filter
Customer = the open record): Activities, Pipeline (SalesLead /
Opportunity / SalesQuotation / SalesOrder), Field (AgentTask /
AgentVisit). Lite without the CRM model has none of those tiles.
Activity.Opportunity is optional (Guid EDT RefOpportunity), same pattern as
Activity.Lead. Q2 does not auto-fill it from the lead.
The record-documents widget type is a Core seed. It is not auto-assigned:
CRM owns the Customer assignment and the placements (Activities, Pipeline, Field, Cases).
The ActivityTest test (the Business layer.Sales and receivables group).
Public collection Activities is read-only (CRM 4.9.0). Complete and cancel stay document commands.
Same topic for other readers: User