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.
Zeichenkodierung
Kodierung der erzeugten Datei. 
Byte-Order-Markierung (BOM)
Bestimmte Zeichenkodierungen benötigen eine Bytefolge am Anfang der zu erzeugenden Datei, welche die Byte-Reihenfolge und Kodierungsform angibt. Bei manchen Zeichenkodierungen ist dies nötig, damit die Daten richtig gelesen werden können. Der Standardwert Automatisch setzt Byte-Order-Markierungen automatisch bei Zeichenkodierungen, bei denen zwingend erforderlich sind.

Aktionsplatzhalter

Aktionen vom Typ Textdatei erzeugen stellen Aktionsplatzhalter bereit, welche  in darauf folgenden Aktionen verwendet werden können.

Standardplatzhalter

[%$<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.