Salesforce log - using main message variable when result object is not available