Jsforce: Support Summer '15 Batch REST API

Created on 11 Sep 2015  路  2Comments  路  Source: jsforce/jsforce

Unless I am missing the obvious, I don't see that JSForce supports yet the recently released REST API batch function.

Doc link: http://docs.releasenotes.salesforce.com/en-us/summer15/release-notes/rn_api_rest.htm

enhancement

Most helpful comment

Any plans to implement this yet? Considering we now have Composite, Batch and Tree requests?

All 2 comments

Batch support is not included yet. By the way, you can use much lower-level call Connection#requestPost() and pass the batch request message.

conn.requestPost('/composite/batch', {
  "batchRequests" : [{
    "method" : "PATCH",
    "url" : "v34.0/sobjects/account/001D000000K0fXOIAZ",
    "richInput" : {"Name" : "NewName"}
  },{
    "method" : "GET",
    "url" : "v34.0/sobjects/account/001D000000K0fXOIAZ"
  }]
}, function(err, res) {
  // ...
}) 

In future release we may add more excellent support for batch API request sending.

Any plans to implement this yet? Considering we now have Composite, Batch and Tree requests?

Was this page helpful?
0 / 5 - 0 ratings