- API
- Global constants
- Substitution rule object.
- Getting started [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Manage types
- Global context and isolation
- Manage apps
- Batch actions with app items
- Manage external services
- Scripts in widgets
- Web components
- Access permissions
- Getting started with processes
- Getting started with signatures
- Getting started with file previews
- Getting started with the organizational chart
- Getting started with users and groups
-
Getting started with the
Table data type -
Getting started with the
Category data type - Dynamic event type calculation
- Typical use cases
-
API
- Object types
- Data types
-
Global constants
- Application
- ApplicationUserProfile
- ApplicationWithBatcher
- ApplicationWithParams
- BrandingSettings
- CompanyInfo
- Converter
- Directories
- Files
- HttpApiHandler
- HttpApiRequest
- ICache
- IStorage
- MailMessage
- Mailbox
- OrganisationStructure
- OrganisationStructureTree
- Portal
- PortalPageInfo
- PortalSettings
- Portals
- Process
- Processes
- ProductionSchedule
- Reminders
- Replacements
- ReplacementsRules
- Serial
- ServerCollection
- Service
- SignupUrlParams
- SystemCollections
- SystemCollectionsWithEvents
- SystemCollectionsWithFilterEvents
- Templater
- Translator
- UserGroups
- Users
- Watermarks
- Report
- Reports
- SR
- Work with apps
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
- Company configuration metadata
- Activity stream metadata
Report a mistake
There is a mistake in the following text:
Feedback sent successfully
Thank you for your input
Substitution rule object.
Used to create substitution rules.
Hierarchy
Methods
create
The method initializes a new substitution rule.
After entering the information, you need to save the rule by calling the ReplacementRuleItem.save method.
// Create a substitution rule for the employee const rule = System.replacements.rules.create(); rule.data.__name = 'Rule'; rule.data.absent = Context.data.__createdBy; rule.data.replacement = Context.data.substitution; rule.data.filter = { query: `[__name] = ${Context.data.taskName} or [dueDate] < @p1`, params: { p1: new Datetime ('2025-10-01T10:10:10') }, }; await rule.save();Returns ReplacementRuleItem
search
The method allows you to search for substitution rules.
The Search object is used to retrieve collection items:
const rules = await System.replacements.rules.search() .where (r => r.absent.eq(Context.data.absent_user)) .all();Returns ReplacementRulesSearch
Methods