How to create text file in outsystems

2020-07-27 04:23发布

问题:

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?

回答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



标签: outsystems