getRemainingFreeUsage() Syntax in SuiteScript 2.1
Syntax for the N/documentCapture member in SuiteScript 2.1, with Oracle’s note on sample context and full script examples.
documentCapture.getRemainingFreeUsage() is documented for SuiteScript 2.1 as a member call on documentCapture. Oracle presents only its syntax, not a functional implementation. The call uses empty parentheses and assigns the call expression to usage; consult the linked module sample collection when a complete script context is needed.
What syntax does Oracle show?
Oracle identifies the following snippet as the syntax for this member:
1// Add additional code2...3 4const usage = documentCapture.getRemainingFreeUsage();5 6...7// Add additional codeThe documented call is documentCapture.getRemainingFreeUsage(). In the displayed syntax, the call expression is assigned to a constant named usage.
The surrounding comments and ellipses are part of a syntax sample, not a complete implementation. Oracle explicitly notes that this sample is not functional. It should therefore be treated as the member-call form to place within additional script code, rather than as a standalone script.
Which SuiteScript context applies?
Oracle states that the associated N/documentCapture material pertains to SuiteScript 2.1. Keep that scope attached to this syntax reference: the source does not provide a separate version-specific variation of the call.
The source also identifies the material as covering features of the N/documentCapture module. It does not document setup steps, a return type, arguments beyond the empty parentheses shown, or a complete execution flow for this member.
Where can you find complete script examples?
For complete examples, Oracle directs readers to N/documentCapture Module Script Samples. That collection identifies these sample topics:
- Extract Text from a PDF File
- Extract Feature Content from a Document Synchronously
- Extract Content from a Document Asynchronously
Use those samples for broader module context. The member syntax page itself supplies the call form only.
Who This Affects
- SuiteScript 2.1 readers working with the documented
N/documentCapturemodule - Developers who need the exact member-call syntax before reviewing a full module sample
- Teams maintaining script references that distinguish syntax snippets from functional examples
How does this fit with related reading?
The following related articles remain available for site navigation:
- llm.getRemainingUsage() Syntax in SuiteScript 2026.2
- NetSuite Record Syntax for SuiteScript 2.x Operations
- Search Column Syntax for SuiteScript 2.x in NetSuite
- N/http Module Syntax for SuiteScript Redirects
Key Takeaways
- Oracle documents
documentCapture.getRemainingFreeUsage()for SuiteScript 2.1. - The shown syntax assigns the call expression to
usage. - Oracle labels the snippet as syntax, not a functional example.
- Oracle links to
N/documentCapturemodule script samples for complete script examples.
Frequently Asked Questions (4)
Does the documented documentCapture.getRemainingFreeUsage() call apply to SuiteScript 2.0 or only SuiteScript 2.1?
Do I need to pass any arguments when calling documentCapture.getRemainingFreeUsage(), and is a return type documented?
Can I use the shown snippet as a complete, functional script?
Where can I find full script examples that show this member used in context?
Was this article helpful?
More in AI
- Prompt Studio: Generative AI Management in NetSuite 2026.1
Prompt Studio in NetSuite 2026.1 enhances generative AI management, enabling customization of prompts and Text Enhance actions.
- SuiteCloud Agent Skills for AI Development in NetSuite 2026.1
NetSuite 2026.2 expands SuiteCloud Agent Skills with business and finance workflow support and related guidance resources.
- N/llm Module: Usage Limits and Additional Requests in NetSuite
In NetSuite 2026.1, the N/llm module sets usage limits and options for additional requests via Oracle Cloud.
- Required Features and Permissions for NetSuite AI Connector
Ensure Server SuiteScript and OAuth 2.0 are enabled for secure usage of the NetSuite AI Connector Service.
