Quota Search via SuiteScript

Issue

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.

Solution

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

Leave a comment

Your email address will not be published. Required fields are marked *