How to cancel an calendar event using ics files?

前端 未结 3 1426
囚心锁ツ
囚心锁ツ 2020-12-06 10:06

One of our requirements is to create iCalendar files (.ics) and send them each in emails as an attachment. We are using DDay.Ical.dll to create ics files as under:



        
相关标签:
3条回答
  • 2020-12-06 10:47

    Edit all the events in the ics file using any text file editor (eg. Visual Studio Code) and import modified the calenar again:

    0 讨论(0)
  • 2020-12-06 10:55

    I had the issue when i sent mail containing ics file for delete event but in outlook it show me not supported format then i figured out somewhere on net and i found that i just need to change METHOD: CANCEL to MEHTHOD: REQUEST

    when i import this in outlook

    0 讨论(0)
  • 2020-12-06 10:56

    File gets created in the same way as the original ics file. The event status will be different. UID will identify the event and sequence number will indicate priority of update, and then the event details will be noted (changes or cancellations)

    If you want to change/cancel an event after sending out an invitation, you need to identify the event/appointment by its UID, and allocate a bigger SEQUENCE number than the original ics event.

    UID (unique identifier) : http://tools.ietf.org/html/rfc5545#page-117

    Sequence: http://tools.ietf.org/html/rfc5545#page-138

    and set the event status

                 / "CANCELLED"    ;Indicates event was cancelled.
    

    Status: http://tools.ietf.org/html/rfc5545#page-92

    oh - and method If you need to send in a cancellation for an event the UID should be same as the original event and the component properties should be set to cancel Ex. METHOD:CANCEL STATUS:CANCELLED

    Of course this will only 'cancel' the event if the recipient then actually clicks to load/subscribe it into the same calendar app as the first time. For applications that have 'subscribed' the the remote ics - when they next do an 'update' check the update should be processed and overwrite the original event.

    0 讨论(0)
提交回复
热议问题