Get a calendar id from a calendar object.
ValidateCalendar(calendar)
calendar
object. Either list with calendarId element or calendarId value