Discussions
Script to Restrict Access to Sales Team Sublist Actions
We recently turned on the Team Selling feature. Previously we prevented employees from editing the Sales Rep field on a Customer record by using a workflow to set the field as Inline for certain Roles. However, now that we are using Sales Teams, and the sales rep is set in the salesteam sublist, I am not sure how to restrict this. I tried using nlapiDisableLineItemField(), but this only disables certain fields on the sublist line item, but still allows user to add or remove lines. What I really need is a way to disable a sublist in certain situations. Is