Hi all - I have a saved search for a custom record...
# suitescript
w
Hi all - I have a saved search for a custom record that uses an Available Filter to show the results dynamically on a Customer record (the custom record has a Customer field on it) and this works well in the UI. I’m trying to run a search of this custom record type for a given customer in SuiteScript and it times out, suggesting I schedule it to run later and be emailed the results. Is there any way I can load the search that works and apply the available filter as part of this? I’ve also tried loading the customer record dynamically and getting the results from the sublist but this is proving finicky as well - the getSublists() method includes the sublist’s ID in it’s results but calling getLineCount() for it returns 0.