- Home [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]
- Getting started
- Use cases
-
API
- Object types
- Data types
- Global constants
-
Work with apps
- ApplicationBatchDeleteBuilder
- ApplicationBatchSaveBuilder
- ApplicationBatchSaver
- ApplicationBatchUpdateBuilder
- ApplicationBatchUpdater
- ApplicationBatcher
- ApplicationFieldOperand
- BaseFieldOperand
- BaseGlobalFilters
- ComparableFieldOperand
- ContextOperand
- DirectoriesSearch
- DocflowSettings
- FieldArrayOperand
- FieldOperand
- FilesSearch
- FolderSettings
- GlobalFilters
- GlobalFiltersWithWhere
- LineApplicationFieldOperand
- MailMessageSearch
- NomenclatureRegistrationSettings
- OrganisationStructureSearch
- PhoneFieldOperand
- ProcessInstanceSearch
- ProcessInstanceTaskSearch
- RefItemFieldOperand
- RegistrationSettings
- ReminderSearch
- ReplacementSearch
- ReportSearch
- ResetSettings
- Search
- SerialData
- SerialSettings
- SignatureSettings
- StatusHistorySearch
- StringFieldOperand
- TDocTemplate
- TFolder
- TNomenclature
- TNomenclatureDirectory
- TSettings
- UpdateOperations
- UserGroupSearch
- UserSearch
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Object of batch actions in an app
Type parameters
T: ItemData
P: ItemData
Hierarchy
Methods
delete
The method allows you to run a batch delete.
To use this method, the app must grant the current user data import permissions. Example of deleting app items:
var rows = await Application.batch() .delete() .where(f => f.number.gte(10)) .size(100) .all();
Returns ApplicationBatchDeleteBuilder<T>
save
The method allows you to run a batch save.
To use this method, the app must grant the current user data import permissions. Example of creating or updating of multiple items. The most common approach is where an array of items is created in memory and passed to the save function.
var items = []; for (var i = 0; i < 500; i++) { var item = Application.create(); items.push(item) } await Application.batch().save().items(items).all();
Example of creating or updating app items using generators. The main difference from the previous approach is that the entire array is not stored in memory. Instead, items are generated one at a time, which helps save memory.
await Application.batch().save().items((function*(){ for ( var i = 0; i < 500; i++) { var item = Application.create(); yield item } })()).all();
Returns ApplicationBatchSaveBuilder<T, P>
update
The method allows you to run a batch update.
To use this method, the app must grant the current user data import permissions. Example of updating app items:
var rows = await Application.batch() .update() .set('number', (f, op) => 1) .set('number1' (f, op) => f.number1) .set('number2', (f, op) => op. inc(f.number, 10) .where(f => f.number.gte(10)) .size(100) . all();
Returns ApplicationBatchUpdateBuilder<T, T, P>
Methods