Lime Web Components API Documentation - v6.24.0
    Preparing search index...

    Class BulkCreateDialogCommand

    Open a dialog for bulk creating limeobjects

    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.

    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>"
    }
    }
    ],

    limeobject.bulk-create-dialog

    Implements

    Index

    Constructors

    Properties

    Constructors

    Properties

    Context describing the LimeType the command will operate on.

    Must include limetype to identify which type of objects to 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.

    // All deals (no parent filter)
    context = { limetype: 'deal' }

    // Only deals related to a specific company
    context = { limetype: 'deal', parent: { limetype: 'company', id: 456 } }
    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

    relation: string

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