Asynchronous Apex

|
| By Rushali kashyap

Asynchronous Apex in Salesforce allows developers to execute operations in a separate thread, enabling tasks to run in the background without impacting the user experience. This approach is particularly beneficial for handling long-running processes, callouts to external systems, and operations

Salesforce | Set CreatedDate for s-object records in test class

| By Webner

In some cases, we need to set CreatedDate for records. setCreatedDate() method can be used to set CreatedDate for records. For Example : Set createddate for a contact in test class Contact con = new Contact() con.FirstName=’Firstname’; con.LastName=’LastName’; insert con;

Using UNION syntax in CakePHP 2.4.6

| By Webner

Following UNION syntax works properly in CakePHP 2.4.6 version but it doesn’t work in CakePHP 2.5.2 version: $unionQuery = $dbo->buildStatement ( array( ‘fields’ => array( required fields), ‘table’ => $dbo->fullTableName(database_table_name), ‘alias’ => ‘customObject1’, ‘limit’ => null, ‘offset’ => null, ‘joins’

Salesforce | How to call apex method using Javascript

| By Webner

We can call apex method from javascript using JavaScript remoting. Javascript remoting has three main parts : 1. Invoke remote method written in javascript method on Visualforce page. 2. Remote apex method contains an annotation @RemoteAction. 3. The response handler