Category: Salesforce

Integrations Playbook: Platform Events, Named Credentials, External Services

Platform Events pattern // Publish when Opportunity is Closed Won Opportunity_Won__e evt = new Opportunity_Won__e(OpportunityId__c = opp.Id); Database.SaveResult res = EventBus.publish(evt); Named Credentials HttpRequest req = new HttpRequest(); req.setEndpoint(‘callout:MyService/resource’); req.setMethod(‘GET’); Http http = new Http(); HTTPResponse res = http.send(req); External Services Resilience

Data Quality at Scale: Duplicates, Validation, and Bulk Loads

Dedupe Validation rules AND( ISPICKVAL(StageName, “Closed Won”), ISBLANK( CloseDate ) ) Bulk imports

Security 101: Profiles vs Permission Sets, FLS, and Sharing

Strategy Steps to implement Sharing tools

GitHub Integration with Salesforce

GitHub As developers, we want to collaborate code with our peers and other developers. GitHub is an online software development platform. It’s used for storing, tracking, and collaborating on software projects. The steps shown below needs a VS Code project with manifest ( package.xml) file and existing code Step 1: Sign in to your GitHub account. Create …

Continue reading

Lightning datatable with dynamic row action

Lightning data tables are very very common for aura components. We will see how see can we have different row action name and different behaviour for data table Here is the query  List<Resource__c> resourceList = [Select Id,Name,Week__c,Type__c,RecordType.Name,Resource_URL__c,Description__c,Curriculum__c from Resource__c where Curriculum__c IN :curriculumSet  ORDER BY Week__c ASC];  I will only include the relevant section in the aura component for better clarity Component Controller js Helper js As you can …

Continue reading

Salesforce admin interview questions and answers

What is Salesforce? Salesforce is the most popular customer relationship management (CRM) platform available today. It provides cloud-based CRM applications designed for use in sales, service, marketing, and much more. Businesses use Salesforce to manage business relationships and their associated data. What is CRM? CRM is an acronym for Customer Relationship Management, and it describes …

Continue reading

Converting collections in apex

List<Id> to List<String> Set<Id> to Set<String> List<String> to List<Id> Set<String> to Set<Id> Set to List of same data type List to Set of same data type