Forum Discussion

sravankunadi's avatar
sravankunadi
New Contributor II
3 years ago

Marketo Bulk leads file download in chunks

I would like to split the Marketo download file size in batches. How do we iterate through the loop untill the file is complete

8 Replies

  • sravankunadi's avatar
    sravankunadi
    New Contributor II

    Can anyone have any inputs untill the full download is complete?

  • alchemiz's avatar
    alchemiz
    Contributor III

    @sravankunadi,

    Good day,
    check this one out …

    Hope this helps

    Thanks,
    MM

  • sravankunadi's avatar
    sravankunadi
    New Contributor II

    Thanks MM

    But the file is not returning the status once the complete download is complete. I provided the file end point range from 1400 t0 1405… still it takes from 1400 to 1404.

    • alchemiz's avatar
      alchemiz
      Contributor III

      Were you able to get the filesize of the exportid that you are trying to download?

      Here’s the api to get the filesize you are trying to download

      Base from the file size you can then use Range as part of the GET request header in a multipart request or single request

      Multipart request

      or do an array of request

      • Prasa's avatar
        Prasa
        New Contributor II

        Multipart request is not working. Could you please help here. Screenshot attached.

    • alchemiz's avatar
      alchemiz
      Contributor III

      use “range” as this is a request header, I think “content-range” is a response header