Force.comに関するブログ文章やメモです。
KISS principle for apex code with List and Map in Salesforce
- Mar
- 17
- Posted by Lin
- Posted in APEX, 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 moreAuto Create VF-Controller-DTO-DAO-Code
- Jan
- 20
- Posted by Xiaoyong Huang
- Posted in Other
SalesforceXyTools Auto Create VF-Controller-DTO-DAO-Code Hello,I am Exia.huang. Today I will show you how to create VisualForce/Apex quickly by using SalesforceXyTools. There are 5 steps. Find the menu below. [SFDC-XY]->[SFDC Code Creator]->[Create VisualForce/Controller/DTO/DAO Code] Select your Sobject. I will select Blog__c. Select Custom Fields Or All Fields. I will select custom fields-Include Validate. The sobject of […]
read moreRapid development tools for Salesforce.(SalesforceXyTools)
- Jan
- 18
- Posted by Xiaoyong Huang
- Posted in Other, Salesforce
SalesforceXyTools SalesforceXyTools for Sublime Text is Rapid development tools for Salesforce Development. Auto Create Apex Test Class Code, Auto Create Test Data For Apex Test Class. SFDC Dataviewer, SFDC Online Dataviewer. SObject Viewer, SObject Description, Export SOjbect Fields to Excel Atuo Login SFDC. SOQL Query, Tooling Query, Run Apex Script. How To Install? How To […]
read moreBatch Apex running mode (parallel and series) and how to maintain state in it
- Jan
- 09
- Posted by Lin
- Posted in APEX, Salesforce
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 moreForce.com command-line tool : Force CLI and Salesforce DX
- Nov
- 08
- Posted by Lin
- Posted in Metadata API, Other, Salesforce, Salesforce DX
The Force CLI is an open source app, which is written in Go, it allows us to work with Force.com data directly from the command line. Sometimes we might confuse Salesforce DX with Force CLI, which made its debut during the Salesforce For Developers Keynote 2016, as the two commond-line tools looks very similar, so […]
read moreSalesforce Mass Editor (Chrome Extension) – Mass create, mass update, mass clone, mass delete on any list view. Support for both Classic and Lightning!
- Oct
- 28
- Posted by Lin
- Posted in Apps, Salesforce
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. Support for both Classic and Lightning! ・Export record data to CSV […]
read moreInstantiating an Apex class based on dynamic string name with Type class
- Sep
- 30
- Posted by Lin
- Posted in APEX, Salesforce
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 moreWriting a Schedulable Batch Apex in Salesforce
- Sep
- 26
- Posted by Lin
- Posted in APEX, 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 moreUsing Aggregate SOQL queries/results in Batch Apex
- Sep
- 26
- Posted by Lin
- Posted in APEX, Salesforce
In previous post, we had created a schedulable batch apex that implements Database.Batchable<sObject> in Salesforce, but if you want to use SOQL having aggregate functions like SUM(), MAX(), COUNT() on results grouped by “GROUP BY” clause in start execution, changing to interface Database.Batchable<AggregateResult> isn’t a workable way, because it fails with the below compile error […]
read moreZip attachments only with Apex in Salesforce
- Sep
- 07
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
Before this post (about 2 years ago), I’d shared a post that is about how to zip attachments with JSZip and Apex in Salesforce, and recently I found a more simple way to do that thing, which is only using an Apex library named “Zippex” ( view on Github). Here is the outline of my […]
read moreRecent Posts
- Salesforce DevTools Release Notes (version 3.10.0) – mass edit custom fields on lightning
- Salesforce DevTools Release Notes (version 3.9.0) – Object Fields, SOQL Query Editor
- Salesforce DevTools Release Notes (version 3.8.0)
- Salesforce DevTools JUST HIT 10,000 USERS! THANK YOU!
- Using Promise for Apex Server-Side request in Lightning Component
Top Posts
- Salesforce DevTools – Powerful Salesforce developer tools, loved by over 50K developers - 217.7K views
- Date format and DateTime format - 201.9K views
- Salesforce Mass Editor (Chrome Extension) – Mass create, mass update, mass clone, mass delete on any list view. Support for both Classic and Lightning! - 157.5K views
- Setup an awesome Salesforce developer environment with Sublime Text 3 - 121.8K views
- Writing a Schedulable Batch Apex in Salesforce - 116.9K views
Categories
- APEX
- Apps
- Custom Label
- Custom Metadata
- Custom Setting
- Design & UI
- Event
- Heroku
- iOS & Object-c
- Lightnint Component
- Linux & Mac OS
- Metadata API
- Node.js
- Open Source
- Other
- PHP Framework
- Release Notes
- REST API
- Salesforce
- Salesforce DevTools
- Salesforce DX
- SOQL
- Tooling API
- Unit Tests
- Validation Rule
- Visualforce
- WordPress
You must be logged in to post a comment.