Force.com開発環境等

To Fix Error “Require TLS 1.1 for HTTPS connections” of MavensMate v6.0

Well, you may have found that MavensMate shows an error “Server raised fault: ‘UNSUPPORTED_CLIENT: TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or higher when connecting to Salesforce using https.” as below, if you are using MavensMate v6.0 in Sublime Text 3,which is because Salesforce disabled TLS 1.0 encryption recently, for […]

read more

Usages of ID class in 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 more

Calculate the difference between two DateTimes in Salesforce

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 more

Synchronize data between Postgres and Salesforce via Heroku Connect

Heroku Connect

Somtimes we need to built a Web App with standard open source stacks, like PHP, Node.js and Python,but manage and analytic data with Salesforce standard functions,like record CRUD,views and reports. Heroku Connect provides us a pretty simple solution for this case, that using bi-directional synchronization between Salesforce and Heroku Postgres,whatever standard objects or custom objects. […]

read more

Save approver automatically in Approval Processes with Process Builder and Flows

In previous post,I shared how to 《Create Roll-Up Summary field to count Contacts on Account with Process Builder and Flows》. In this post I will share about how to save approver(current user) to the target object automatically in Approval Processes, with Process Builder and Flows. Actually,this is another interesting usages of Process and Visual Flows. […]

read more

Write a Heroku Scheduler batch for MangoDB+Salesforce with Node.js

MangoDB+Salesforce

In previous post,I had shared how to 《Access Salesforce data via APIs(JSForce) from Outside Service》. In this post I will share about how to write a Heroku Scheduler batch for synchronizing MangoDB data to Salesforce with Node.js, like the below outline picture. ※I have no doubt that there have many ways to do connect between […]

read more

RunTest with Salesforce Tooling REST API (asynchronous and synchronous)

ER

Salesforce supports running test with Tooling REST API ,which are runTestsAsynchronous and runTestsSynchronous. Reference: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/intro_rest_overview.htm In this post I’ll show you what is the difference between runTestsAsynchronous and runTestsSynchronous. Prepare 1.Salesforce Account 2.apigee for Salesforce (https://apigee.com/console/salesforce) 3.A TestClass (Id=01p10000001Faws) such as: 1.runTestsAsynchronous Running tests asynchronously allows methods to process in parallel, cutting down your test […]

read more

How to access static resources from Apex, Visualforce and Custom Button

In Apex Normal file (with soql) Normal file (with PageReference.getContent) Zip file (with PageReference.getContent) ※Zip file can not be accessed by soql. In VF Normal file Zip file In Custom Button

read more