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 } }
An Expression describing which LimeObjects to operate on.
Can be null to operate on all objects (subject to parent context filtering),
or a filter expression to limit the operation to specific records.
// Operate on selected IDs
filter = { key: 'id', op: 'IN', exp: [1, 2, 3] };
// Operate on objects matching criteria
filter = {
op: 'AND',
exp: [
{ key: 'status', op: '=', exp: 'active' },
{ key: 'value', op: '>', exp: 10000 }
]
};
// Operate on all objects
filter = null;
A command that operates on multiple LimeObjects of a single LimeType.
LimeObjectBulkCommand is used for batch operations on multiple records, such as exporting selected deals to Excel, sending bulk emails, or mass-updating status fields. The filter property determines which objects are included in the operation.
Example
Example
Example