FuelSDK-Ruby
FuelSDK-Ruby copied to clipboard
MarketingCloudSDK::Response.continue fails
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