From d4f467d4f8ccbc1c154223cb976384c28bf7cc43 Mon Sep 17 00:00:00 2001 From: Ben Ariss Date: Thu, 30 Nov 2017 08:42:58 +0000 Subject: [PATCH 1/3] Fixed error handlers to correctly flow errors to Catch nodes if present Added support for fetchAll option on the SOQL query node to support large result sets --- README.md | 1 + dml.js | 2 +- soql.html | 7 ++++++- soql.js | 5 +++-- sosl.js | 2 +- streaming.js | 2 +- 6 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 09d08bc..aadcb45 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ limit 2
  • msg.payload.records - the array of records returned from the query.
  • The query can be configured in the node, however if left blank, the query should be set in an incoming message on msg.query.

    +

    By default the query will return the first 2,000 records from the query result. If you wish to return the full result set then tick the 'Fetch All Records' checkbox.

    See the Salesforce SOQL documentation for more information.

    SOSL

    diff --git a/dml.js b/dml.js index 8a76038..fec7f4d 100644 --- a/dml.js +++ b/dml.js @@ -76,7 +76,7 @@ module.exports = function(RED) { node.status({}); }).error(function(err) { node.status({fill:"red",shape:"dot",text:"Error!"}); - node.error(err); + node.error(err, msg); }); }); diff --git a/soql.html b/soql.html index d407d54..08a3138 100644 --- a/soql.html +++ b/soql.html @@ -5,7 +5,8 @@ defaults: { name: {value:""}, query: {value:""}, - connection: {value:"", type:"connection-config", required: true} + connection: {value:"", type:"connection-config", required: true}, + fetchAll: {value:false} }, inputs:1, outputs:1, @@ -29,6 +30,10 @@ +
    + + +