- InfallibleTechie Admin
- No Comments
Year: 2013
Hard Delete
Using Hard Delete operation, we can delete existing records from our Salesforce organization permanently. Deleted records will not be available in Recycle Bin. “Bulk API Hard Delete” check box should ....
Upsert operation in Salesforce
Upsert opeation makes use of the sObject record's primary key(Salesforce.com Record Id) or the external ID, if specified to determine whether new records should be created or else we have ....
How to remove space from a string in Salesforce?
deleteWhitespace() is used to remove spaces in a string in Salesforce. Sample Code: String str = 'Hello Hi'; system.debug(str.deleteWhitespace()); //HelloHi
SOQL
SOQL(Salesforce Object Query Language) is used to build a query to fetch data. As we write a query in SQL(Structure Query Language) with the columns and a table, here in SOQL ....
How to check whether my Batch Apex or Future Method or Scheduled Apex completed in Salesforce?
Go to Set up --> Jobs --> Apex Jobs to check whether my Batch Apex or Future Method or Scheduled Apex completed. Cheers!!!
Getting Null values from Custom Settings in Test class in Salesforce
Create records for Custom Setting to avoid null values from Custom Settings in Test class in Salesforce. Syntax: @isTest public class testClass { @TestSetup static void setupData() { SampleCustomSettings__c obj ....
Radar Chart using Visualforce and Apex in Salesforce
Sample Code: Visualforce page: <apex:page sidebar="false" Controller="Sample" showHeader="true" id="pg"> <apex:chart height="750" width="800" legend="true" data="{!data}"> <apex:legend position="left"/> <apex:axis type="Radial" position="radial"> <apex:chartLabel /> </apex:axis> <apex:radarSeries xField="memName" yField="tenthPercent" tips="true" opacity="0.4"/> <apex:radarSeries xField="memName" yField="twelthPercent" ....
How to disable and enable button in Visualforce page in Salesforce?
Sample Code: Visualforce page: <apex:page sidebar="false" Controller="Sample" showHeader="true" id="pg"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script> var $ = jQuery.noConflict(); function ....