I have created a workflow that sends an email to t...
# ask-stanley-ai
j
I have created a workflow that sends an email to the customer when a Sales Order is created. This workflow works correctly when the Sales Order is created within NetSuite, but it does not trigger when the Sales Order is created through the SuiteCommerce Advanced (SCA) website
c
AI generated answer (using internal Slack threads):
It seems like your workflow is not triggering when a Sales Order is created through the SuiteCommerce Advanced (SCA) website. This could be due to the fact that workflows in NetSuite are not triggered by changes made via the API, which is likely how the SCA website is creating the Sales Order. One possible solution could be to create a scheduled script that checks for new Sales Orders created via the SCA website and triggers the email workflow. This script would need to be scheduled to run at regular intervals to ensure that all new Sales Orders are captured. Here's a high-level overview of how you could set this up: 1. Create a Saved Search that identifies Sales Orders created via the SCA website. You could potentially use the 'Web Site' field on the Sales Order record to identify these. 2. Create a Scheduled Script that runs at regular intervals (e.g., every 15 minutes). This script would use the Saved Search to identify new Sales Orders created via the SCA website. 3. In the script, for each Sales Order identified by the Saved Search, trigger the email workflow. You could potentially do this by setting a custom field on the Sales Order that the workflow is set to trigger on. Please note that this is a high-level solution 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. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858540356
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853640318
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853276193
Please provide your feedback on this answer.