RE: To create Workflow for Sales Order Approval
How to create sales order approval in this workflow guide me step by step
π Step 1: Enable the Workflow Feature
-
Go to Setup > Company > Enable Features.
-
Click the SuiteFlow subtab.
-
Check the box for SuiteFlow (Workflow) to enable the workflow feature.
-
Click Save.
π Step 2: Create a Custom Approval Status
You need a custom status to indicate the order is pending approval.
-
Go to Setup > Accounting > Accounting Lists > New.
-
Select Status from the list.
-
Set the following:
-
Name: Pending Approval
-
Type: Sales Order
-
Description: Sales order awaiting approval.
-
-
Click Save.
π Step 3: Create the Workflow
-
Go to Customization > Workflow > Workflows > New.
-
Fill in the details:
-
Name: Sales Order Approval Workflow
-
Record Type: Sales Order
-
Subtypes: Standard
-
Release Status: Testing (for initial setup)
-
Execute as Admin: Checked
-
-
Click Save.
π Step 4: Define the Workflow Initiation
-
Under the Initiation section:
-
Select Event Based.
-
Trigger On: Before Record Submit.
-
Execute on Create: Checked.
-
Execute on Edit: Checked.
-
-
Click Save.
π Step 5: Add the Workflow States
You need at least three states:
-
Pending Approval
-
Approved
-
Rejected
-
Click New State:
-
Name: Pending Approval
-
Click Save.
-
-
Click New State again:
-
Name: Approved
-
Click Save.
-
-
Add another state:
-
Name: Rejected
-
Click Save.
-
π Step 6: Add State Transitions
-
Go to the Pending Approval state.
-
Click New Transition:
-
To State: Approved
-
Condition: If Approved by Manager is checked.
-
-
Add another transition:
-
To State: Rejected
-
Condition: If Rejected by Manager is checked.
-
-
Click Save.
π Step 7: Add Actions and Conditions
-
Go to the Pending Approval state.
-
Add an action:
-
Trigger: Entry
-
Type: Set Field Value
-
Field: Status = Pending Approval
-
-
Go to the Approved state:
-
Add an action:
-
Trigger: Entry
-
Type: Set Field Value
-
Field: Status = Approved
-
-
Go to the Rejected state:
-
Add an action:
-
Trigger: Entry
-
Type: Set Field Value
-
Field: Status = Rejected
-
-
Click Save.
π Step 8: Test the Workflow
-
Create a new sales order:
-
Go to Transactions > Sales > Create Sales Orders.
-
Select a customer, add items, and submit the order.
-
-
Verify that the status changes to Pending Approval.
-
Approve or reject the order:
-
If approved, it should transition to the Approved state.
-
If rejected, it should transition to the Rejected state.
-