How to check and display based on the list size in Salesforce Visualforce Page and Apex?
Sample Code: Visualforce Page: <apex:page controller="SampleVFPageController"> <apex:form > <apex:pageBlock > <apex:pageBlockSection > ....
Sample Code: Visualforce Page: <apex:page controller="SampleVFPageController"> <apex:form > <apex:pageBlock > <apex:pageBlockSection > ....
replaceAll() method can be used to remove all non-numeric present in a variable using Apex in Salesforce. Sample Code: String str = 'abc123xyz!@#$%^&*()_+'; String myOutStr = str.replaceAll( '[^0-9]', '' ); ....
1. Future MethodWe can avoid Mixed DML issue by running two different transactions. Call outs to the external Web Services can be executed asynchronously.2. Batch ApexMainly used for large data ....
Standard Messaging Session Transfer feature is not currently available in Salesforce. Vote for the following idea for the standard Messaging Session Transfer feature in Salesforce. https://ideas.salesforce.com/s/idea/a0B8W00000GdmJtUAJ/messaging-agent-transfers If the above Standard ....
Chat Session records are stored in LiveAgentSession entity. Following Sample code can be used to delete the Chat Session records permanently(hard delete). Sample Code: List < LiveAgentSession > listLiveAgentSessions = ....
KnowledgeArticle is parent entity. KnowledgeArticleVersion is child entity. When a new Knowledge Article is created, it creates an entry in KnowledgeArticle and also in KnowledgeArticleVersion. When a new Knowledge Article ....
Sample Code: public class SampleQueueableClassWithFinalizer implements Finalizer, Queueable { private String strError; public void execute( QueueableContext ctx ) { try { ....
ContentNote entity should be used to create Notes. ContentDocumentLink entity should be used to link it to the records. Sample Code: ContentNote objCN = new ContentNote(); objCN.Title = 'Test'; objCN.Content ....
We cannot create a class with the names Account, Contact, Opportunity, etc. These are Standard object names. They are reserved keywords in Salesforce. So, you cannot use reserved keywords for ....
Sample Code: Visualforce Page: <apex:page controller="SampleVFPageController"> <apex:form> <apex:actionFunction name="onAccountChange" action="{!fetchAccount}" reRender="selAccName"/> <apex:pageBlock> <apex:pageBlockSection> <apex:selectList value='{!selectedAccount}' label="Select an Accont" onchange="onAccountChange()"> <apex:selectOptions value="{!listOptions}" /> </apex:selectList> </apex:pageBlockSection> <apex:pageBlockSection> <apex:outputPanel id="selAccName"> Selected Account name ....