Salesforce raised its full-year forecast after posting better-than-expected profits.