Goal: We want to update, via a workflow, a custom item field in our Assembly/Build Item Records called "Buildable QTY" (id: custitem105)
This is where I am at. This is what has been set up thus far.
================================================== ============================
1. This is the Script Im using for the work flow. It resides in my SuiteScripts folder. Does this look correct?
function workflowAction() { // Retrieve the current workflow record var rec = nlapiGetNewRecord(); // Create an Assembly Build in memory var obj = nlapiCreateRecord('assemblybuild', {recordmode:'dynamic'}); // Set the current item in the build obj.setFieldValue('item', rec.getId()); // Set the current item build location obj.setFieldValue('location', 1); // Retrieve the Buildable Quantity Value var qty = obj.getFieldValue('buildable'); // Return the generated Buildable Quantity value return qty; } 2. I set up a Workflow Action Script Deployment (set to released) with the ID "customdeploygetbuildablequantity" and it is called "Get Buildable Quantity".3. I setup a Workflow called "Buildable Quantities for Assembly Items" (set to released, record type: item) and utilizes a saved search for only my active Assembly/Build items4. I set up a custom Workflow Field called "buildq" with the id "custworkflow1" type "integer number" and set to store value.5. Set up a Workflow State with 2 actions.5a. Action 1 Name: "Get Buildable Quantity" (Custom Action: Get Buildable Quantity) set to scheduled (as is my workflow for every 30 minutes). Store reesults in "buildq (workflow)".5b. Action 2 Name: "Set Field Value" set to scheduled (as everything else is) Parameters *Field "Buildable QTY" (This is a custom item field in my assembly item records) value is set to formula "{custworkflow1}"================================================== ============================Why is this not working? Is buildable quantity able to be produced via the script?