Introducing a new way to review your PRs.

Read the announcement

frappe / crm

Fully featured, open source CRM

View on GitHub

24 documents · Updated Nov 23, 2026

docs / crm-service-platform

CRM service platform

The CRM service platform is the Frappe application layer that connects the CRM client to site data and shared Frappe services. It exposes protected operations, serves the CRM shell and public capture forms, applies record rules, and supplies the configurable data model that the client uses for sales work.

Platform boundary

The crm Frappe app is organized around the FCRM, Lead Syncing, and Domain Enrichment modules. Its main boundary is the /crm route, while its service boundary is a set of whitelisted methods that the client calls through Frappe. App hooks connect these boundaries to permissions, document events, automation, scheduled work, installation, migration, booking routes, and external apps.

References: crm/modules.txt• L1-3 crm/hooks.py• L1-29 crm/hooks.py• L75-79 crm/hooks.py• L142-236 crm/hooks.py• L257-395 crm/hooks.py• L466-475

The platform uses Frappe's standard document model. CRM records are stored as DocTypes, and the client reads their metadata to build forms, lists, filters, kanban boards, and related-record views. This keeps the client focused on presentation while the service layer remains the source of record rules and document behavior.

References: crm/…/crm_lead.json• L1-12 crm/…/crm_deal.json• L1-9 crm/…/doc.py• L257-306

Request and page flows

CRM application boot

The CRM page checks that the current user can access the FCRM module before it returns a boot payload. That payload gives the client the site context, session protection data, route, time zone, translations, read-only state, setup state, and state options. An optional India Compliance dependency can add Indian state choices without making page boot fail when that dependency is absent or unavailable.

References: crm/…/crm.py• L11-25 crm/…/crm.py• L35-82

The following flow shows how a browser request becomes a ready CRM client session.

flowchart LR
    Browser[Browser requests /crm] --> Access[Check CRM access]
    Access -->|allowed| Boot[Build boot context]
    Access -->|denied| Error[Permission error]
    Boot --> Client[Start CRM client]
    Client --> Services[Call CRM service methods]

The app hooks also register /crm/<path:app_path> as a route to the CRM page. This lets the single-page client own its internal paths while Frappe still handles the request and session boundary.

References: crm/hooks.py• L75-79 crm/…/crm.py• L14-25 crm/…/crm.py• L35-58

Public capture forms

CRM forms provide a controlled public path for creating leads and deals. A form is a Frappe Web Form limited to CRM Lead or CRM Deal; CRM managers create and manage it through scoped service methods. The public page shows only published CRM forms, while managers can preview a draft with validation and no record creation.

References: crm/…/form.py• L20-21 crm/…/form.py• L324-375 crm/…/form.py• L395-500 crm/…/crm_form.py• L24-53

The form layer combines document metadata with author settings. It supports a selected set of field types, hides system-managed required fields behind defaults, and preserves field dependencies for conditional display and validation. Published submissions use Frappe's Web Form engine, then CRM record creation adds the CRM source and can create the related organization and primary contact.

References: crm/…/form.py• L34-73 crm/…/form.py• L207-229 crm/…/form.py• L527-570 crm/…/crm_form.py• L55-80

The following flow shows the two form paths and the CRM-specific work that follows a live submission.

flowchart TD
    Manager[CRM manager configures form] --> Draft[Draft or published Web Form]
    Visitor[Visitor opens CRM form] --> Published{Published?}
    Published -->|no, manager preview| Validate[Validate only]
    Published -->|yes| Submit[Frappe Web Form submission]
    Submit --> Enrich[Apply hidden defaults and CRM source]
    Enrich --> Related[Create or link organization and contact]
    Related --> Record[Save CRM lead or deal]
    Validate --> NoRecord[No CRM record]

Public link fields use Guest select permission rather than full document read access. A manager can grant this narrow access only for a DocType that a CRM form can reach, so a public form can list approved record names without opening arbitrary data.

References: crm/…/form.py• L106-122 crm/…/form.py• L257-321 crm/…/crm_form.py• L84-128

Booking routes

The platform exposes separate public booking routes alongside the CRM shell and capture forms. Booking permissions apply to booking records and booking pages, while scheduled hooks support guest reminders and cancellation when a related calendar event closes elsewhere.

References: crm/hooks.py• L75-79 crm/hooks.py• L142-159 crm/hooks.py• L365-370

