Salesforce Fact #523 | Opportunity CloseDate validation

Suppose we have a use case where we need to implement a restriction that the Opportunity Close date can only be the last day of the month. We can implement the below validation rule:

CloseDate <> ADDMONTHS(CloseDate, 1) - DAY(ADDMONTHS(CloseDate, 1))

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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