Community
Showing results for 
Search instead for 
Do you mean 
Reply

Recurrence Exceptions. How to identify them

Astute Commentator
Posts: 168
Country: United States

Recurrence Exceptions. How to identify them

Hi Everyone,

 

I have code that retrieves a recurring calendar entry and goes through the list.

 

 MyACTList = ACTFM.Activities.GetTaskListItems(sortCriteria, actActivitiesAllActivitiesFilter, now(),  cdte("1/1/2200"), FirstInstanceRestriction.FirstOccurrence, False)

 

I'm testing on 1 recurring event that has recurring exceptions caused by modifications to individual dates of the recurrence. How do I identify whether the activity is the main recurrence series or whether it is a recurring exception? I've checked the following fields:

               isRecurr provides the value of True to a recurring exception modification

               ifFirstOccurence provides the value of True to a recurring exception modification (which should be false).

 

Is there any other field that I can check and see if the recurring activity is an exception or the actual series?

 

Basically, I want to retrieve the Main Recurring Series Activity record and ignore everything else from the MyACTList that gets returned on the call.

 

Any idea on how this is done?

 

T