Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

O365 recurrence

$
0
0
Hi Aspose

Using the below ICS file and code, running Aspose.Email for Java 17.3, a recurring event is successfully added to the PST. However if we then use a New-MailboxImportRequest cmdlet to import that PST to an O365 account, the recurring meeting cannot be opened in O365, giving a 'The Action couldn't be completed. The item wasn't found' error. If we remove the RRULE line from the ICS, it works OK, so the problem is the recurrence generated by Aspose. Can you please check this, as O365 support is important to us. Thanks.

ICS
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//IONET Software//NONSGML Notes Release 9.0.1//EN
BEGIN:VEVENT
CLASS:PUBLIC
TRANSP:OPAQUE
DTSTART:20170508T090000
DTEND:20170508T100000
DTSTAMP:20170403T220319Z
LAST-MODIFIED:20170406T025536Z
SEQUENCE:0
RRULE:FREQ=DAILY;INTERVAL=1;COUNT=10
ORGANIZER;CN=Joe User:mailto:juser@ionet.co.nz
UID:48B94C76C5FD8B80CC2580F70079274D
SUMMARY:Repeat Test 3
DESCRIPTION:Some Text
END:VEVENT
END:VCALENDAR

CODE
PersonalStorage pst = null;
AppointmentLoadOptions apptLO;
Appointment calDoc;
MailMessage calMsg;
MapiMessage calMapiMsg;
FolderInfo calFolder;
MapiCalendar mapiCal;

try {            
    String pathPSTFileStr = "c:\\temp\\testPST.pst";           
    String testFile = "c:\\temp\\test.ics";

    Set License....

    pst = PersonalStorage.create(pathPSTFileStr, 0);
    apptLO = new AppointmentLoadOptions();
    apptLO.setApplyLocalTZ(true);
    calDoc = Appointment.load(testFile, apptLO);
    calMsg = new MailMessage();
    calMsg.addAlternateView(calDoc.requestApointment());
    calMapiMsg = MapiMessage.fromMailMessage(calMsg); //error here
    calFolder = pst.createPredefinedFolder("Calendar", StandardIpmFolder.Appointments);
    mapiCal = (MapiCalendar)calMapiMsg.toMapiMessageItem();
    calFolder.addMapiMessageItem(mapiCal);
}    
catch(Exception e) {
    System.out.println("Import Error : " + e.toString());
}    
finally {
    pst.dispose();        
}

Viewing all articles
Browse latest Browse all 1367