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
Moodle | How to set a course as completed
Following are the steps to complete a course in moodle by admin : 1. Open the course that you want to complete. 2. To the left side there will be a link of “Edit Settings”. In this link there will
Heroku – Session expires or gets deleted on every commit
Session expires or gets deleted on every commit in Heroku Follow these steps to fix this problem: 1. Install MemCachier addon in your heroku app 2. Create .user.ini file in your Heroku app and write following code in the file:
Cannot Start Apache Service
It’s a common problem while starting XAMPP, especially for Skype users. The default port used by both Skype and Apache is 80. In order to use both of them you should change the port number for one of them. Here
Shared Hosting | Absolute location of a file
If you want to access a file on a shared hosting server by specifying its absolute location it may not work. The reason is what we see on shared hosting as root folder actually may have more before it that
Mobile App development | Flipper view not showing some images
When mobile developers create an application, whether in Android or iOS, they often face challenge of mobile device fragmentation. Mobile device fragmentation in simple words means when an application is not able to run on some devices while it runs
Salesforce – To Fetch and process more than 50000 records
To Fetch and process more than 50000 records in Salesforce Problem We want to fetch more than 50000 contacts and want to process them but are not able to do that due to salesforce Query limit. Solution Batch apex is
PHP Code | Connect to remote SFTP location on Windows
We need to use the phpseclib library to connect to SFTP server: $sftp = new Net_SFTP(‘www.webnersolutions.com’); if (!$sftp->login(‘user_name’, ‘password’)) { exit(‘Login Failed’); } $this->downloadfiles($sftp->nlist()); //to download all files on remote root folder
Amazon S3 and PHP | How to list only top level folders in a bucket
Sample code: $result= $client->listObjects(array(“Bucket” => $bucket,”Delimiter” => “/”)); $files = $response2->getPath(‘Contents’); foreach ($result[‘CommonPrefixes’] as $object) { echo $object[‘Prefix’]’; } This will list only the top level folder. If we do not use delimiter with listObject function then it will give
Salesforce | How to recover data deleted by mistake
Salesforce provides facility to create multiple copies of organization’s data in different environments for testing and training purpose without affecting the original data. Sandboxes are of three types – Configuration Only Sandbox, Developer Sandbox, Full Sandbox. Configuration only Sandbox is