We allow Consumers to purchase from our website, b...
# suitecommerce
t
We allow Consumers to purchase from our website, but our Sales Operations team wants to review each of these order before they get released to our warehouse, we have a Sales Order Approval workflow that checks sales orders as they come in and if everything is good, the order gets released to our warehouse. I added a State with Actions to try and catch the orders that come in from our Website, I have to flags, one is we use a Sales Channel Segment to indicate the order was from the website and is a consumer, I also use the Source field, which is a native NetSuite field. The problem is the state/actions do not catch the orders, I have tried multiple triggers (Entry, After Record Submit, Before Record Submit) all of which do not work, I either get an error indicating that the record is not a new record so it can not trigger, or it does not trigger at all. I have even used a saved search as the condition but it still does not catch the order. If I re-run the Sales Order Approval workflow after the Sales Order is saved, it does work. Is there something weird about how Sales Orders from the Website are saved in NetSuite.
s
Stepping back for a moment, have you set the global default to Pending Approval rather than Pending Fulfilment?
Because generally that is how we recommend you manage this type of situation
t
Yes, but the Order is not stopped by the Actions I created, the order completes the workflow and gets set to Pending Fulfilment, which releases it to the warehouse, I need the action to check the Sales Channel and the Source and if they match what I indicate, the order is put on hold, we have a custom field that get populated, and if there is a value in that field, the workflow does not transition to the next state until that field is cleared.
I am trying to find where I read this, but I thought I found something about the Source field is not populated until the order is saved or something along that lines.
t
often times Web Store and Web Application is omitted from workflows and actions by default in the context field. regarding values I have seen weird values in some contexts like Rest Web Services and Suitecommerce. For Suitecommerce one time a date field was treated as text. For Rest web services the order status was null (whereas it defaults in other contexts)
t
Web Store was select, but not Web Application, I added that, and I will see if maybe that will help. Thanks
We just had an order come in, and the system did not flag it, this is the error I get. If I change the Event to anything else, it does not even attempt the action. But if I resubmit the order, it gets caught. Its weird, the odd thing is, it has worked in the past.