FuelSDK-Ruby icon indicating copy to clipboard operation
FuelSDK-Ruby copied to clipboard

MarketingCloudSDK::Response.continue fails

Open kimchanyoung opened this issue 6 years ago • 0 comments

If an API request results in greater than 2500 results, the docs instruct users to call response.continue to fetch the rest of the results, but doing so fails and instead results in an array being returned.

Created a pull request here: ~https://github.com/salesforce-marketingcloud/FuelSDK-Ruby/pull/84~

*EDIT Found an earlier PR here https://github.com/salesforce-marketingcloud/FuelSDK-Ruby/pull/39

But as a temporary workaround, you can do the following:

response = @dataextensionrow.get
while response.more?
  response.send(:unpack, @client.soap_client.call(:retrieve, message: { 'RetrieveRequest' => {'ContinueRequest' => response.request_id}}))
end

kimchanyoung avatar Mar 28 '18 21:03 kimchanyoung