Dashboard insights

The CRM dashboard turns lead and deal activity into role-aware measures and charts for a selected date range. It uses a saved layout when one exists and creates the default manager layout when needed, so the client can show a configurable view without changing the service boundary.

The dashboard exposes built-in counts, values, time measures, pipeline views, source views, and sales views. Other Frappe apps can add supported chart choices through the crm_dashboard_charts hook; the service validates contributed chart names and resolvers before the client can use them. Sales users are restricted to their own records, while sales managers and system managers can use the broader dashboard scope.

References: crm/…/dashboard.py• L19-61 crm/…/dashboard.py• L64-207 crm/…/dashboard.py• L210-254 crm/…/dashboard.py• L257-313

CRM home

CRM Home is the user's working summary for sales work. It combines personal or team scope with configurable layouts, counts, briefs, recent activity, follow-ups, replies, new leads, and other sales measures. Managers can use team views, while each user can keep a preferred landing page and morning-digest choice.

References: crm/…/home.py• L29-119 crm/…/home.py• L122-201 crm/…/digest.py• L98-109

The morning digest extends this summary beyond the browser. When enabled, it sends one local-time email with the user's due follow-ups, waiting replies, new assignments, and tasks due that day. It uses the same sales scope as Home and skips users who opt out or sites without an outgoing mail account.

References: crm/…/digest.py• L36-96 crm/…/digest.py• L127-134

Command palette

The command palette gives the user one permission-filtered entry point for finding leads, deals, contacts, and organizations. With no query it surfaces recent records and near-term work; with a query it also searches activity and opens the parent record that the user can read.

References: crm/…/command_palette.py• L19-44 crm/…/command_palette.py• L126-167 crm/…/command_palette.py• L229-252

Notification feed

The notification feed turns assignments, mentions, reminders, replies, and WhatsApp messages into a compact user-specific work queue. It provides unread counts, recent items, sender and record context, and routes that open the related CRM record and tab. Reading a group of notifications updates it as one user action.

References: crm/…/notifications.py• L9-77 crm/…/notifications.py• L116-168

Onboarding record selection

The onboarding service gives the client a stable starting record after setup. It first tries to keep the lead or deal created during onboarding when that record still exists and remains visible to the user; otherwise it falls back to the earliest available record of the requested kind. Leads must also remain unconverted for this selection.

References: crm/…/onboarding.py• L4-18 crm/…/onboarding.py• L21-33

CRM record model

Sales records

CRM Lead represents a person or prospect before conversion. It connects identity and contact details with an organization, source, territory, owner, status, products, communication state, service-level data, and status history. CRM Deal represents an opportunity and links to an organization, contacts, an optional lead, products, value, currency, forecast fields, owner, status, communication state, and service-level data.

Lead records can also carry a unique Facebook lead identifier and its source form identifier. These fields give lead syncing a stable link to an external capture source without changing the main sales lifecycle.

References: crm/…/crm_lead.json• L12-78 crm/…/crm_lead.json• L356-374 crm/…/crm_deal.json• L9-84

The two records share a deliberate lifecycle boundary. Lead conversion marks the lead as converted, creates or reuses its contact and organization, and creates a deal that carries over compatible information. Deal validation then maintains one primary contact, status-driven dates and probability, and optional forecasting requirements. Direct deal creation checks access before it can create the deal or any missing related customer records.

References: crm/…/crm_lead.py• L337-413 crm/…/crm_lead.py• L522-544 crm/…/crm_deal.py• L81-105 crm/…/crm_deal.py• L481-517

Customer records

CRM Organization is the company record that supplies shared business context for leads and deals. It stores the company identity, website, size, revenue, industry, territory, address, currency, and enrichment fields. Contact remains a standard Frappe DocType and is linked to CRM work through lead creation and deal contact rows.

References: crm/…/crm_organization.json• L26-87 crm/…/crm_deal.json• L166-170 crm/…/crm_lead.py• L214-274

Links between these records let the platform keep shared customer data consistent without forcing every record to be the same shape. A deal can use an existing organization and one or more contacts, while organization enrichment can fill empty company fields on a lead or deal.

References: crm/…/crm_deal.py• L209-219 crm/…/crm_deal.py• L410-472 crm/…/crm_lead.py• L276-302

Work and service records

The platform extends the core sales records with DocTypes for tasks, notes, call logs, notifications, status history, products, service-level agreements, invitations, and view settings. These records give the client durable places to store work on a record, measure response commitments, manage access, and preserve user preferences.

References: crm/…/crm_lead.json• L314-384 crm/…/crm_deal.json• L270-280 crm/…/crm_view_settings.json• L37-187

The activity timeline joins field changes, comments, email, calls, notes, tasks, and attachments into one record history. It respects readable fields and record permissions, and it carries lead history into a converted deal when the user can read that history.

References: crm/…/activities.py• L15-23 crm/…/activities.py• L26-142 crm/…/activities.py• L145-239 crm/…/activities.py• L242-254

Document events keep related work in step with record changes. Assignment and sharing follow owner changes, status changes create history, communications and comments can update CRM activity state, and integration events connect CRM records to calendar bookings, ERPNext, or messaging systems. The same event boundary emits named CRM events for automation flows, such as lead qualification, lead conversion, deal stage changes, won or lost deals, and overdue tasks.

References: crm/hooks.py• L257-352 crm/hooks.py• L161-236

Email and WhatsApp activity update the last inbound or outbound time on the related lead or deal. A newer inbound message marks the record as waiting for a reply and alerts its assignees; after lead conversion, the interaction state follows the current deal.

References: crm/…/interactions.py• L6-25 crm/…/reply_alerts.py• L21-60

WhatsApp can resolve a sender to an existing CRM record or create one configured record type for a new sender. It links the WhatsApp profile to matching CRM entities and warns before a user changes a lead or deal number that has an existing conversation.

References: crm/…/whatsapp.py• L13-17 crm/…/whatsapp.py• L25-104 crm/…/whatsapp.py• L131-179 crm/…/whatsapp.py• L219-284

Automation actions use these relationships to adjust lead data, convert leads, send messages, and create CRM notifications. Event subjects and correlation values identify the lead, deal, or message thread that a flow must follow, so the automation layer can act on the business record rather than only on the document that emitted the event.

References: crm/hooks.py• L161-236

Access and client contracts

Roles and record visibility

CRM access starts with the FCRM module and the System Manager, Sales Manager, or Sales User role. The Administrator is always allowed. Lead and deal visibility then follows ownership and assignment, with an optional sales hierarchy that expands a manager's view to the manager's team.

References: crm/…/__init__.py• L76-97 crm/…/org_hierarchy.py• L13-60 crm/…/fcrm_settings.json• L89-95

The platform applies these rules in both list queries and single-record checks. A user can therefore see a record in the client only when the same ownership, assignment, role, and hierarchy rules allow the related server operation.

References: crm/hooks.py• L142-159 crm/…/org_hierarchy.py• L63-104

Data import access

Data Import is the shared Frappe path for loading CRM records in bulk. The platform limits sales-role imports to CRM sales DocTypes and contacts, while other roles that already have Data Import access keep their wider Frappe scope.

Sales managers can manage import records across that CRM scope. Sales users can create imports and can work with their own import records. The same boundary protects both the import list and each import document, so a user cannot bypass the scope through a direct request.

References: crm/…/data_import.py• L6-34 crm/hooks.py• L142-159 crm/install.py• L702-718

User account and CRM membership

The user service manages the account actions that affect a CRM session and the role changes that grant CRM membership. Password changes require an authenticated user, verify the current password, enforce the site's password policy, and limit repeated attempts. The service can also identify provisioned users who need a password while leaving passwordless SSO and LDAP users unchanged.

References: crm/…/user.py• L8-111

CRM managers add or remove users by changing the supported CRM roles. Role changes also control module access and protect system-manager accounts; a user cannot remove their own CRM access, and a sales hierarchy must be cleared before a user can become a sales user. Role Profile ownership is respected because direct role edits would be replaced when Frappe validates the user.

References: crm/…/user.py• L114-236 crm/…/user.py• L246-254

Metadata-driven views

The client uses service responses to discover what it can show and how it should show it. Metadata supplies fields, labels, field types, filters, default rows, custom columns, kanban settings, grouped values, saved views, and form scripts. The result is a common client pattern that can support several CRM DocTypes without hard-coding every field into each screen.

References: crm/…/doc.py• L24-51 crm/…/doc.py• L54-109 crm/…/doc.py• L257-367 crm/…/doc.py• L370-553

