The is_primary is an optional field for many providers, an account may not have a calendar with this attribute as True.
Null is an valid value. This has mostly been noticed for O365 accounts
We suggest having some logic that:
- if is_primary == Null
- then selects the calendar_name
- or calendar_name
Or simply present user with all the calendars and ask them to select the correct one.
Please sign in to leave a comment.