salesforce FLOW_ELEMENT_ERROR WaitInfo

Salesforce process flow error occurred intermittently.: Debug message: FLOW_ELEMENT_ERROR||WaitInfo|myWait_myRule_01 WF_FLOW_ACTION_ERROR  (Scheduled Action) WF_FLOW_ACTION_ERROR_DETAIL|<b>An unhandled fault has occurred in this flow</b><br>An unhandled fault has occurred while processing the flow.  Please contact your system administrator for more information. The debug message doesn’t Read more…


Formula field to generate Case ref number

Case ref number used in Email communication. v2



Validation Rule Formula Owner Name

Special Users to ignore validation rules, add a check box on User object: IgnoreValidationRules__c Then add following formula code to each validation rule formula:

Get Owner Name from Queue via formula:

And Owner Name when owner is User:



Time Zone Offset in Apex




visualforce page contentType Excel file name chinese 文件名 中文

Using URL encoding 1. File name in Controller

 2. File name in vf page

Reference: https://tools.ietf.org/html/rfc5987     page.5  -> 3.2.2. Examples URL Decoder/Encoder: https://meyerweb.com/eric/tools/dencoder/

User Experience




Apex String Case Insensitive and ID

Apex is case insensitive: Below 2 statements are same to Apex:


If you want to compare 2 strings cases, you should use String.equals(String) method.

Apex is designed case insensitive because it works inline with case insensitive Read more…


Salesforce Formula Calculate Years and Months Between 2 Dates

To calculate Years and Months in Salesforce formula field between 2 dates. Use case: Calculate how many years and months work experience from an employee start work date. Formula Field, return Text: