Monday, December 17, 2018

Automatically set a Project to In Progress when Sales Order is Approved using SuiteScript

Set a Project Status to In Progress when a Sales Order is Approved using SuiteScript

Here is the User Event Script:

1. Create a .js file and paste the following in the file:



2. Navigate to Customization > Scripting > Scripts > New > User Event.
3. Upload the field from step 1.
4. Set the After Submit Function to: afterSubmit.
5. Under Deployments tab add a line and set Applies To: Sales Order.
6. Save the User Event Script.

DISCLAIMER: The sample code described herein is provided on an"as is" basis, without warranty of any kind, to the fullest extentpermitted by law. Oracle + NetSuite Inc. does not warrant or guarantee theindividual success developers may have in implementing the sample code on theirdevelopment platforms or in using their own Web server configurations.

Oracle +NetSuite Inc. does not warrant, guarantee or make any representations regardingthe use, results of use, accuracy, timeliness or completeness of any data orinformation relating to the sample code. Oracle + NetSuite Inc. disclaims allwarranties, express or implied, and in particular, disclaims all warranties ofmerchantability, fitness for a particular purpose, and warranties related tothe code, or any service or software related thereto.

Oracle + NetSuite Inc. shall notbe liable for any direct, indirect or consequential damages or costs of anytype arising out of any action taken by you or others related to the samplecode.

No comments:

Post a Comment