create/update

This block is part of the twinfield group and was last modified in core v14.0.1.

create/update v12.0.1 Updated v14.0.1

creates a new journal transaction or updates existing ones. See Twinfield Docs for a full description.

In pins 7 + flow
  • flow
  • status value required

    The status of this journal entry, e.g. temporary. Should be final after testing.

  • type value required

    The transaction type (code)

  • number value

    The transaction number (number), e.g. 201300001. As this number can be padded with zeros, we can only accept it as value. Should only be set during an update

  • currency value

    The currency to be used, e.g. EUR.

  • date date

    The date shown on the journal entry, auto-filled with current date if not given.

  • lines array required

    Lines to be shown on this journal entry, @id is auto-filled, See Twinfield Docs for a full description.

  • connection twinfieldconnection required
Out pins 8 + flow
  • flow
  • success condition
  • location value

    Returns the twinfield location of this transaction.

  • number value

    Transaction number.

  • date date

    Transaction date.

  • transaction object

    Returns the twinfield transaction information.

  • lines array

    Returns the lines of this transaction.

  • error value
  • Connection twinfieldconnection

A typical wiring for create/update: a function trigger starts the flow; value feeds the status pin; value feeds the code pin; with values feeds the lines pin; the flow out pin feeds debug.

Studio canvas example for the create/update block: typical wiring for create/update.

Version history

Introduced in v12.0.1.

Last modified in v14.0.1.

Service documentation

External API reference This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.
Back to twinfield Return to the main group to view all sub-groups Back to journal transactions Return to the group to view all blocks within this group