generate from value

This block is part of the files group and was last modified in core v10.4.28.

generate from value v10.4.28

Generates a file from the given value.

In pins 5 + flow
  • flow
    flow
  • filename required
    value

    The name of the file.

  • extension required
    value

    The extension of the file, e.g. pdf.

  • data required
    value

    The contents of the file, e.g. JSON, XML or CSV data.

  • encoding
    value

    The encoding of the data, can be ascii or utf8

    Default utf8

  • win. newline char
    condition

    Use a windows EOL character (\r\n) instead of the mac / linux EOL character (\n)

Out pins 2 + flow
  • flow
    flow
  • success
    condition

    File succesfully created?

  • file
    file

    Output file.

A typical wiring for generate from value: a function trigger starts the flow; value feeds the filename pin; value feeds the extension pin; value feeds the content pin; the flow out pin feeds debug.

Studio canvas example for the generate from value block: typical wiring for generate from value.

Version history

Introduced in v10.4.28.


Back to files Return to the main group to view all sub-groups Back to file parsing Return to the group to view all blocks within this group