CreateTextFile


Configuration interface for actions of the type Create text file.

Actions of type Create text file allow you to create text files on the file system that may be used by other actions. They can also be seen in the inbox, when you attach them to the form record. The content of the text cannot be created dynamically, but you can use variables.

Parameters

Content of the text file

Content type
Specifies the content type that the file to be created should contain. According to the selected value, placeholders are masked when the file is created.
Text content
Enter the content of the text file. You may use variables to insert data from form fields.

Storage options for the created files

Output file name
Name of the output file.
Attach file to form record
If this option is selected, files created in this action will be attached to the form record. Otherwise, they are only available for other actions within the workflow processing in the same processing chain.
Encoding (character set)
Encoding of the generated file. 
Byte order mark (BOM)
Certain character encodings require a byte sequence at the beginning of the file to be created, that specifies the byte order and encoding form. For some character encodings this is necessary for the data to be read correctly. The default value Automatic sets byte order markers automatically for character encodings where it is mandatory.

Action variables

Actions of type Create text file provide action placeholders which can be used in subsequent actions.

Standard action variables

[%$<Aktionsname>.SUCCESS%]
Rückgabe ob Aktion erfolgreich ausgeführt wurde. Liefert Boolean (true/false) zurück.
[%$<Aktionsname>.RESULT%]
Rückgabe aller von der Aktion bereitgestellten Ergebnisse als JSON.
[%$<Aktionsname>.ERROR_CODE%]
Der geworfene Fehler-Code im Fehlerfall der Aktion. Leer wenn kein Fehler aufgetreten ist.
[%$<Aktionsname>.ERROR_MESSAGE%]
Die geworfene Fehler-Nachricht im Fehlerfall der Aktion. Leer wenn kein Fehler aufgetreten ist.

Aktionsspezifische Platzhalter

[%$<Aktionsname>.RESULT.fileSize%]
Größe der erstellten Textdatei, in Bytes
[%$<Aktionsname>.ERROR.message%]
Fehlercode, der zurückgeliefert wird, wenn die Textdatei nicht aus dem Dateisystem gelsen oder in dieses geschrieben werden konnte.