Salesforce Fact #305 | String.valueOf() fails silently on NULL value

It is always good practice to check whether the value is NULL before applying any function on it. However, just in case we missed to check that and if the value is NULL and if we are using String.valueOf() function, then it will fail silently and would impact the subsequent processing.

So we need to be extra careful while working with String.valueOf().

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