Blog

Latest information about JSforce, interesting use cases, code snippets, etc.

Querying Salesforce Data Without Consuming API Request Quota

In order to query the data stored in Salesforce, a query language named SOQL is used generally. As Salesforce opens REST/SOAP API endpoint access, we can send the SOQL message in the API request.

This API can also be used when you are developing HTML5, Single Page Application(SPA). You might have to care about Same Origin Policy and Cross Origin Resource Sharing (CORS) setting if the app resides outside of Salesforce, but not applied to the case when the app is served on Visualforce Page.

Read More

Deploying Package to Salesforce Using JSforce and Gulp.js

Gulp.js is a simple task/build runner to process front-end stuff, which utilizes pipes for streaming data that needs to be processed.

As gulp.js is running on Node.js, various Node.js-based packages - including JSforce - can be used in build scripts.

In this article, we'll show how to deploy a force.com package using gulp, which can contain Force.com metadata objects like custom object/field definitions, Apex classes, Visualforce pages, or CSS/JavaScript/image files as static resource archive.

Read More

5 Tips You Should Know When Using JSforce REPL

If you are already using JSforce, you may be aware of its REPL. If not, you are definitely spending time and spending in learning APIs.

JSforce REPL is an extension of Node.js REPL (Read-Eval-Print Loop), which enables you to try and execute Salesforce APIs (REST, Bulk, Chatter, Metadata, and so on) in interactive manner.

I recently noticed that people are not fully utilizing features in the REPL. Here I would like to pick up some tips in JSforce REPL which I really think very useful.

Read More