2018.2 is adding new APIs for "Record Actions" and...
# suitescript
e
2018.2 is adding new APIs for "Record Actions" and "Record Macros", which effectively gives SuiteScript access to the same functionality as clicking many UI buttons. Unfortunately "Close Order" is not one of the buttons targeted for 2018.2