Type of external salesforce connect
Ways to Connect External System Using Salesforce Connect in Apex Salesforce supports 3 way to connect external system using Salesforce Connect oData 2.0 or oData 4.0Cross Org AdapterCustom Adapter using Apex Connector Framework oData 2.0 or oData 4.0: oData is Open Data Protocol. REST
How to find number apex batch class in my org?
How to Find Number Apex Batch Class For Salesforce in Your Org? Please run below script in developer console anonymous or workbench anonymous window. You will receive email with csv file attachment. list<ApexClass> lstApex = [SELECT Id, NamespacePrefix, Name, ApiVersion, Status, IsValid,
Apex Interactive Debugger
Apex Interactive Debugger The Apex Interactive Debugger is a developer tool to debug our code step by step (like .net and java Breakpoint). You can see the real time variable result in Force.com IDE in Eclipse. It is generally available now. If
Alternative solution for Apex Batch job? Apex Queueable – Use Case
Alternative Solution For Apex Batch Job? Queueable – Use Case Many client have apex batch queue limitation – means only 5 apex queue can be execute at same time, many client crossing 5 queue and waiting for long time in “Queued”
How to use DateTime in Dynamic SOQL Query Where Condition?
How to Use Datetime in Dynamic SOQL Query in where Condition? There are many place we use DateTime in Where condition. There are many people having trouble to use developer console or dynamic SOQL query to pull data based on DateTime
Over come 200 record update limit on OnClick Javascript button click
Over Come 200 Record Update Limit on OnClick Javascript Button Workaround : If really business want to update more than 200 records you can call apex class webservice method inside OnClick Javascript. Please use below sample code Apex Class : global with sharing
How to create custom label?
How to Create Custom Label? & Uses of Custom Label in Salesforce 1. go to setup under your name 2. Left side menu –> go to Build –> Create –> Click “Custom Label” 3. Click “New Custom Label” button and populate required values
How to Display Error/Information messages in Visualforce Pages
Learn How to Show Error/Information Message in Visualforce Page Many case user want to display multiple error/warning/information message in the UI(Visualforce Page). Please find below sample code Apex Code : ApexPages.addmessage(new ApexPages.message(ApexPages.Severity.Info, 'Please fill all manfaroty fields.')); ApexPages.addmessage(new ApexPages.message(ApexPages.Severity.Error, 'Name is manfatory.')); ApexPages.addmessage(new ApexPages.message(ApexPages.Severity.WARNING, 'Need
Schedule managed package controllers using Developer Console
Schedule Managed Package Controllers Using Developer Console Many case we will get request to schedule apex class for specific time that is not possible through OOB functionality. So we have to us developer console to schedule job like 12:15 AM, 1.15
Get Record Type ID without SOQL Query
Many scenario’s developers hard coding record type id or name in the apex class or test class. Please refer below sample code to get id or name without SOQL query Record Type Id by Name Record Type Name , ID map collection