05-09-2016 11:45 AM
How do I get a list of all activities (both recurring and non-recurring), but not all their recurring instances?
1) Create non-recurring activity that occurs today
2) Create recurring activity that occurs every 1 day
The "GET api/activityseries" command gives only the recurring record.
The "GET api/activities" gives me both, but the recurring record has over a thousand instances in the response, taking up a fair amount of time/bandwith.
I tried expirementing with OData filters in the "GET api/activities" list:
$filter=recurSpec/recurType eq Act.Framework.Activities.ActivityRecurPeriod'None'
But this just gave a server error.
How do I get just the two records, not every instance?