how do i set a workflow to trigger on a transactio...
# ask-stanley-ai
m
how do i set a workflow to trigger on a transaction status change?
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To set a workflow to trigger on a transaction status change, you can follow these steps: 1. Create a new workflow in the NetSuite system. This workflow should be associated with the specific record type that you want to monitor for status changes (e.g., Invoice, Sales Order, etc.). 2. Set the trigger for the workflow. In your case, you want the workflow to trigger when the status of the transaction changes. This can be done by setting the trigger to 'On View' or 'On Edit' depending on your specific needs. 3. Add a state to the workflow. This state will contain the actions that should be performed when the workflow is triggered. 4. Add a condition to the state. This condition should check if the status of the transaction has changed. You can do this by comparing the current status of the transaction with the previous status. 5. Add an action to the state. This action will be performed if the condition is met. In your case, you want to fire a workflow action script. 6. Save and deploy the workflow. Please note that workflows are active on a particular record, so there's no way to have workflow actions happen without someone actively accessing/updating the record in some way either via the UI or CSV import. Also, it's important to note that the trigger event and the custom action event trigger should be properly set. For example, if you want the workflow to trigger when a vendor bill is approved, you could set the trigger to 'On Edit' and check if the status has changed to 'Approved'. Remember to set the conditions on the workflow level rather than the state level. And make sure you are checking the box using 'Before User Submit' and triggering the transition 'After Record Submit'. If you are still having trouble, you might consider creating a SuiteScript that checks for all invoices paid in full and use that to trigger the workflow.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846228838
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840937436
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83859551
Please provide your feedback on this answer.