salesforce.isApp boolean value code example Example: apex string to boolean Boolean b = Boolean.valueOf(str);