danesparza / MailChimp.NET

:envelope: .NET Wrapper for the MailChimp v2.0 API
MIT License
179 stars 119 forks source link

GetTemplates - only pulling 9 out of 50 #189

Closed chadruff closed 8 years ago

chadruff commented 8 years ago

Question I am using TemplateListResultObj = MailChimpManagerObj.GetTemplates()

to get a list of templates. All of my templates are userTemplates, so I am using this... TemplateListResultObj.UserTemplates(I).TemplateID

to get the templates - this works great.

But, I am only getting 9 templates. We have 50 templates or so in the system. So, is there a limitation on the number of records I can pull ?

Great API by the way !

Chad

chadruff commented 8 years ago

Closing this issue. It turns out that the other templates were drag and drop and that you must apply a filter to get those....

        Dim TemplateTypesObj As New Templates.TemplateTypes()
        Dim TemplateFiltersObj As New Templates.TemplateFilters

        TemplateTypesObj.User = True
        TemplateTypesObj.Base = False
        TemplateTypesObj.Gallery = False

        TemplateFiltersObj.IncludeDragAndDrop = True

        TemplateListResultObj = MailChimpManagerObj.GetTemplates(TemplateTypesObj, TemplateFiltersObj)