'maxReturn' not working for retrieving all segments. | Community
Skip to main content
January 27, 2016
Question

'maxReturn' not working for retrieving all segments.

  • January 27, 2016
  • 1 reply
  • 1436 views

Hi all,

     We are developing connector for Marketo. While trying to retriev all the segments present, we faced an issue.

The URL we are trying to hit is /rest/asset/v1/segmentation/1001/segments.json?maxReturn=10.

The parameter 'maxReturn' should never have the value as '0' or '-1'. But for this particular scenario; irrespective of the parameter's value, all the segments are getting retrieved.

Could any one of you please confirm the behavior for this case.

Thanks,

Pallavi

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Kenny_Elkington
Adobe Employee
Adobe Employee
January 27, 2016

This is actually a mistake in the documentation, and offset and maxreturn are not valid parameters.  Thanks for bringing this to my attention, I will correct the doc.

alexshel
Level 3
April 21, 2016

I would also add that maxReturn is not working for retrieving all segmentations. There are always 20 segmentations shown despite my maxReturn=100 parameter. (/rest/asset/v1/segmentation.json?maxReturn=100)

Link to documentation: Get Segmentations » Marketo Developers

What am I doing wrong ?