in the sales order lines, can i filter the items s...
# ask-stanley-ai
n
in the sales order lines, can i filter the items select field based on a role ?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that you cannot directly filter the items select field in the sales order lines based on a role. However, there are a few workarounds that you can consider: 1. Saved Search: You can create a saved search to only show the items you want to be selectable. Then you can select that saved search on the sales order form customization screen by going to Sublist Fields, then there is a select box called "item filter" where you'd select the saved search you created. 2. Scripting: You can use SuiteScript to control the visibility and editability of the sales order lines based on the user's role. For example, you can use the
validateLine
function to prevent users from editing lines that they should not be able to edit. You can also use a
beforeSubmit
in a user event script to control the fulfillment of the sales order lines. Please note that these are workarounds and may not perfectly fit your requirements. Also, manipulating sublist rows via scripting can be tricky and may require a good understanding of SuiteScript. ****** 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.840026915
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820068359
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820007384
Please provide your feedback on this answer.