Salesforce, a cloud-services company that targets businesses, has announced that it will acquire workplace communication service Slack for $27.7 billion.