Author Archives: greysalesforce

Changing user email without asking for confirmation from the user

Whenever the administrator of a salesforce organization changes the email address of any user, the user receives a notification in the previous email address informing them of the change. In addition to this, an email is sent to the new address asking for confirmation. It is only after the user accepts the change by clicking… Read More »

Set controller variable/properties from JavaScript

Sometimes we need to pass values to apex code or assign the controller properties in JavaScript. Here is the trick that we can use to set a value to an apex variable/properties from JavaScript code using <apex:inputTextarea>  tag in Visualforce Page. <apex:inputTextarea id=”setDataStringValue” value=”{!setDataStringValue}” styleClass=”exampleDataToSetVariable” style=”display:none;”/> We will set the value ‘data’ in JavaScript function… Read More »

Number of Retries for JSRemote Call

In our previous blog post “Transaction aborted: timeout error in Salesforce“, we had written that changing the timeout parameter in JSRemote call from Visualforce page can help avoid the timeout error issue. But occasionally even after increasing the timeout parameter, the timeout error appears for a couple of times due to the fact that sometimes… Read More »