This is a migrated thread and some comments may be shown as answers.

iCal Import Not Reading Outlook CATEGORIES

3 Answers 78 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Veteran
Doug asked on 13 May 2020, 11:38 PM

I am trying to use the AppointmentCalendarImporter to import iCal files exported out of Outlook (using Office Pro Plus 2016). This works quite well except the CATEGORIES from the .ics file are not importing.

 

It appears that the problem is that Outlook is exporting just the category name like this:

CATEGORIES:Personal

 

However, the importer is looking for something like this (got this example from using the Exporter):

CATEGORIES:DISPLAYNAME==Personal&CATEGORYNAME==Personal&

 

Is there a way to get the Outlook format to load?

 

Thanks!

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 21 May 2020, 02:39 PM

Hello Doug,

Can you share the .ics file you are using and also how do you import the ics file? Note that you can share files different than pictures via the support ticketing system from your telerik.com account.

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Doug
Top achievements
Rank 1
Veteran
answered on 22 May 2020, 12:53 AM

Hi Martin,

I had to get this working so I looked at the source code and found that it was only importing CATEGORIES specifically using the 2nd form shown above. Maybe this is a setting in Outlook or something but multiple customer systems (including mine) all give the simple version with just the category name as shown in the first example above.

So, since the Import function doesn't support this, I just do a find/replace (using regex) before importing. That solution is working for me now as I am just importing some data for a prototype.

As far as which Import method I am using. There is only one Import method in ScheduleViewer that I know of. Something like this:

using (TextReader txtReader = new StreamReader(filename))
{
    AppointmentCalendarImporter importer = new AppointmentCalendarImporter(true);
    IEnumerable<IAppointment> appointments = importer.Import(reader);

}

 

Doug

0
Martin Ivanov
Telerik team
answered on 26 May 2020, 10:31 AM

Hello Doug,

It is nice to hear that you managed to find a solution. I hope that works for you. Also, thank you for sharing the importing code.

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
ScheduleView
Asked by
Doug
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Doug
Top achievements
Rank 1
Veteran
Share this question
or