@Ben VanderBeek switch to an external mechanism to perform SFTP operations
b
Ben VanderBeek
10/08/2018, 4:32 PM
@stalbert you're saying have NetSuite make a request to some other URL or service, and that URL is responsible for reading from the SFTP and returning file contents?
s
stalbert
10/08/2018, 4:44 PM
@Ben VanderBeek yes
b
Ben VanderBeek
10/08/2018, 4:51 PM
ok thanks!
s
stalbert
10/08/2018, 4:55 PM
I mention it because I did something similar once a few years ago- I can't remember if it was sending or receiving from SFTP though
👍 1
b
Ben VanderBeek
10/09/2018, 4:27 PM
i'm just wrestling with the slippery slope of choosing middleware vs point to point integrations. as soon as you lose the benefit of scripting (e.g. i can't just troubleshoot issues inside a NS script), it starts to seem less justified to even use a script - might as well have middleware call SuiteTalk
s
stalbert
10/09/2018, 5:50 PM
I once thought that way, but the ease of writing SuiteScript as well as performance over SuiteTalk makes me pick NS native integrations if possible (as you suggest). However, even if I did introduce middleware I'd still want to integrate it to custom purpose-built RESTlets as the endpoints. One can write complex logic in a RESTlet that results in a nice easy to consume input or ouput for the external system/middleware.