2

I want to create a text file in outsystems. I have data in an entity and I want to create a text file using that entity's attribute values.

Can anyone provide an example showing how this can be done?

MatthewD
  • 6,719
  • 5
  • 22
  • 41
Bankat
  • 65
  • 3
  • 12

1 Answers1

1

You can use the TextToBinaryData function and use its result in the Download node as file content, with the Mime-type set to "text/plain".

The TextToBinaryData is available in the Binary extension which you probably have already installed in your environment, but perhaps you need to use add/remove references to make it available in your module.

You can use the Download node in any screen action as a terminal node (like the End node).

References: Download Files, Binary Data API

Miguel Ventura
  • 10,344
  • 2
  • 31
  • 41