ekt formatter

This block is part of the edifact group and was last modified in core v12.0.7.

ekt formatter v11.5.18 Updated v12.0.7

Converts object to edifact ekt file

In pins 3 + flow
  • flow
    flow
  • filename required
    value
  • EKT Object required
    object
  • use windows newline v12.0.7
    condition

    Will use \r\n instead of \n if set to true.

Out pins 3 + flow
  • flow
    flow
  • file
    file
  • success
    condition
  • error
    value

Serializes the EKT input object into a Floricode CLOCKT v3.8 EDIFACT message, writes it to temp/{guid}.tmp, and outputs a one-item file array ({filename}.edi, path, base64 data, type text/plain). A nil or non-object input fails with EDIFORMATTER_EMPTY_EDI_INPUT. Field values have apostrophes and plus signs stripped, each line's price is divided by 1000 when numeric, and use_windows_newline switches line endings from \n to \r\n; the UNT segment count deliberately keeps the reference implementation's off-by-one.

A typical wiring for ekt formatter: a function trigger starts the flow; value feeds the filename pin; the flow out pin feeds debug.

Studio canvas example for the ekt formatter block: typical wiring for ekt formatter.

Version history

Introduced in v11.5.18.

Last modified in v12.0.7.


Back to edifact Return to the main group to view all sub-groups Back to edifact Return to the group to view all blocks within this group