"We felt like we needed a cloudking," said Cramer.
And Salesforce was first on their list if the market pulled back, said Marks.
They didn't get a lot of shares, but they explain why they think the company is "the best story in software" right now.
The company is on the "forefront of the digital transformation that's going on throughout the economy," said Marks. "Every CEO ...wants to unlock their data and they want to be smarter - and salesforce is doing that."
In addition, they are both big fans of CEO Marc Benioff so watch the video above to hear more about their decision to buy Salesforce and Benioff's thoughts on the economy.
Do you want more exclusive investing insight from Jim Cramer? Get 24/7 access to Jim's charitable-trust portfolio with a free trial to Action Alerts PLUS! You can also watch all of Jim Cramer's New York Stock Exchange live shows on YouTube.