Salesforce Fact #818 | Simplified exists check in Map with null coalesecing

Suppose, we want to check if a key does not exist in map or if the corresponding value is null, then it needs to be updated with the new value. With the new null coalescing operator, the exists check in map can be simplified.

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