View preferences have two levels. CRM View Settings stores saved list, group, or kanban choices for a DocType and user, while CRM Global Settings stores shared choices such as quick filters. CRM Fields Layout supplies named layouts for quick entry, side panels, data fields, grid rows, and required fields.

References: crm/…/crm_view_settings.json• L76-187 crm/…/crm_fields_layout.json• L15-45 crm/…/doc.py• L163-253

Document services also maintain the links that connect CRM work. They can discover direct and dynamic linked records, clear references when a link is removed, and protect bulk deletion by checking delete access before cleanup and handling linked documents first.

References: crm/…/doc.py• L695-741 crm/…/doc.py• L744-880 crm/…/doc.py• L883-929

Service boundaries

The backend service surface is split by responsibility rather than by one large endpoint. Record reads, view data, linked-record handling, and safe document changes live in document and view services. Form services manage public capture configuration. Onboarding services choose the first usable sales records, while user services manage account safety and CRM membership. Other API modules handle activities, comments, sessions, notifications, settings, WhatsApp, dashboards, Home, search, digests, bookings, and events. The related API and event services page describes these operations in detail.

The data model and its setup are a separate concern from request handling. The related CRM configuration and metadata page explains the DocTypes, defaults, layouts, scripts, hooks, and migration rules that shape this platform.

References: crm/…/__init__.py• L12-19 crm/…/doc.py• L24-51 crm/…/doc.py• L695-929 crm/…/onboarding.py• L4-33 crm/…/user.py• L8-18 crm/…/event.py• L23-42 crm/…/home.py• L32-185 crm/…/command_palette.py• L27-44 crm/…/digest.py• L36-109 crm/hooks.py• L75-79

App lifecycle

Installation and migration

Installation creates the baseline CRM experience instead of leaving a new site with empty status and view data. It seeds lead, deal, and communication statuses, lookup values, layouts, quick filters, standard menu items, scripts, dashboards, assignment fields, and enrichment mappings. It also grants the sales roles the limited Data Import rights needed for CRM records.

References: crm/install.py• L20-43 crm/install.py• L46-159 crm/install.py• L168-271 crm/install.py• L504-537 crm/install.py• L702-718 crm/hooks.py• L101-123

Migration keeps standard dropdown entries and other app-managed defaults aligned with the current app version. It also normalizes the visit state of existing CRM records. The post-model-sync patch marks older leads and deals as seen for enabled users with CRM roles and for Administrator, so records created before visit tracking do not all appear as new when the feature becomes active.

References: crm/patches.txt• L7-46 crm/…/set_seen_for_existing_deals_and_leads.py• L8-46 crm/…/session.py• L4-19

The migration set also applies the Data Import permission boundary to existing sites. This keeps the install path and upgrade path aligned when sales-role import access is introduced.

References: crm/patches.txt• L43-46 crm/…/add_data_import_permissions.py• L1-5 crm/…/data_import.py• L6-34

Uninstallation removes the custom fields that CRM adds to the standard Email Template DocType. This lifecycle boundary matters because CRM extends shared Frappe records as well as owning its own DocTypes.

References: crm/uninstall.py• L7-23 crm/install.py• L285-327

Scheduled behavior

The scheduler gives the platform time-based behavior without requiring a browser to stay open. It sends event reminders, guest booking reminders, and overdue-task automation events; sends the optional morning digest; expires old invitations; removes old view versions; captures feature state; and runs lead-source synchronization at fixed periods. It also cancels bookings that close elsewhere and sends CRM task follow-up reminders.

References: crm/hooks.py• L362-395 crm/…/digest.py• L36-96 crm/…/event.py• L23-42 crm/…/crm_invitation.py• L108-119

Configuration effects

FCRM Settings is the site-wide control point for product behavior. It governs forecasting, sales hierarchy permissions, currency and exchange-rate service, timeline display, communication status changes, event reminders, calendar defaults, branding, standard dropdown items, and the morning digest. Changes to forecasting also change deal field requirements and configured deal layouts, so settings can alter both validation and the client experience.

