Purchasing

Purchase order draft updated

Starts a run when «Purchase order draft updated» happens in Filmo. The run receives the purchase order in trigger_purchaseOrder and the details of the event in trigger_event.

Event
filmo.purchaseOrder.draftUpdated
PropertyValue
SourceFilmo
Section of the editorPurchasing › Purchase orders
RecordPurchase order
Variabletrigger_purchaseOrder

An update event can start a run only when one of these fields changed: set it in «changedField».

FieldDescription
currencyCurrency changed
discountDiscount changed
lineItemsLines changed
orderOrder changed
poDateOrder date changed
projectProject changed
statusStatus changed
subTotalSubtotal changed
supplierSupplier changed

More in Triggers.

Configuration

eventstringRequired

The event this trigger waits for: filmo.purchaseOrder.draftUpdated.

filtercondition

The trigger's gate: «only when…». A condition evaluated against the event and the record before the run is created; if it is not met, no run is created. If absent, there is no filter and the event passes. If present, it must be complete, with the variable chosen: saving a half-configured filter is rejected.

changedFieldstring

Only for update events («Only when … changes»): one of the fields the event declares as changeable. It passes only when that field changed. If absent, any update passes. For those events the editor offers this instead of the filter.

What the run receives

trigger_purchaseOrderobject

Purchase order

Show child attributes
trigger_purchaseOrder.idstring

Id

trigger_purchaseOrder.poNumberstring

Purchase order number

trigger_purchaseOrder.statusenum<string>

Status

Available options: draft, pending, completed, canceled

trigger_purchaseOrder.poDatestring

Purchase order date

trigger_purchaseOrder.supplierIdstring

Supplier id

trigger_purchaseOrder.currencystring

Currency

trigger_purchaseOrder.subTotalnumber

Subtotal

trigger_eventobject

The event. The same envelope arrives with every event.

Show child attributes
trigger_event.namestring

Name

trigger_event.entityTypestring

Entity type

trigger_event.entityIdstring

Entity id

trigger_event.entityNamestring

Entity name

trigger_event.actionCodestring

Action code

trigger_event.originenum<string>

Source

Available options: neo, workflow, api, mcp, integration

trigger_event.actorobject

Author

Show child attributes
trigger_event.actor.kindstring

Type

trigger_event.actor.idstring

Id

trigger_event.actor.namestring

Name

trigger_event.changesobject

Changes

Show child attributes
trigger_event.changes.supplierboolean

Supplier changed

trigger_event.changes.statusboolean

Status changed

trigger_event.changes.poDateboolean

Order date changed

trigger_event.changes.projectboolean

Project changed

trigger_event.changes.orderboolean

Order changed

trigger_event.changes.currencyboolean

Currency changed

trigger_event.changes.discountboolean

Discount changed

trigger_event.changes.subTotalboolean

Subtotal changed

trigger_event.changes.lineItemsboolean

Lines changed