Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download file bulk lead extract #55

Open
grahamd711 opened this issue Mar 10, 2018 · 2 comments
Open

Download file bulk lead extract #55

grahamd711 opened this issue Mar 10, 2018 · 2 comments

Comments

@grahamd711
Copy link

grahamd711 commented Mar 10, 2018

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);

});
@pcothenet
Copy link
Contributor

Hi @grahamd711. Thanks for reporting this.

I'm actually getting a similar issue (it just keeps saying "COMPLETED"). Investigating

@pcothenet
Copy link
Contributor

@grahamd711 I think #58 should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants