Salesforce shares climbed about 7% in extended trading on Thursday after the software company reported better-than-expected quarterly revenue and raised its forecast for the year.

Here are the key numbers for the second quarter of fiscal 2020:

Earnings: 66 cents per share, excluding certain items, vs. 47 cents per share as expected by analysts, according to Refinitiv.

66 cents per share, excluding certain items, vs. 47 cents per share as expected by analysts, according to Refinitiv. Revenue: $4 billion, vs. $3.95 billion as expected by analysts, according to Refinitiv.

Revenue climbed 22% from a year earlier, the company said in a statement. Sales Cloud, the company's biggest product, generated $1.13 billion in revenue, up 13%, and Service Cloud, the second-largest division, grew 22% to $1.09 billion.

While Salesforce is still generating organic growth as more large businesses move their applications to the cloud, the company has also been on a spending spree to move into new areas and open the door to new expansion opportunities. Earlier this month, Salesforce closed the $15.3 billion acquisition of Tableau, by far its biggest deal ever, pushing into data visualization tools.

That follows last year's $6.5 billion purchase of MuleSoft, which put Salesforce into the business of data integration, more of a back-end technology.