Asynchronous Apex
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
Get Salesforce SObject name through Salesforce Record Id
Description : We have Salesforce recordId but need to identify what is the type of Sobject corresponding to this record id. Solution : We can get Sobject name from recordId with getSobjectType() function, sample code below: Apex Code : public
CakePHP bake: SQLSTATE[42S02]: Base table or view not found
While running cake bake command for cakephp 3.0 we got the following error: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘tablename .columnname’ doesn’t exist The culprit was a column with name test_id in one of the tables. As
Salesforce | How to replace depreciated custom component ‘HTML Area’ for home page
In the release of summer 14 Salesforce added the functionality of creating custom component for the home page. In the past we were able to write HTML code in Salesforce using the HTML area under custom components on home page.
Selenium IDE | Test a form with multiple data sets
If we have a Registration form and we want to test it with multiple datasets by using Selenium IDE then we have to follow these steps: 1. First, record the whole process of form filling with one set of data.
Salesforce | Convert DateTime to Epoch format
In Salesforce apex code, we can use DateTime class methods to convert date and time to required format. And in one such case we needed to get Datetime in epoch format, also known as Unix TimeStamp for saving date and
Heroku | Change PHP session timeout
In Heroku, there is no way to change HTTP session timeout (or some other php.ini settings) from user interface. For this create a file with name .user.ini and specify the properties in it. This file is to be created in
Moodle/Totara | Create custom fields for a course
Create custom fields for a course in Moodle/Totara. 1. Go to Site administration. Select custom fields inside Courses as shown below: 2. Select option – which type of custom field do you want (say, menu of choices): 3. Fill the
Selenium | Mass CSV file generation by fetching data from database
In a project we are working on there are large number of pdf files for which field mapping data is stored in the database. In this project pdf forms are auto filled with data from Salesforce. Which PDF form field
Font family looks regular in Ubuntu and Windows but looks bold in Mac
In one of our web development projects, we used font family named Calibri for breadcrumbs. This font worked fine on Ubuntu and Windows but on each browser of Mac fonts appeared bold. We wrote the following code for making the