Salesforce Fact #640 | At least one line item

Suppose once an opportunity is added with a related opportunity line item, it needs to have at least one line item from then on. We cannot delete all the related line items.

We can implement the same using the HasOpportunityLineItem field in a validation rule.

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow