Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Scheduled Script concurrency control?
Hello!
Can optimistic locking be achieved when reading and later updating transactions lines?
Business Requirement:
Based on sales order lines creation/updates many custom record lines needs to be updated.
Planed solutions design:
A Scheduled Script will:
1, search (nlapiSearchRecord) all new or updated sales order lines
2, loop and load (nlapiLoadRecord) sales order records
3, based on every sales order line, 1-200 custom records needs to be updated.
4, nlapiSubmitRecord custom records
5, set custcol on sales order lines that the lines are handled by this script.
6, nlapiSubmitRecord sales order
Problem
A user might update sales order/lines between steep 2 and steep 6. This sequence of updated should be handled as one database transaction or with proper optimistic concurrency control.