The method performs batch saving of items from multiple apps within a single transaction.
Saves the items specified using the ApplicationsBatchSaveBuilder.items method within a single transaction.
The number of items must not exceed the limit defined by the system (10000 by default). If the limit is exceeded, validation will fail, none of the provided items will be saved, and the server will return an error.
await System.applications.batch().save().items((function*() {
for (var i = 0; i < 100; i++) {
yield Application.create();
}
})()).all();
The number of items must not exceed the system-defined limit (10,000 by default). If the limit is exceeded,
validation will fail, and none of the passed items will be saved; the server will return an error.
Object for saving items from multiple apps within a single transaction
The object allows you to:
Hierarchy
Methods
all
The method performs batch saving of items from multiple apps within a single transaction.
Saves the items specified using the ApplicationsBatchSaveBuilder.items method within a single transaction. The number of items must not exceed the limit defined by the system (10000 by default). If the limit is exceeded,
validation will fail, none of the provided items will be saved, and the server will return an error.
await System.applications.batch().save().items((function*() { for (var i = 0; i < 100; i++) { yield Application.create(); } })()).all();Returns Promise<void>
items
The method allows defining the saved items.
The number of items must not exceed the system-defined limit (10,000 by default). If the limit is exceeded, validation will fail, and none of the passed items will be saved; the server will return an error.
Parameters
items: Iterable<ApplicationItem<ItemData, ItemData>>
Returns ApplicationsBatchSaver
notify
The method sets notifications for when app items are saved.
Parameters
enabled: boolean
Returns this