Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Download file bulk lead extract #55

@grahamd711

Description

@grahamd711

Awesome work on this Marketo REST client!

I'm hoping you can point me in the right direction so I can download the bulk lead extract file once complete. How can I return the file once the export is ready?

  marketo.bulkLeadExtract.get(
  ['firstName', 'lastName', 'id', 'email'],
  { staticListName: 'g_test_export' })
  .then(function(data) {
    // export is ready
    let exportId = data.result[0].exportId;
    return marketo.bulkLeadExtract.file(exportId);
  })
  .then(function(file) {
    res.download(file);
  }).catch(next);

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions