You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
push: function(input, options) {
if (!.isArray(input) && !.isEmpty(input)) {
var msg = 'input must be an array of leads';
log.error(msg);
return Promise.reject(msg);
}
var data = _.extend({}, options, {
input: input
});
var path = util.createPath('leads', 'push.json');
return this._connection.postJson(path, data)
.then(function(data) {
if (data.success) {
return data;
} else {
log.warn('Cannot push lead: ', data);
return Promise.reject('Cannot get lead(s) from input: ' + JSON.stringify(input));
}
});
// Push a lead to Marketo program namemarketo.lead.push([{'email': '[email protected]'},{'email': '[email protected]'}],{lookupField: 'email',programName: 'Test program name'})
The text was updated successfully, but these errors were encountered:
push: function(input, options) {
if (!.isArray(input) && !.isEmpty(input)) {
var msg = 'input must be an array of leads';
log.error(msg);
return Promise.reject(msg);
}
},
lead.push(input, options)
Implements Push Leads
input
options
lookupField
: the field used to dedup onprogramName
: the program name in MarketoThe text was updated successfully, but these errors were encountered: