Skip to Content
🔥 New in 1.12: streak challenges and custom badge art. Read the release notes

Rules Field Reference

This page documents all fields available when creating or editing a Rule in Novigem.

Rule Detail View

Basic Information

FieldDescription
NameThe display name of the rule. Use a clear, action-oriented name such as “New Lead Created” or “Quarterly Deal Closed”.
Challenge (Optional)The challenge this rule contributes progress toward. A rule links to at most one challenge, and can be left unlinked. An unlinked rule still awards points, it just moves no challenge progress. See Rules without a challenge.
Applies toWho the rule can award. Organization-wide (the default) means everyone; choosing a team limits awards to members of one Salesforce Public Group. The picker only offers teams added on the Teams card in Novigem Admin > Settings > General, and is hidden while there are none. When the rule is linked to a challenge, this field is replaced by a read-only “Set by the linked challenge” line: the challenge’s audience decides who the rule can award, and the rule’s own team is ignored.
DescriptionExplains what behavior this rule rewards. Example: “Award points for creating a new lead.”

Trigger Configuration

FieldDescription
Salesforce ObjectThe object whose records trigger this rule. Lead, Opportunity, Task, and Event work out of the box via the packaged Apex triggers. Any other Salesforce object can be registered first under Novigem Admin > Settings > General > Tracked Objects > Add Object, and then also needs a record-triggered Flow. See Gamify a new object.
Trigger TypeWhen the rule fires: Create (new records) or Update (modified records).

Always create and edit rules through the Rule Builder. The underlying field Rule__c.Salesforce_Object__c is a picklist that contains only the four built-in objects, so opening a rule from the standard record detail page or editing it inline from a list view can silently wipe a custom object’s value and stop the rule firing.

For task completion, use Trigger Type “Update” with a condition checking that Status equals “Completed”.

Points Configuration

FieldDescription
Award Points ToWho receives the points. See Actor Modes below for details.
PointsThe number of points awarded when this rule matches.

Actor Modes

The Award Points To field determines which user receives the points when a rule fires. Choose the mode that best matches the behavior you want to reward.

ModeWho Gets PointsBest For
Record OwnerThe user in the record’s OwnerId fieldPipeline ownership, account management, lead follow-up
Last Modified ByThe user who made the edit that triggered the ruleData hygiene, field updates, collaborative record maintenance
Created ByThe user who originally created the recordProspecting, activity logging, lead generation

Tip: Most rules should use Record Owner. Use Last Modified By when you want to reward the person who performed the action rather than the person who owns the record. Use Created By for activity-based rules like logging calls or creating tasks.

Record Owner reads the record’s OwnerId field. Some objects do not have one, master-detail children being the common case, and on those the rule matches but awards nothing. Use Created By or Last Modified By on objects without an owner.

Example scenarios:

  • A manager reassigns a lead, then the new owner updates the status: Record Owner rewards the new owner; Last Modified By also rewards the new owner (they made the edit).
  • An SDR creates a lead that is later converted by an AE: Created By rewards the SDR; Record Owner rewards whoever owns the lead at conversion time.
  • Multiple reps update opportunity fields for data cleanup: Last Modified By rewards each person for their individual edits.

Conditions

The Conditions section defines which records qualify for points. Conditions are stored as JSON and filter on fields of the selected Salesforce Object.

An empty conditions array means all records of the selected object and trigger type will match:

{ "conditions": [] }

The engine automatically prevents duplicate awards for the same action via dedupe keys. You don’t need to add conditions to prevent gaming.

Condition Structure

Each condition specifies a field, an operator, and a value:

{ "conditions": [ { "field": "StageName", "operator": "equals", "value": "Closed Won" } ] }

Multiple conditions are evaluated with AND logic by default. All must be true for the rule to match. Set "logic": "OR" on the same level to match when any one is true:

{ "conditions": [ { "field": "StageName", "operator": "equals", "value": "Closed Won" }, { "field": "Amount", "operator": "greaterThan", "value": "10000" } ] }

Condition Groups

To mix AND and OR, wrap conditions in groups. Every group has its own logic (AND or OR, default AND), which combines that group’s conditions and any groups nested inside it. In this example the top level combines two groups with OR, and each group uses the default AND internally:

