From 6a67b4d249babb9a1f798fad90e289407edeb3f5 Mon Sep 17 00:00:00 2001 From: Emmanuel Paez Date: Fri, 19 Oct 2018 11:55:03 -0500 Subject: [PATCH] Fix issue #22 Added the columns attribute to fix issue #22 https://github.com/Silverpop/node-engage/issues/22 --- lib/xml-api/raw-recipient-data-export.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/xml-api/raw-recipient-data-export.js b/lib/xml-api/raw-recipient-data-export.js index 2842fb5..9c0aca8 100644 --- a/lib/xml-api/raw-recipient-data-export.js +++ b/lib/xml-api/raw-recipient-data-export.js @@ -89,6 +89,11 @@ module.exports = { required: false, assert: validator.assertBoolean, default: false + }, + + columns: { + required: false, + assert: validator.assertScalarArray } }, @@ -113,6 +118,7 @@ module.exports = { "SEND_DATE_END": options.sendDateEnd, "EVENT_DATE_START": options.eventDateStart, "EVENT_DATE_END": options.eventDateEnd, + "COLUMNS": options.columns, }; if (typeof options.listId !== 'undefined') { @@ -179,6 +185,10 @@ module.exports = { params["EVENT_DATE_END"] = options.eventDateEnd; } + if (typeof options.columns !== 'undefined') { + params['COLUMNS'] = { COLUMN: { NAME: options.columns } }; + } + return params; },