RESTlet to get deleted records via saved search?
I need to get deleted records via RESTlet for intake into another system. I already have a RESTlet that works perfectly with saved searches (using nlapiSearchRecord). I naively expected to be able to create a saved search for deleted records and then call that from via RESTlet. However, that seems not possible, at least not with my current implementation. Relevant documentation says: When using the nlapiSearchRecord function to execute an existing saved search, note the following: Only saved searches on record types currently supported by SuiteScript can be executed.
Do a search on deleted records: https://system.na0.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2019_2/script/record/deletedrecord.html.
Standard scripted search advice applies: generate the search in the ui first and then script it. https://system.na0.netsuite.com/app/common/search/search.nl?searchtype=DeletedRecord&cu=T&e=F
If you don’t know how to script the search, this chrome plugin is generally recommended. https://chrome.google.com/webstore/detail/netsuite-search-export/gglbgdfbkaelbjpjkiepdmfaihdokglp