Open a dialog for bulk creating limeobjects

Flow example

Let's have a look at the general flow by going through the concrete example of adding several persons to a marketing activity:

  • Go to the table view of persons.
  • Filter everyone who should be included in the marketing activity.
  • Select 'Bulk create objects' form the action menu.
  • Fill out the form and click 'create'.
  • A toast message appears and gives you 5 seconds to undo the action before it creates the corresponding task.
  • Another toast message will inform you after the task is completed.
  • If the task ended successful you can go to the participant table view and check the result.

Configuration

In order to activate the feature go to a table configuration in lime-admin to the limetype you want to bulk create from and add the following configuration:

"actions": [
{
"id": "limeobject.bulk-create-dialog",
"params": {
"relation": "<name of relation>"
}
}
],

Id

limeobject.bulk-create-dialog

Hierarchy

  • BulkCreateDialogCommand

Implements

Constructors

Properties

Context describing the LimeType the command will operate on. If parent is set on the context, it indicates that the LimeObjects are all related to a common parent LimeObject via a belongsto relation

filter: Expression

A query describing what limeobjects to create new limeobjects from. Each object from the result will result in a new related limeobject to be created

limetype: LimeType

The limetype of the objects to create new objects from

Deprecated

use context instead

relation: string

The name of the relation on the limetype to create objects of

relations: string[] = []

A list of relation names that are possible to create from the limetype

Deprecated

The dialog no longer supports multiple relations to be picked from. Use the new relation property instead