Setup Salesforce DX IDE environment with Visual Studio Code

Author Archives: Lin

Salesforce Developer Event in Japan (2017)

100㎡を超える会場空間で2時間、Salesforce技術のことや、プロジェクトのことなど、ごゆっくり話し合いましょう。 開催日時 2017年7月23日(日) 開催時間 14:00 ~ 16:00 会場 東京都墨田区亀沢4-21-3 ケイエスビル3階 co-lab墨田亀沢 参加費 1,000円(軽食、ドリンクあり) 申込方法 調整くん(こちら)をご記入の上で、当日会場までお越し下さい 会場情報 JR中央・総武線 錦糸町駅から徒歩9分 都営大江戸線 両国駅から徒歩14分 都営浅草線 本所吾妻橋駅から徒歩15分

read more

Using URL parameters on Salesforce standard pages

Salesforce has many URL parameters can be used on its standard page, with this kind of parameters, you can do some URL hacking on it, as below: Note: All of parameters must be encoded with UTF-8. Login page There are two ways to login and access into Salesforce from url. 1. https://<SFDC Instance Url>/ Parameter […]

read more

KISS principle for apex code with List and Map in Salesforce

Here are some KISS (Keep it simple, stupid) principles for cleaning our apex code with List and Map in Salesforce, as Linus Torvalds said: “Talk is cheap. Show me the code”, let me show you as below: Initialize Map Normal KISS principle Select(SOQL) to Map Normal KISS principle Initialize List Normal KISS principle Map keys […]

read more

Batch Apex running mode (parallel and series) and how to maintain state in it

In my early post, I’d shared about how to write a Schedulable Batch Apex in Salesforce, and I’ll show you how transactions run in batch Apex and how to maintain their state across these transactions in this post. Batch Apex running mode (parallel / series) As we know, each execution of a batch Apex job […]

read more

Salesforce Mass Editor (Chrome Extension) – Seconds to make any standard list view to be a powerful mass editor

This’s my second Chrome Extension (First one is HERE) this year, named “Salesforce Mass Editor” and it supports for doing the below things : ・Makes any Salesforce list view to be a powerful mass editor. ・Mass insert, mass clone, mass update, mass delete, ALL-IN-ONE. ・Export record data to CSV file. ・Mass copy & paste from […]

read more

Instantiating an Apex class based on dynamic string name with Type class

Somtimes we need to instantiate a Apex class by dynamic value in Salesforce, which can make our program more modular and more readable, such as the below case : 1. Each Contact has its socail fields : “Type__c” and “AccessToken__c” 2. Needs to request its profile via socail api in Apex First we need to […]

read more

Writing a Schedulable Batch Apex in Salesforce

To use batch Apex, you have to create an Apex class that implements interface Database.Batchable in Salesforce, like the following sample code: Execute batch Then you can use Database.executebatch method to execute it. Schedule Apex job To schedule your batch Apex to run at regular intervals, you also need an Apex class that implements interface […]

read more