Ledger field reference
Every time a rule matches, Novigem creates a Ledger Entry record. These entries are the source of truth for points, leaderboard rankings, and challenge progress. They cannot be edited or deleted.
Not every entry comes from a rule. Novigem also writes ledger entries itself:
| Entry | Rule | Challenge | Source Object / Source Record Id | Points |
|---|---|---|---|---|
| Rule award | The rule | The rule’s challenge, or blank | The triggering object and record | The rule’s points |
| Completion marker | Blank | The completed challenge | Challenge__c / the challenge’s Id | 0 |
| Completion bonus | Blank | The completed challenge | Challenge__c / the challenge’s Id | The challenge’s Completion Bonus |
| Battle win bonus | Blank | The battle | Challenge__c / the battle’s Id | The battle’s Completion Bonus |
| Streak milestone bonus | Blank | Blank | Blank | The milestone bonus |
The 0-point completion marker is written on every challenge completion, whether or not the challenge has a bonus or badge. It stops the same completion being processed twice. Because it carries no points, it changes no totals.
Entry fields
| Field | API name | Type | Description |
|---|---|---|---|
| User | User__c | Lookup (User) | The user who earned the points. Set by the rule’s Actor Mode. |
| Rule | Rule__c | Lookup (Rule__c) | The rule that fired. Blank on every entry Novigem writes itself (completion, battle win, streak milestone). |
| Challenge | Challenge__c | Lookup (Challenge__c) | The challenge this entry contributes toward. Blank if the rule is not linked to a challenge, and on streak milestone entries. |
| Source Record Id | Source_Record_Id__c | Text | The ID of the Salesforce record that triggered the rule (the Opportunity, Task, etc.). On completion and battle win entries, the challenge’s Id. Blank on streak milestone entries. |
| Source Object | Source_Object__c | Text | The API name of the object that triggered the rule, for example Opportunity or Site_Visit__c. Challenge__c on completion and battle win entries. Blank on streak milestone entries. |
| Points | Points__c | Number | Points awarded. Matches the value set on the rule, or the bonus amount on completion, battle win, and streak entries. 0 on the completion marker. |
| Dedup Identifier | Dedup_Identifier__c | Text (Unique) | Prevents duplicate awards. See below. |
| Occurred Date Time | Occurred_Date_Time__c | DateTime | When the award happened. |
| Created Date | CreatedDate | DateTime | Standard Salesforce created date. |
Deduplication
Every entry has a unique Dedup Identifier. The shape depends on who wrote the entry:
| Entry | Dedup Identifier |
|---|---|
| Rule award | {userId}_{challengeId}_{ruleId}_{sourceRecordId} |
| Rule award on a Recurring challenge | {userId}_{challengeId}_{ruleId}_{sourceRecordId}_{periodStart} |
| Completion marker | completion_event_{challengeId}_{userId} |
| Completion bonus | completion_bonus_{challengeId}_{userId} |
| Battle win bonus | battle_win_{battleId}_{userId} |
| Streak milestone bonus | STREAK-MILESTONE|{userId}|{streakRunStart}|{milestone} |
- If a rule is not linked to a challenge, the challenge portion is
GENERAL. {periodStart}is the start of the current period as a number. On a Recurring challenge the completion marker and completion bonus keys also end in_{periodStart}. This is what lets a participant earn the same rule on the same record, and complete the challenge again, once per period.- For a streak milestone, the run start date and the milestone together mean a rep can earn the same milestone again on a later streak run, but never twice within one run.
When the engine processes a batch, it first queries for any existing entries with the same dedup keys, filters them out, and then inserts. A DUPLICATE_VALUE database exception is caught as a second safety net.
The result: the same user triggering the same rule on the same record earns points once, no matter how many times the record is saved. On a Recurring challenge that is once per period.
Deduplication is automatic. No configuration needed.
Immutability
Ledger entries cannot be edited or deleted. A trigger on Ledger_Entry__c rejects every update and delete, and rejects any insert that does not come from the Novigem engine. That includes System Administrators, Novigem Admin users, Data Loader, and Flows. There is no way to add a manual adjustment entry.
If scoring needs to be corrected, adjust the rule going forward. Past entries stay as-is.
This is intentional. The ledger is an audit trail: consistent and trustworthy.
Reporting
Ledger entries are standard Salesforce records, so you can build reports with the built-in reporting tools:
- Points by user: group by
User__c, sumPoints__c - Points by challenge: group by
Challenge__c, sumPoints__c - Activity over time: group by
Occurred_Date_Time__cweekly or monthly - Which rules fire most: group by
Rule__c, count entries
Building a report that combines ledger data with pipeline metrics is a good way to show the correlation between Novigem activity and business outcomes.
Coaching signals read the ledger
Coaching signals are derived from ledger history. The nightly job compares each rep’s recent entries against their own past entries using fixed thresholds, then writes what it finds to Performance_Signal__c.
A rep with no ledger entries produces no signals. That is the usual explanation for an empty coaching feed or a blank row in Team Pulse: nothing has been awarded to that user yet, so there is no history to compare against.
See also
- Core concepts: Ledger
- Rules field reference: how rules create ledger entries
- Challenges field reference: how challenges use ledger data for progress
- Troubleshooting