- API
- Work with apps
- Object of batch actions in apps
- 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
-
Work with apps
- ApplicationBatchDeleteBuilder
- ApplicationBatchSaveBuilder
- ApplicationBatchSaver
- ApplicationBatchUpdateBuilder
- ApplicationBatchUpdater
- ApplicationBatcher
- ApplicationFieldOperand
- ApplicationFieldProjectionCapable
- ApplicationSearch
- ApplicationSearchWithProjection
- ApplicationTypeFieldOperand
- ApplicationsBatchSaveBuilder
- ApplicationsBatchSaver
- ApplicationsBatcher
- ApplicationsService
- BaseFieldOperand
- BaseGlobalFilters
- ComparableFieldOperand
- ContextOperand
- DirectoriesSearch
- DocflowSettings
- FieldArrayOperand
- FieldOperand
- FilesSearch
- FolderSettings
- GlobalFilters
- GlobalFiltersWithWhere
- LineApplicationFieldOperand
- MailMessageSearch
- MoneyFieldOperand
- NomenclatureRegistrationSettings
- OrganisationStructureSearch
- PhoneFieldOperand
- ProcessInstanceSearch
- ProcessInstanceTaskSearch
- RefItemFieldOperand
- RegistrationSettings
- ReminderSearch
- ReplacementRulesSearch
- ReplacementSearch
- ReportSearch
- ResetSettings
- Search
- SerialData
- SerialSettings
- SignatureSettings
- StatusHistorySearch
- StringFieldOperand
- TDocTemplate
- TFolder
- TNomenclature
- TNomenclatureDirectory
- TSettings
- UpdateOperations
- UserGroupSearch
- UserSearch
- FieldSelection
- TApplicationTypeFilter
- 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
Object of batch actions in apps
Hierarchy
Methods
save
The method allows batch saving of items from multiple apps within a single transaction.
To use this method, the current user must be granted permissions to import data in each app being used. Example of creating or updating multiple items. This is the most common approach, 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 firstAppItem = Application1.create(); var secondAppItem = Application2.create(); firstAppItem.data.linkToSecondAppItem = secondAppItem; secondAppItem.data.linkToFirstAppItem = firstAppItem; items.push (firstAppItem, secondAppItem); } await System.applications.batch().save().items(items).all();Example of creating or updating items using generators.
await System.applications.batch().save().items((function*() { for (var i = 0; i < 500; i++) { var firstAppItem = Application1.create(); var secondAppItem = Application2.create(); firstAppItem.data.linkToSecondAppItem = secondAppItem; secondAppItem.data.linkToFirstAppItem = firstAppItem; yield firstAppItem; yield secondAppItem; } })()).all();Returns ApplicationsBatchSaveBuilder
Methods