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
WordPress | Developing Custom scheduler in WordPress
Suppose you want to design a custom scheduler in wordpress plugin instead of using wordpress scheduler which has fixed values of recurrence which are ‘hourly’, ‘twicedaily’,’daily’. And if you want to make the scheduler dynamic instead of making it static
Salesforce | How to add new line character to formula field
Solution: You can add a newline character to formula field by using BR() function. For Example: Formula Field value: “Manager Schedule: Name, DOB, CDL #, Yrs Management Experience, Hire Date” & BR() & “Vehicle Schedule: Year, Make, Model, VIN, and
Salesforce | Send daily emails using workflows till the status changes
We have a custom object Survey and it has a status field with the values: New, Pending and Purchase. When Survey is in Pending status we want to send email to the user on every second day till the status
Salesforce | Formatting date and numbers on VF page
Problem: How to format output text field value on VF page and also number formatting? Description: In a situation I have date field on the vf page which is binded to date field having value in format “Thu Dec 1
Javascript | Adding days to date string and displaying in specific format
Suppose we want to add a number of days to given date string. For this, it can be done as follows: var givenDateString = “2016-10-10”; var dateObj = new Date(givenDateString); // Converting date string to date Object to perform any
Java Struts | How to remove the action extension in Struts 2 framework
In struts.xml file of your web project, replace value for constant named “struts.action.extension” to as shown below : <struts> <constant name = “struts.action.extension” value=”,”> </constant> <!– we have set value for this constant to comma that means no extension as
Salesforce | Editing a task assigned to another user by task owner
Problem: Task owner was not able to edit the task which is assigned to other user. I have a situation where a system admin assigns a standard user as an owner of the lead. Like in my case Abc is
Salesforce | Fetch all the tasks related to an sfobject
Description: I have a situation where I want to fetch all the tasks related to the account object. Solution: You get all the task records which belong to any of SF object using single SQL query. For Single object: For
PHP | Only first word showing in textbox from assigned sentence
Problem: After the first space in the string no data appears in the input field. There is an issue when a string contains words with spaces and we want to display the whole string in an input field but after