References: crm/…/fcrm_settings.json• L39-222 crm/…/fcrm_settings.py• L46-113 crm/…/fcrm_settings.py• L115-185 crm/…/digest.py• L36-40

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the /crm route, boot payload, client startup contract, and access check aligned when changing page boot behavior.
  • Keep the CRM, form, and booking routes aligned with their public page access and permission hooks.
  • Keep the allowed form DocTypes, hidden mandatory defaults, public form route, and Web Form submission enrichment aligned when changing form support.
  • Keep role permissions, query conditions, and single-record permission checks aligned when changing lead, deal, or booking visibility.
  • Keep DocType fields, default list or kanban data, saved view metadata, and configurable layouts aligned when changing a CRM record field.
  • Keep external lead identifiers and lead-source synchronization aligned when changing fields used by lead capture integrations.
  • Keep installation defaults, migration synchronization, and settings-driven layout or validation changes aligned when changing CRM configuration.
  • Keep Data Import role permissions, allowed reference DocTypes, ownership rules, install defaults, and migration patches aligned when changing CRM imports.
  • Keep dashboard layout items, selectable chart options, role-based data scope, and contributed chart resolvers aligned when changing dashboard behavior.
  • Keep Home widget scope, role defaults, saved layout choices, digest sections, and user landing-page settings aligned when changing the CRM Home experience.
  • Keep command-palette search targets, activity parent resolution, recent-record permissions, and task or SLA windows aligned when changing work discovery.
  • Keep notification record links, route tabs, reply sender sources, unread updates, and bulk mark-as-read behavior aligned when changing notifications.
  • Keep interaction timestamps, converted-lead handoff, reply recipients, and email or WhatsApp event hooks aligned when changing communication state.
  • Keep WhatsApp account append actions, profile links, phone matching, recipient-change confirmation, and CRM role access aligned when changing WhatsApp capture.
  • Keep booking permissions, public routes, event sync hooks, guest reminders, and cancellation jobs aligned when changing booking behavior.
  • Keep the onboarding-created record handoff, visibility fallback, and lead conversion rule aligned when changing first-record selection.
  • Keep password policy checks, login attempt tracking, SSO exclusions, and session setup behavior aligned when changing user account flows.
  • Keep CRM role transitions, module blocking, system-manager safeguards, role-profile ownership, and sales hierarchy records aligned when changing user membership.
  • Keep linked-record discovery, read and delete checks, reference cleanup, and bulk-delete behavior aligned when changing document deletion or unlinking.
  • Keep automation action names, event subject keys, correlation options, document emitters, and scheduled emitters aligned when changing automation behavior.
  • Keep the _seen backfill patch, its post-model-sync registration, and the CRM user role set aligned when changing visit tracking or CRM access roles.
  • Keep hook registrations and scheduler entries aligned with document behavior when moving an event, reminder, integration, or background task.

Important failure modes

TriggerConsequenceGuard
A user has a CRM role but the FCRM module is not allowed for the userThe CRM page rejects access before the client startscheck_app_permission checks both the allowed module and CRM roles.
A sales user opens a Data Import record owned by another user or for a non-CRM DocTypeThe import is not visible or the operation is rejectedData Import rules limit sales users to their own imports and to CRM DocTypes and contacts.
A published form has a hidden required field without a defaultA public submission cannot create its lead or dealPublishing validates all hidden defaults first.
A public Link field targets a DocType without Guest select accessThe form shows no usable choices or may expose the wrong access level if broadenedLink access is limited to form targets and grants select only.
A booking page or booking record bypasses its CRM permission hookA user can see or change booking data outside the intended access scopeBooking and booking-page permissions are registered in both query and single-record checks.
A contributed dashboard chart has a missing field, unsupported type, duplicate value, or bad resolverThe chart is not offered to the clientDashboard chart contributions are limited to supported types and validated before they are merged.
Forecasting is enabled without expected deal value or closure dateDeal validation rejects the saveThe settings change adds the required fields and deal validation enforces them.
A lead or deal status is changed to a lost status without a reasonThe record save failsRecord validation requires a lost reason and notes when the reason is Other.
A boot-time optional state source failsThe CRM page would fail to load if the error escaped bootState lookup degrades to an empty state map.
A synced lead does not retain its external lead identifierA later lead-sync run can create a duplicate or fail to match the existing leadThe external lead identifier is unique on the lead record.
The onboarding record is deleted, hidden, or converted before the client asks for itThe client starts with the oldest remaining usable record or no recordSelection checks current visibility and conversion state before using the preferred name.
A morning digest is enabled without an outgoing email accountThe scheduled digest cannot send and users receive no summaryThe scheduler checks for an outgoing account before it enqueues digest work.
A user has opted out or the digest already ran in the user's local dayA second digest is not sentThe digest checks the user default and local-time run marker.
A command-palette activity hit points to a record the user cannot readThe hit is removed or redirected to a readable converted dealActivity results are post-filtered and parent records are checked before routing.
An inbound email or WhatsApp message is older than the stored interactionIt can move the record back to an incorrect waiting stateInteraction timestamps are written only when the new time is later.
A lead or deal number changes while it has a WhatsApp conversationFuture replies no longer appear on the old recordThe save is blocked until the user confirms the recipient change.
A user requests notification data for another userThe other user's notification history is not returnedNotification queries always filter by the current session user.
A user submits the wrong current password too oftenPassword change is blocked and the account may enter the Frappe lockout pathLogin attempt tracking and API rate limiting guard the password endpoint.
A passwordless SSO or LDAP user is treated as needing a local passwordThe client shows an unnecessary password setup promptPassword setup excludes disabled password login, LDAP, and users with another active identity provider.
A non-system manager assigns a protected role or changes a system managerThe role change is rejectedRole assignment checks the actor and target roles before saving the user.
A user role is managed by a Role ProfileDirect CRM role changes are rejected because Frappe would restore the profile rolesThe service requires the Role Profile to be changed instead.
A sales user still has subordinate users in the sales hierarchyThe role change leaves access structure inconsistentThe user must be removed from the relevant hierarchy before becoming a sales user.
A linked document cannot be written during unlink or bulk deletionIts reference remains or the cleanup is skippedThe service checks write permission and handles missing or invalid linked documents safely.
An automation event uses a subject or correlation key that does not match its emitterA flow can trigger for the wrong record or fail to correlate the eventHook metadata defines supported subject and correlation keys for each CRM event.

