Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

MarketingCloudSDK::Response.continue fails #85

Open
kimchanyoung opened this issue Mar 28, 2018 · 0 comments
Open

MarketingCloudSDK::Response.continue fails #85

kimchanyoung opened this issue Mar 28, 2018 · 0 comments

Comments

@kimchanyoung
Copy link

kimchanyoung commented Mar 28, 2018

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: #84

*EDIT
Found an earlier PR here
#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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant