Aly
10/14/2025, 3:33 PMCeligo AI
10/14/2025, 3:33 PMAI generated answer (using internal Slack threads):To require a rejection reason on workflow approvals in NetSuite, you can follow these steps: 1. Add a custom field (e.g., "Rejection Reason") to the record type that the workflow is associated with. This field will be used to capture the reason for rejection. 2. In your workflow, add an intermediary state before the rejection state. This state will be used to validate that the "Rejection Reason" field is not empty. 3. Add a "Show Message" action in the intermediary state that will display a message if the "Rejection Reason" field is empty. 4. Add a transition from the intermediary state to the rejection state. This transition should have a condition that checks if the "Rejection Reason" field has a value. 5. Add a transition from the intermediary state back to the pending approval state if the "Rejection Reason" field is empty. Here is a simplified example of how this could look in your workflow:
javascript
// Intermediary State
{
"name": "Validate Rejection Reason",
"actions": [
{
"type": "Show Message",
"condition": "isEmpty({custbody_rejection_reason})"
}
],
"transitions": [
{
"toState": "Rejected",
"condition": "!isEmpty({custbody_rejection_reason})"
},
{
"toState": "Pending Approval",
"condition": "isEmpty({custbody_rejection_reason})"
}
]
}
Please note that this is a simplified example and the actual implementation may vary based on your specific requirements and NetSuite setup.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/14/2025, 3:33 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.865173399
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.857177734
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842834651
Celigo AI
10/14/2025, 3:33 PM