Community
Showing results for 
Search instead for 
Do you mean 
Reply

How to get a list of all activities, but not all instances?

New Member
Posts: 5
Country: USA

How to get a list of all activities, but not all instances?

How do I get a list of all activities (both recurring and non-recurring), but not all their recurring instances?

 

For example:

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?