CURIOUSRUBIK
Let’s talk about your next move ↗View complete sitemap
Back to the blog

Setup workflows in NetSuite

Workflows work on specific record type and can only be used to configure changes on that selected record type. Once you have selected the record type, it cannot be changed after click on save button, so it is important to make sure that you select the correct record type when initially creating your workflow.

NetSuite New Workflow setup for a Sales Order transaction, with the Release Status choices Not Running, Released and Testing.

Workflow has 3 different release status:

  • Not Running: If release status is not running then workflow conditions cannot be triggered on that record type.
  • Released: If release status is released then workflow conditions executes for all users.
  • Testing: If release status is  testing then workflow condition executes only for the owner of the workflow.

Event-based NetSuite workflow settings showing On Create, On View or Update, Before Record Load, event types and contexts.

Workflows can be configured to run according to a schedule or based on user-defined criteria being met (referred to as “Event Based” initiation).  For this scenario, we’ll be using event-based initiation since we want the changes to occur as the user edits the sales order record.  Additionally, we’ll allow the workflow to trigger both when a new sales order is created and when an existing sales order is updated using the “On Create” and “On View or Update” preferences.

Then populate the trigger type for this Workflow, for SuiteScript, we will need some scripts to check this, but in Workflow user has the ability to set them in the UI. Based on the trigger type event types will be changed.             

Scheduled Based initiation:

Scheduled NetSuite workflow with Repeat selected and Frequency set to Every 30 minutes.

  1. Under initiation select the scheduled checkbox.
  2. Select the saved search which you want to apply as filters.
  3. If you want to repeat the scheduled, then check the repeat checkbox.
  4. Select the frequency list at what time you needs to run scheduled workflow, frequency list are defined as below
  • Every 30 minutes (Default)
  • Daily,
  • Weekly,
  • Monthly and
  • yearly
  1. Enter the scheduled from Date on which the schedule workflow starts.
  2. Enter the scheduled until date on which schedule workflow ends.
  3. Select the execution time of day when NetSuite runs the saved search and executes the workflow on the results. Execution time of day is default as midnight.
  4. If you select the daily frequency, then set the interval for the number of days between each scheduled execution or set execution to repeat on every week day.

Scheduled NetSuite workflow with Daily frequency, an execution time and options to repeat every day or every weekday.

9. If you select the weekly frequency, then Set the interval for the number of weeks between each scheduled execution and set the day’s of the week.

NetSuite workflow schedule with Weekly frequency and controls for the repeat interval and days of the week.

10. If you select the monthly frequency, then set the specific day (for example, 1st day) in the month or day of the week in the month (for example, second Monday) in monthly schedule.

NetSuite workflow schedule with Monthly frequency and options for a day of the month or a specified weekday.

11. If you select the yearly frequency, then Set the specific day in a specific month (for example, 4th of April) or the day of the week in a specific month (for example, second Wednesday in April)

NetSuite workflow schedule with Yearly frequency and options for a calendar date or a specified weekday in a month.

Workflow Fields:
Fields work similar to other fields you would add to a record, although they live within the workflow. You can add NetSuite fields to the entire workflow or just to a particular state.

NetSuite Employee workflow configuration with the Fields tab and New Field button highlighted.

Workflow States:
These are the building blocks of workflows. A state corresponds to a stage or step in a business process. States include specific actions, and are connected to other states by transitions.

NetSuite Employee workflow designer showing State 1 between Start and End, with the New State button highlighted.Workflow Transitions:
Transitions allow for movement between states (steps) of your business process. You can define conditions and trigger condition options for the most accurate process possible.
NetSuite Workflow Transition dialog connecting State 1 to State 2, with trigger and condition settings.

The SuiteFlow contains “States” and “Transitions”, States is the Box and Transitions are the lines connect each of the states, as shown below

Workflow diagram with an arrow from Start through State 1 and State 2 to End.

Workflow Actions:
Create actions that will allow a state (steps) to execute a command. For example: send an email, add a button, remove a button, set field value, go to record, and return user error etc.

NetSuite workflow designer with State 2 selected and the New Action button highlighted.

NetSuite New Action menu listing workflow actions such as Create Record, Send Email, Set Field Value and Transform Record.

What’s on your mind?

A little context is all it takes to begin.

Please leave out passwords, payment details and confidential account data.