Salesforce saw shares rise in afterhours trading after reporting better-than-expected earnings and providing a favorable financial outlook.