Ricardo Contreras
05/21/2025, 2:11 PMCeligo AI
05/21/2025, 2:11 PMAI generated answer (using internal Slack threads):In NetSuite, you can update the state values by creating a custom field and using a script or a workflow. Here's a detailed process: 1. Create a custom field on the Item Record, for example, "do not sell in states". Make it a multi-select field and set it for items that have these restrictions. 2. Use standard field sourcing to source those values into a custom transaction line field. 3. Use a Client script to compare the Ship To state to the value(s) in that custom line field and display an Error dialog or Message error to the user saying "These items cannot ship to this state". Alternatively, you can achieve this without scripting by using saved searches and possibly a workflow: 1. Create the custom item field as mentioned above. 2. Make a saved search on sales order with mainline false. Add a formula text with the formula
NS_CONCAT(DISTINCT(CASE WHEN {shippingstate} IN({item.donotshiptostate}) THEN {item} END))
with a summary of MAX.
3. Use that saved search to source a custom body field on the Sales Order (SO).
4. You can then use that field in conditions to trigger emails, Confirm or Return User Error action, or even populate an Inline HTML field like a banner message at the top of the SO.
******
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
05/21/2025, 2:11 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821139097
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816790879
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810961425
Celigo AI
05/21/2025, 2:11 PM