Key files

FileWhy to read it
crm/hooks.pyApp routes, permissions, booking access, automation contracts, document events, scheduler jobs, installation hooks, and migration hooks.
crm/…/crm.pyCRM page access gate and client boot contract.
crm/…/__init__.pyApp access rules, invitations, translations, and shared file operations.
crm/…/form.pyCRM form scope, configuration boundary, public submission enrichment, and hidden defaults.
crm/…/doc.pyMetadata-driven list, filter, kanban, grouping, assignment, linked-document, and bulk document services.
crm/…/activities.pyPermission-aware activity timeline for leads and deals.
crm/…/home.pyCRM Home layouts, role scope, briefs, counts, and widgets.
crm/…/digest.pyScheduled morning summaries and their relation to Home work sections.
crm/…/command_palette.pyPermission-filtered record, activity, task, and SLA discovery.
crm/…/notifications.pyUser notification feed, unread state, sender context, and CRM routes.
crm/…/interactions.pyCommunication timestamps, waiting-reply state, and converted-lead handoff.
crm/…/reply_alerts.pyReply notifications for users assigned to CRM records.
crm/…/whatsapp.pyWhatsApp access, sender capture, profile links, interaction state, and recipient safeguards.
crm/…/onboarding.pyStarting-record selection for the client onboarding flow.
crm/…/user.pyPassword safety, password setup checks, CRM role membership, module access, and sales hierarchy safeguards.
crm/…/dashboard.pyRole-aware dashboard layout, built-in CRM measures, and app-contributed chart contract.
crm/…/data_import.pyCRM Data Import scope, role limits, and ownership rules.
crm/…/crm_lead.pyLead validation, ownership, conversion, and links to customer records.
crm/…/crm_deal.pyDeal validation, permission-aware creation, contacts, forecasting, currency, and organization links.
crm/…/fcrm_settings.pySite-wide settings behavior and settings-driven layout changes.
crm/install.pyBaseline statuses, lookup data, layouts, scripts, dashboards, custom fields, and role permissions.
crm/patches.txtOrder and migration phase for app data, schema changes, and permission changes.
crm/…/set_seen_for_existing_deals_and_leads.pyBackfill that prevents pre-tracking leads and deals from appearing unvisited.
crm/…/add_data_import_permissions.pyUpgrade step that applies CRM Data Import permissions to existing sites.
crm/…/crm_lead.jsonLead data contract, external lead-sync identifiers, and related tables.
crm/…/crm_deal.jsonDeal data contract and related tables.
crm/…/crm_organization.jsonOrganization data contract and shared company context.