Hi experts,
I need to create a text file in a BO Action.
I tried with this code in the script, but I don't can download this file.
var doctype: DocumentTypeCode;
var binaryObject: BinaryObject;
var docDesc: Description;
var docName: LANGUAGEINDEPENDENT_Name;
var docAltName: LANGUAGEINDEPENDENT_Name;
var string = "TEST";
docName = "test.txt";
doctype.content = "10001";
doctype.listID = "10296";
binaryObject.mimeCode = "text/plain";
binaryObject.content = Binary.ParseFromString(string);
this.myAttachments.CreateFile(doctype,docName,docName,docDesc,binaryObject);
I hope somebody help me.
Best regards.