2 Replies Latest reply on Oct 9, 2017 11:04 AM by Russel Lanning

    Unable to retrieve Status after REST Bulk Leads Insert

    Russel Lanning

      I am attempting to upload a CSV file using the REST Leads Bulk Import.

       

      When I submit the request, I get the following,

      {"batchId":1124,"importId":"1124","status":"Queued"}

       

      I then use the batchId (in this case 1124) to attempt to poll for the results using the Classic ASP Code below:

       

      Set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")

      xmlHTTP.Open "GET", "https://REDACTED.mktorest.com/bulk/v1/batch/1124.json", false

      xmlHTTP.setRequestHeader "content-type", "application/json"

      xmlHTTP.setRequestHeader "Authorization", "bearer " & access_token

      xmlHTTP.Send

       

      I don't get any results back.  Anyone know what the problem could be?  I would expect to see a status of Queued, Importing, Complete, Failed but I get no response whatsoever.

       

      Thanks in advance.