Create Work Orders by Scripting with Map/Reduce in NetSuite
Create work orders by scripting with map/reduce in NetSuite 2025.1 using CPQ Manufacturing functionality.
Starting in NetSuite 2025.1, a new capability has been introduced for creating work orders for configured items through scripting. This enhancement is particularly relevant for users working with NetSuite CPQ Manufacturing, version 1.2.3 and later. By leveraging a map/reduce script, specifically the CPQM-MR-WOC script, developers can automate the work order creation process directly from server-side scripts such as Suitelets, RESTlets, user-event scripts, or scheduled scripts.
Overview of the New Feature
The process of creating work orders can now be integrated into automated workflows. Here’s how it works:
- Server-Side Script Requirement: Before invoking the map/reduce script for work order creation, developers must create any one of the following server-side script types:
- Suitelet
- RESTlet
- User-Event script
- Scheduled script
- Launching the Map/Reduce Script: Once the server-side script is ready, the developer can launch the
CPQM-MR-WOCmap/reduce script by callingcustomscript_cpqm_mr_woc. - Work Order Creation Handling: This map/reduce script takes care of generating work orders based on the user-defined criteria.
Reconvert Existing Work Orders
If there is a need to update existing work orders with the most recent data, developers can use a script parameter:
- Set
custscript_cpqm_forcetotrueto allow the reconversion of up-to-date work orders. This can be particularly useful in maintaining current inventory records.
Important Considerations
- If developers encounter issues with the scheduled script due to the volume of configurable items, it is advised to transition to the
CPQM-MR-WOCmap/reduce script. Scheduled scripts may not efficiently handle high loads in new implementations.
Who This Affects
This new feature impacts the following roles and modules:
- Administrators: Responsible for implementing scripting solutions.
- Developers: Need to understand how to utilize the new scripting functionality for work orders.
- Inventory Managers: Will benefit from improved work order creation processes within their workflows.
Key Takeaways
- In NetSuite 2025.1, work orders can now be created by scripting using a map/reduce approach.
- Launch the
CPQM-MR-WOCscript from any supported server-side script types. - Use the
custscript_cpqm_forceparameter for reconversion of existing work orders. - Avoid using scheduled scripts for new implementations involving high volumes of configurable items.
- This feature enhances inventory management capabilities within CPQ Manufacturing.
Frequently Asked Questions (4)
Does this scripting capability apply to standard NetSuite users or only those using CPQ Manufacturing?
Are there specific script types required to launch the `CPQM-MR-WOC` map/reduce script?
What permissions are required for administrators and developers to utilize this new scripting functionality?
How does this work with existing scheduled scripts for work order creation?
Was this article helpful?
More in Inventory Management
- Consigned Inventory Management in NetSuite 2026.1
Consigned inventory management in NetSuite 2026.1 enhances tracking and reporting for vendor consigned goods. Introduction
- Receive All Option for Purchase Orders in NetSuite 2025.1
Activate the Receive All option in NetSuite 2025.1 to receive all items on a PO simultaneously, enhancing inventory efficiency.
- Additional Settings for Wave Transactions in NetSuite 2024.1
Explore new additional settings for wave transactions in NetSuite 2024.1, enhancing inventory management processes.
- Backordered Item Picking Workflow Enhancements in NetSuite 2026.1
Backordered item picking workflow enhancements in NetSuite 2026.1 improve inventory management processes significantly.
Also from NetSuite 2025.1
- Receive All Option for Purchase Orders in NetSuite 2025.1
Activate the Receive All option in NetSuite 2025.1 to receive all items on a PO simultaneously, enhancing inventory efficiency.
- Annual Recurring Revenue Analytics Enhancements in NetSuite
Annual Recurring Revenue analytics enhancements in NetSuite 2025.1 improve subscription management insights.
- Task Lines Preference for Backorder Management in NetSuite 2025.1
The Task Lines preference in NetSuite 2025.1 enhances backorder management by automatically creating new fulfillment waves.
- Replace Inactive or Deleted Products in NetSuite 2025.1
Replace inactive or deleted products in NetSuite 2025.1 to ensure transaction continuity and inventory management.
Advertising
Reach Inventory Management Professionals
Put your product in front of NetSuite experts who work with Inventory Management every day.
Sponsor This Category