Verification Object Members in SuiteScript 2.1
Verification object members define success indicators and signature lists in SuiteScript 2.1 for enhanced data integrity.
TL;DR
The Verification Object in SuiteScript 2.1 introduces critical properties to assess signature verification success and manage verification lists. Understanding these features is crucial for developers implementing secure data handling in NetSuite.
What Are Verification Object Members?
The Verification Object in SuiteScript 2.1 consists of specific members that serve two main purposes:
- To indicate whether a verification process was successful.
- To provide a list of individual verifications corresponding to different signatures.
Verification Object Members Details
The following table summarizes the members of the Verification Object:
| Member Name | Return Type / Value Type | Supported Script Types | Description |
|---|---|---|---|
VerificationSignature.verified | null | boolean | Server scripts |
Verification.signatures | null | Array<VerificationSignature> | Server scripts |
Error Handling
When working with these members, you might encounter specific error codes:
- Error Code:
READ_ONLY_PROPERTY- Thrown If: An attempt is made to set the property directly.
Syntax Example
Here is a code snippet demonstrating how to use the Verification Object:
1// Add additional code2...3const verification = pgp.createVerification();4log.debug(verification.signatures);5...6// Add additional codeFor a complete example, consult the N/pgp Module script samples.
Conclusion
Understanding the Verification Object Members is vital for NetSuite developers working with signature verifications. Proper implementation allows for enhanced data integrity and security in SuiteScript applications.
Frequently Asked Questions (4)
What script types support the Verification Object members in SuiteScript 2.1?
What does the 'VerificationSignature.verified' member indicate?
Can I modify the Verification Object members directly and what happens if I do?
What does the 'Verification.signatures' member contain?
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.
