none
VALARM in OUTLOOK RRS feed

  • Question

  • Is it possible to set VALARM on VEVENT using C#?

    Also pls tell, whether it (VALARM) is supported by OUTLOOK?

    Saturday, October 19, 2013 6:21 AM

Answers

  • I discovered the issue involved finally.

    The reminders are set only for future date-time.Not for date-time that occurs in past.

    I didnt notice this until today when i tried different combination for date-time.

    Thanks.

    Wednesday, October 23, 2013 6:55 AM

All replies

  • What exactly are you trying to do and why?

    "Supported" in what sense? If an appointment has a reminder, the ICS file generated when you call AppointmentItem.SaveAs(.., olICal) will have the VALARM part.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Saturday, October 19, 2013 5:30 PM
  • This is the .ics file generated from my C# code and this successfully opens in Outlook and shows the reminder too.

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//hacksw/handcal//NONSGML v1.0//EN
    BEGIN:VEVENT
    DTSTART:20131022T130000Z
    DTEND:20131023T140000Z
    SUMMARY:22Demo1
    DESCRIPTION:first demo
    LOCATION:Ald
    BEGIN:VALARM
    TRIGGER:-PT10M
    ACTION:DISPLAY
    END:VALARM
    END:VEVENT
    END:VCALENDAR
    

    But when i change the time and supply start time= 09:00 and end time= 10:00 then the .ics file generated is

    as below and no reminder in this case is entered when it is opened in Outlook.

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//hacksw/handcal//NONSGML v1.0//EN
    BEGIN:VEVENT
    DTSTART:20131022T100000Z
    DTEND:20131023T110000Z
    SUMMARY:22Demo1
    DESCRIPTION:first demo
    LOCATION:Ald
    BEGIN:VALARM
    TRIGGER:-PT10M
    ACTION:DISPLAY
    END:VALARM
    END:VEVENT
    END:VCALENDAR
    

    Finally I observed that if the time is given from 13:00 (1:00PM)to 23:00(10:00PM) it is working fine and reminder is added but if i enter time like 09:00(AM) or 11:00(AM) then reminder is not added.

    Pls tell where i am going wrong or what i am missing.

    Tuesday, October 22, 2013 11:59 AM
  • I can reproduce that behavior. Even if you open the problematic ICS file in Outlook, set the reminder, and then re-save the appointment as another ICS file, opening that new ICS file displays no alarm.

    Is opening a support case with MS an option?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, October 23, 2013 6:18 AM
  • I discovered the issue involved finally.

    The reminders are set only for future date-time.Not for date-time that occurs in past.

    I didnt notice this until today when i tried different combination for date-time.

    Thanks.

    Wednesday, October 23, 2013 6:55 AM