<@UAQQBHBPV> switch to an external mechanism to pe...
# suitescript
s
@Ben VanderBeek switch to an external mechanism to perform SFTP operations
b
@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
@Ben VanderBeek yes
b
ok thanks!
s
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
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
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.