Quota Search via SuiteScript
I’m trying to run a Quota Saved Search in SuiteScript but I’m getting SSS_INVALID_RECORD_TYPE. Now officially it’s not a supported record but I’ve never come across an issue running any Saved Search in SuiteScript.
Any thoughts/advice/workarounds would be much appreciated.
To my surprise it looks like Quota is unsupported as record and search type. Even loading existing Quota saved search with search.load() threw errors.
However, using N/task module to run the same existing saved search via saved search task worked.
Not sure how useful this is to you though as it relies on referencing existing saved search by internalid and results are exported to CSV file…
Interesting strategy and results.
Thanks @dbarnett – it’s at least some way forward…
I’ll see if I can make it work!
- Not a True answer
I’ve tried and found no way to access the Quota record via SuiteScript. I think it is unavailable at this time.
KevinJ Of Kansas
Can you share your code where you are doing the search? I won’t be able to help you, but others who could will do better seeing what you are trying to do.
@KevinJ – Nothing more complex than this: