johnsontitusJun 17, 20204 min readCreate a Connected AppA connected app is a framework that enables an external application to integrate with Salesforce using APIs and standard protocols,...
johnsontitusJun 15, 20202 min readExposing Apex Classes as REST Web ServicesSteps to expose your Apex class and methods to external applications: # Define the Apex class with the @RestResource(urlMapping='/yourUrl...
johnsontitusJun 12, 20201 min readCustom Metadata for storing application configuration dataA newer alternative to custom settings forstoring configuration data is called custom metadata. As with custom settings,custom metadata...
johnsontitusJun 12, 20201 min readCustom settings for storing app configurationCustom settings can be used for storing app configuration data that is cached instead of storing in the database. This helps in quickly...
johnsontitusJun 6, 20202 min readUse of static variables in Apex Triggers and Unit TestingEg: Trigger on a contact to send email when its owner changes. It uses Apex class to handle the logic. trigger ContactOwnerChangeTrigger...
johnsontitusJun 2, 20201 min readExamples of Solution DesignUse case - when an order is placed on SF app, a notification should be sent to an external service that will process the order and a...
johnsontitusJun 1, 20202 min readRudimentaries of SLDS<apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">...
johnsontitusMay 31, 20201 min readInnerClass, Interface, Virtual and Abstract classpublic with sharing class OuterClass { //Static final variable - outer class only public static final Integer MY_INT; ...
johnsontitusMay 30, 20201 min readVisualforce uses RemoteObjectModel to retrieve datahttps://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_remote_objects_example_simple.htm?search_text=remote
johnsontitusMay 29, 20203 min readGeneral Use casesA case is entered and submitted on an external web form. It gets created on Salesforce. On Salesforce there should be a mechanism to find...
johnsontitusMay 29, 20201 min readUsing List of ListsList<List<Integer>> l = new List<List<Integer>>(); List<Integer> k = new List<Integer>(); for(Integer ctr=0; ctr<3; ctr++ ){ for(Integer...
johnsontitusMay 29, 20205 min readEinstein Next Best ActionTo set up Einstein Next Best Action, follow these simple steps: Define a set of recommendations. prerequisite: There should be a flow...
johnsontitusMay 28, 20201 min readUsing SLDS in Visualforce pageYou don’t have to upload the Lightning Design System as a static resource. That means you can keep the syntax of your page simple...
johnsontitusMay 27, 20201 min readUse cases for Aura componentsAccordion: Similar to menu items, clicking on an item displays its content. You can embed html tags or components in it. Check the link...
johnsontitusMay 26, 20201 min readEntry point for Synchronous and Asynchronous methodspublic with sharing class futureexperiment { private static Boolean futuresent = false; public static void test2() { //entry point for...
johnsontitusMay 26, 20201 min readExternal events that triggers Apex executionDML operation that triggers Apex Trigger Scheduled Apex that executes at the scheduled time Batch Apex method that called regularly...
johnsontitusMay 26, 20201 min readList & Map//Account a = new Account(name='Account14', Type='Prospect'); //Account b = new Account(name='Account15', Type='Prospect'); /* //defining...
johnsontitusMay 26, 20201 min readCustom Iterator to traverse through collectionsAn iterator traverses through every item in a collection. Use case - where we need some complex logic to build scope of the batch or for...
johnsontitusMay 25, 20201 min readWriting dynamic soqlDynamic SOQL refers to the creation of a SOQL string at run time with Apex code. Dynamic SOQL enables you to create more...