Apex

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…

Salesforce

Formula field to generate Case ref number

Case ref number used in Email communication. v2

 

Salesforce

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:

   

Apex

Time Zone Offset in Apex

http://www.laceysnr.com/time-zones-hurt-my-brain-one-way-to-get/

   

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

Apex String Case Insensitive and ID

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

And

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

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: