Skip to Content
0

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

Jan 02 at 03:30 AM

81

avatar image

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

10 |10000 characters needed characters left characters exceeded

this is the picture, and the important thing is how can I generate the txt file using the script.

0

The picture lose again.

download-file.png (20.7 kB)
0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Tobias Kuhn Jan 03 at 04:24 PM
1

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


Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Tobias,

Thanks a lot. I tested the way, it is OK now.

Best Regards,

Benny Huang

0