{ "logic": "OR", "groups": [ { "conditions": [ { "field": "StageName", "operator": "equals", "value": "Closed Won" } ] }, { "conditions": [ { "field": "StageName", "operator": "equals", "value": "Negotiation" }, { "field": "Amount", "operator": "greaterOrEqual", "value": "50000" } ] } ] }

This example matches opportunities that are either Closed Won or in Negotiation with an amount of $50,000+.

Groups can sit inside groups, and a level can hold both conditions and groups. In the Rule Builder, use Add Group to add a nested group; the builder allows two levels of nesting below the top level.

{ "logic": "AND", "conditions": [ { "field": "StageName", "operator": "equals", "value": "Closed Won" } ], "groups": [ { "logic": "OR", "conditions": [ { "field": "Type", "operator": "equals", "value": "New Customer" }, { "field": "Amount", "operator": "greaterOrEqual", "value": "50000" } ] } ] }

This matches Closed Won opportunities that are either a new customer or worth $50,000+.

Comparing two fields

A condition can compare a field with another field on the same record instead of a fixed value. Add "valueType": "field" and put the other field’s API name in value:

{ "conditions": [ { "field": "Amount", "operator": "greaterThan", "value": "ExpectedRevenue", "valueType": "field" } ] }

In the Rule Builder, click Compare to a field on the condition row. The toggle shows once a field and a supported operator are picked.

  • Only equals, notEquals, greaterThan, lessThan, greaterOrEqual, and lessOrEqual are allowed
  • The compared field must be on the same record. Relationship paths such as Account.AnnualRevenue are rejected
  • Both fields must be of comparable types (number with number, date with date, text with text, and so on). Ordering operators only work on numbers and dates
  • If either field is blank, the condition never matches, not even notEquals
  • Leaving out valueType, or setting it to "literal", compares against the fixed value as usual

Relationship Fields

You can reference fields on related objects using dot notation:

{ "conditions": [ { "field": "Account.Industry", "operator": "equals", "value": "Technology" } ] }

Operators Reference

The rule engine supports 14 operators for building conditions. The Rule Builder UI shows operators relevant to the selected field type automatically.

Comparison Operators

OperatorAliasesDescriptionExample ValueWorks With
equalseq, =Field value matches. Text is compared without regard to case"Closed Won"All field types
notEqualsneq, !=Field value does not match"Closed Lost"All field types
greaterThangt, >Field value is greater than"10000"Number, Currency, Percent, Date
lessThanlt, <Field value is less than"5"Number, Currency, Percent, Date
greaterOrEqualgte, >=Field value is greater than or equal to"100"Number, Currency, Percent, Date
lessOrEquallte, <=Field value is less than or equal to"50"Number, Currency, Percent, Date

Date values

Conditions on Date and Datetime fields take either a fixed ISO date ("2026-05-28") or a relative date token that is re-evaluated every time the rule runs:

{ "field": "CloseDate", "operator": "greaterOrEqual", "value": "START_OF_QUARTER" }

In the Rule Builder, select Use relative date on the condition row to enter a token instead of picking a calendar date. See Date Tokens for the full list, range patterns, and Salesforce report filter equivalents.

Text Operators

OperatorDescriptionExample ValueWorks With
containsField value contains the substring"renewal"Text, Text Area, Email, Phone, URL
startsWithField value starts with the string"ACME"Text, Text Area, Email, Phone, URL
endsWithField value ends with the string"Corp"Text, Text Area, Email, Phone, URL

contains, startsWith, and endsWith ignore case.

Length and word count

Use these to require substance, for example a call note of real length rather than just “not blank”.

OperatorAliasesShown in the builder asDescriptionExample Value
lengthGreaterOrEquallengthGteCharacter Count At LeastText has at least this many characters"100"
lengthLessOrEquallengthLteCharacter Count At MostText has at most this many characters"500"
wordCountGreaterOrEqualwordCountGteWord Count At LeastText has at least this many words"15"

These work with Text, Text Area, Email, Phone, and URL fields. The value must be a number of zero or more. Before counting, the engine trims leading and trailing spaces and treats non-breaking spaces as normal spaces, so padding a field with spaces does not pass a minimum. Words are counted by splitting on whitespace. A blank field counts as zero.

Character count can be gamed with spaced-out letters, and word count with one long unbroken string. Requiring both closes each other’s gap.

Blank checks

OperatorDescriptionExample ValueWorks With
isBlankCheck whether a field is blank or not"true" to match blank, "false" to match non-blankAll field types

isBlank uses a boolean string value. Set it to "true" to match fields with no value, or "false" to match fields that have a value.

Change detection

OperatorDescriptionExample ValueWorks With
isChangedField value changed from its previous value"true" (default if omitted)Update trigger only

isChanged compares the field’s old and new values within an Update trigger. If the value is omitted, it defaults to true. Set it to "false" to match when the field did not change.

isChanged only works with Update trigger type. On Create triggers there is no old value, so this operator is meaningless there.

Example · Award points when the stage field changes (any change):

{ "conditions": [ { "field": "StageName", "operator": "isChanged", "value": "true" } ] }

Example · Award points when stage changes to Closed Won:

Combine isChanged with equals to detect a specific change:

{ "conditions": [ { "field": "StageName", "operator": "isChanged", "value": "true" }, { "field": "StageName", "operator": "equals", "value": "Closed Won" } ] }

Example · Award points when a previously blank field gets filled in:

{ "conditions": [ { "field": "NextStep", "operator": "isChanged", "value": "true" }, { "field": "NextStep", "operator": "isBlank", "value": "false" } ] }

Limits

LimitWhat happens when exceeded
50 conditions per groupThe rule errors when it is evaluated and awards nothing. Split the conditions into nested groups.
20,000 characters of conditions JSONSame: the rule errors and awards nothing.
200 active rules per object and trigger typeOnly the 200 oldest eligible rules (by created date) are evaluated. The rest are skipped silently.

Rule Status

Rules can be set to:

StatusDescription
ActiveThe rule is evaluating and awarding points.
DeactivateThe rule is ignored and never awards points.

Common Rule Patterns

Award points for creating leads

  • Salesforce Object: Lead
  • Trigger Type: Create
  • Award Points To: Record Owner

Award points for closing deals

  • Salesforce Object: Opportunity
  • Trigger Type: Update
  • Conditions: StageName isChanged = true AND StageName equals "Closed Won"

Award points for completing tasks

  • Salesforce Object: Task
  • Trigger Type: Update
  • Conditions: Status equals "Completed"

Award points for logging meetings

  • Salesforce Object: Event
  • Trigger Type: Create

Award points for high-value closed deals

  • Salesforce Object: Opportunity
  • Trigger Type: Update
  • Conditions: StageName isChanged = true AND StageName equals "Closed Won" AND Amount greaterOrEqual "50000"

Award points for updating next steps

  • Salesforce Object: Opportunity
  • Trigger Type: Update
  • Conditions: NextStep isChanged = true

Award points on a custom object

  • Salesforce Object: the registered custom object, for example Site_Visit__c
  • Trigger Type: Create
  • Award Points To: Record Owner, or Created By if the object has no OwnerId
  • Prerequisites: the object is registered under Novigem Admin > Settings > General > Tracked Objects, and a record-triggered Flow on that object calls the invocable action Evaluate Record with Novigem (category Novigem) with Record = {!$Record} and Prior Record = {!$Record__Prior}. Without the Flow the rule never fires, because the packaged Apex triggers only cover Opportunity, Lead, Task, and Event.
  • Create and edit this rule in the Rule Builder only, see the picklist warning above.

Best Practices

  • Use descriptive names that explain the behavior being rewarded
  • Deactivate rules while configuring, then activate when ready
  • Choose the appropriate Actor Mode for your use case (usually Record Owner)
  • Test rules in a sandbox before activating in production
  • Combine isChanged with equals for stage-based rules to prevent points on repeated saves without actual changes
  • Combine conditions to be specific: broad rules create noise
  • Never edit a rule from the record detail page or a list view, use the Rule Builder

Next Steps

Last updated on