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
- Common SuiteScript Errors and Solutions for NetSuite
Common NetSuite script errors include INVALID_SCRIPT_DEPLOYMENT_ID and SSS_AUTHORIZATION_HEADER_NOT_ALLOWED. Learn effective solutions.
- Set Sublist Field Values in SuiteScript 2.x for Record Management
Set sublist field values in SuiteScript 2.x for effective record management using standard and dynamic modes.
- Setting Field Values in SuiteScript for Effective Record
Learn to set field values in SuiteScript effectively, troubleshooting common errors and understanding data types.
- SuiteScript 2.1 Enhancements and API Updates in NetSuite
SuiteScript 2.1 enables execution of 2.0 scripts and supports PATCH method for enhanced API capabilities.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category