Created By Dosvak LLC (WWW.DOSVAK.COM)

0 votes
8 views
in Integrations by (10.3k points)

1 Answer

0 votes
by (10.3k points)
selected by
 
Best answer
var managedFile = tw.system.model.findManagedFileByPath("somefile.csv", TWManagedFile.Types.Web);
log.error("Got the managed file!: " + managedFile);
// load the textual content into a variable
var textualContent = managedFile.readText();
// write the file to filesystem
managedFile.writeDataToFile("/tmp/somefile.csv");

Related questions

0 votes
1 answer 10 views
0 votes
1 answer 17 views
0 votes
1 answer 121 views
0 votes
1 answer 11 views
0 votes
1 answer 152 views
0 votes
0 answers 26 views
...