APEX関連
Bulk Approval Processing from List View in Salesforce
- May
- 13
- Posted by Lin
- Posted in APEX, Salesforce
I have shared “Approval Processing with Apex in Salesforce” in previous post, and in this post, I’ll continue to share the way of bulk approval processing from Salesforce list view. The outline we need to do is as below : ・Add a custom button for list view ・Set List View Layout ・Add a Apex Class […]
read moreApproval Processing with Apex in Salesforce
- May
- 13
- Posted by Lin
- Posted in APEX, Salesforce
An approval process is an automated process your organization can use to approve records in Salesforce. Usually we can request/approve an approval process through the standard approval process feature, but we can also do those things with Apex in some cases such as : request/approve from VF Page or from Custom Button. Here is Approval […]
read moreDisplay Address type field on Visualforce Page
- Apr
- 06
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
Address is an especial type of fields in Salesforce, which is a structured compound data type, that we can’t use it directly on Visualforce page. And there will occure a compile error like “Unsupported type: common.api.soap.wsdl.Address used in expression: record.BillingAddress”, if we did that. As the code sample below, we need to use fields BillingStreet, […]
read moreFix ‘Error: Field is not writeable’ for Master-Detail relationship
- Mar
- 29
- Posted by Lin
- Posted in APEX, Salesforce
An error “Error: Field is not writeable” will occur if you try modifying a Master-Detail relationship field in Salesforce Apex code. So how can we fix it? Maybe using the clone method to insert&delete is the only way, as the following apex code : Reference:Apex System SObject Clone Enjoy It!
read moreUsages of ID class in Salesforce
- Mar
- 08
- Posted by Lin
- Posted in APEX, Other, Salesforce
As we know that each record Id represents a unique sObject record. There are two versions of every record Id in salesforce : ・15 digit case-sensitive version which is referenced in the UI ・18 digit case-insensitive version which is referenced through the API And there are many usages of sObject ID,such as: Get the sObject […]
read moreCalculate the difference between two DateTimes in Salesforce
- Dec
- 25
- Posted by Lin
- Posted in APEX, Other, Salesforce, Visualforce
In Formula Calculate the second difference between two DateTimes. In Visualforce Page Calculate the second difference between two DateTimes. In Apex ※A “Date/time arithmetic expressions must use Integer, Decimal or Double arguments” error will be occurred, when we subtract between two DateTimes directly like Formula.
read moreLine break character may be escaped by JS in VF Page
- Nov
- 13
- Posted by Lin
- Posted in APEX, Salesforce, Visualforce
The line break character may be changed, if it is sent from Visualforce Page with Ajax(Such as apex:commandLink and apex:actionfunction). Let me show you a sample first. Sample Code Visualforce Page Apex Class Results Click [Compare By Submit] button, and the compare result is “true”. Then click [Compare By Ajax] link,we will find the compare […]
read moreTwo ways to use SOQL IN clause
- Nov
- 09
- Posted by Lin
- Posted in APEX, Salesforce, SOQL
With binding set of Ids We can have a simple SOQL statement like this: Or direct from keySet of Map With binding list of sObjects Actually,There has another way to use IN clause like this: Enjoy it!
read moreSalesforce ContentDocument sObject in Apex Unit Tests
- Sep
- 08
- Posted by Lin
- Posted in APEX, Salesforce, Unit Tests
ContentDocument object does not allow insert DML operation in Salesforce, but we can create it through the ContentVersion object, without ContentDocumentId, then a new version of ContentDocument will be created for us in SFDC, just like the sample code below :
read moreSalesforce CategoryNode sObject in Apex Unit Tests
- Sep
- 01
- Posted by Lin
- Posted in APEX, Salesforce, Unit Tests
In Salesforce,DML operation is not allowed on CategoryNode sObject,even in Unit Test. Although the 《Force.com Apex Code Developer’s Guide》 does not mention it clearly,that CategoryNode object can be accessed in Apex Tests, we have to prepare CategoryNode data first in Setup interface.by clicking Customize > Solution > Solution Categories. The following is the sample code […]
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 - 219.6K views
- Date format and DateTime format - 204K views
- Salesforce Mass Editor (Chrome Extension) – Mass create, mass update, mass clone, mass delete on any list view. Support for both Classic and Lightning! - 158.4K views
- Setup an awesome Salesforce developer environment with Sublime Text 3 - 122.3K views
- Writing a Schedulable Batch Apex in Salesforce - 118.8K 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.