Search code examples
netsuitesuitescriptsuitescript2.0

Can you execute a script/workflow in NetSuite when marking appointment as completed?


In Netsuite, on customer records under the Communication --> Events subtab, there is a button next to each confirmed appointment to mark an appointment as completed without opening the appointment and saving it. Is there a way to execute scripts or workflows when the mark completed button is clicked from the customer record?


Solution

  • Use a User Event on the Event record. The beforeSubmit and afterSubmit entry points should both be fired with a ContextType of MARKCOMPLETE. See the Help documentation for the corresponding entry point for details.