Range Object Members
Explore Range Object Members in SuiteScript, detailing date-time range properties for effective data handling.
The Range Object in SuiteScript allows developers to handle date or date-time ranges effectively. The object comprises two primary members vital for understanding date boundaries in workflows.
What is the Range Object?
The workbook.Range object represents a date or date-time range. The dates are formatted according to user preferences in their account and can be returned after executing a pivot.
What are the Members of the Range Object?
Below are the members available for the workbook.Range object:
| Member Name | Type | Description | Supported Script Types |
|---|---|---|---|
Range.end | string | The end date or date-time of the range. | Server scripts |
Range.start | string | The start date or date-time of the range. | Server scripts |
Member Descriptions
-
Range.end: This property retrieves the end date or time of the specified range. It is returned as a string and adheres to the user's date formatting preferences. Modifying this property after object creation will result in aREAD_ONLY_PROPERTYerror. -
Range.start: Similar toRange.end, this property provides the start date or time of the range. It is also formatted as a string, reflecting the user's account settings.
Supported Script Types
Both members of the Range object are compatible exclusively with server scripts, making them useful within the context of backend operations.
By understanding these properties, developers can effectively manage and utilize date ranges in their SuiteScript applications, ensuring accurate data manipulations that align with user requirements.
Additional Resources
For further information, explore the N/workbook Module and SuiteScript 2.x Modules.
Key Takeaways
- The
Rangeobject is essential for handling date-time ranges in SuiteScript. - Key members include
Range.startandRange.end, both of which return date-time strings. - Understanding these properties enhances data manipulation in SuiteScript workflows.
Frequently Asked Questions (4)
Are the Range.start and Range.end properties writable in the Range Object?
In which scripting environment can the Range Object be utilized?
How are the dates formatted in the Range Object members?
Can the Range Object be used in client scripts?
Was this article helpful?
More in SuiteScript
- SuiteScript 2.1 Enhancements in NetSuite February Updates
SuiteScript 2.1 now supports async features and PATCH method. Discover the latest API and SuiteProcurement improvements.
- Scheduling Map/Reduce Script Deployments in NetSuite
Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
