Skip to Content

How can I generate a txt file and store it at system?

Hi experts,

At Bydesign System, now I have a requirement: I want to generate a txt file using a record, and then save it at the system attachment, as:

which step I need to do?Thanks a lot.

Best Regards,

Benny Huang

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 03 at 04:24 PM

    Hi Benny,

    the steps should be (when I got your use case right):

    • Create a string with the text content you want to save (Your Business Logic)
    • Create a UTF-8 encoded Binary Object out of this string
    var yourBinContent = Binary.ParseFromString("<your string content>");
    • Create an AttachmentFolder File with the binary object

    I hope that will help you.

    Best regards

    Tobias Kuhn

    Add comment
    10|10000 characters needed characters exceeded