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

javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher

| By Webner

We were getting following exception when trying to decrypt data using Cipher: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher Actually we were using three layers of encryption with three different secret keys. Everything was

Salesforce | How to get Salesforce lookup field object id using javascript

| By Webner

Suppose we have the following lookup field on a VF page: <apex:inputField id=”owner” value=”{!Event.Ownerid}”> </apex:inputField> To get value of above lookup field using field id in javascript, if we directly use document.getElementById(‘{!$Component.owner}’).value, it will return the text that is displayed

Salesforce | [message:protected] => INVALID_LOGIN: Invalid username, password, security token; or user locked out

| By Webner

While upserting records using SFDC php API we were facing following exception : [message:protected] => INVALID_LOGIN: Invalid username, password, security token; or user locked out. This exception was showing up frequently when we were upserting records using PHP API. The

Linux | Multi Factor Authentication (MFA) without password

| By Webner

When implementing Multi Factor Authentication (MFA) for linux server with ssh-key and google-authenticator only with no password it was prompting us to enter password for user but we wanted authentication without password. Steps to solve this: 1.  Install google authenticator

Salesforce Integration | Upsert multiple records with single connection in PHP

| By Webner

When we create connection with “SforceEnterpriseClient”, we can upsert one record and then we need to recreate connection for next upsert, which eventually can result in the exception: “UnexpectedErrorFault: REQUEST_LIMIT_EXCEEDED: TotalRequests Limit exceeded.” The solution is to use “SforcePartnerClient” instead

Java | What is the default location for maven repository and how we can modify it

| By Webner

To print maven default configurations, run following command: Command: mvn -X This will show you maven default configurations similar to following: Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.7.0_79, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-i386/jre Default locale: en_IN, platform