In the context of Salesforce, here are the differences given between service cloud vs sales cloud:-
Sales Cloud
Salesforce’s sales cloud is a customer relationship management platform that is designed to help businesses managements and their sales process. The key features of this cloud are the following:-
Lead management
Opportunity tracking
Contact and account management
Sales forecasting
Sales performance Analytics
Service Cloud
Salesforce’s service cloud is a customer service and support platform that tries to enable the business to provide exceptional customer experience and also resolve customer issues efficiently. The key features of this are the following:-
Case management
Knowledge base
Omni channel support
Services level agreement
Customer self service portal
Here is the example given for salesforce sale cloud
// Apex code for Salesforce’s Sales Cloud (Example)
Public class SalesProcess {
Public static void createLead(String firstName, String lastName, String email) {
Lead newLead = new Lead();
newLead.FirstName = firstName;
newLead.LastName = lastName;
newLead.Email = email;
newLead.Status = ‘Open – Not Contacted’;
insert newLead;
}
Public static void updateOpportunityStage(Id opportunityId, String newStage) {
Opportunity opp = [SELECT Id, StageName FROM Opportunity WHERE Id = pportunityId];
Opp.StageName = newStage;
Update opp;
}
Public static void generateSalesReport(Date startDate, Date endDate) {
// Code to generate and email sales report based on specified date range
// This feature can be part of Sales Cloud analytics and reporting capabilities
}
}
Here is the example given for salesforce service cloud
// Apex code for Salesforce’s Service Cloud (Example)
Public class CaseManagement {
Public static void createCase(String subject, String description, String contactId) {
Case newCase = new Case();
newCase.Subject = subject;
newCase.Description = description;
newCase.ContactId = contactId;
newCase.Status = ‘New’;
insert newCase;
}
Public static void escalateCase(Id caseId, String assigneeId) {
Case escalatedCase = [SELECT Id, Status FROM Case WHERE Id = :caseId];
escalatedCase.OwnerId = assigneeId;
escalatedCase.Status = ‘Escalated’;
update escalatedCase;
}
Public static void createKnowledgeArticle(String title, String articleContent) {
Knowledge__kav newArticle = new Knowledge__kav();
newArticle.Title = title;
newArticle.Article_Content__c = articleContent;
newArticle.Language = ‘English’;
newArticle.KnowledgeArticleId = [SELECT Id FROM KnowledgeArticleVersion WHERE IsLatestVersion = true].Id;
insert newArticle;
}
}