none
Duplicate outlook events created RRS feed

  • Question

  • Hi,

    When I create multiple events quickly after each other, it will result in duplicate events in my outlook calendar.

    I'm building the messages myself (not using the Graph API library, although testing with it yielded similar results)

    Can anyone tell me why this is happening?

    Below is log output from my HttpClient calls.

    Request:
    Method: GET, RequestUri: 'https://graph.microsoft.com/v1.0/me/calendar/events?$select=id,Start&$filter=startswith(Subject, '[187]')', Version: 1.1, Content: <null>, Headers:
    {
      User-Agent: Office365ProtimeSync/v1.0
      Authorization:
    }

    Response:
    StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
    {
      request-id: ed5edec4-58a2-4a19-b0c3-94da38d7c806
      client-request-id: ed5edec4-58a2-4a19-b0c3-94da38d7c806
      x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"SliceC","Ring":"5","ScaleUnit":"002","RoleInstance":"AGSFE_IN_61"}}
      OData-Version: 4.0
      Strict-Transport-Security: max-age=31536000
      Cache-Control: private
      Date: Tue, 06 Oct 2020 11:16:54 GMT
      Content-Length: 430
      Content-Type: application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false; charset=utf-8
    }
    {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users('248bf174-8856-49ff-a09f-31343201eb2d')/calendar/events(id,start)","value":[{"@odata.etag":"W/\"1GRzI+D66UCFj3JQtWf23wACkVa/zA==\"","id":"AQMkAGQ3MzdiMDABLTdhMGQtNDk0Mi05YjhhLTYzZGJlY2ExMGI0NwBGAAAD71CPOyOMakiBzC4ObdDnBAcA1GRzI_D66UCFj3JQtWf23wAAAgENAAAA1GRzI_D66UCFj3JQtWf23wACkePUnAAAAA==","start":{"dateTime":"2020-10-13T00:00:00.0000000","timeZone":"UTC"}}]}
    -----------------------------------------------------------------------------------------------

    Request:
    Method: POST, RequestUri: 'https://graph.microsoft.com/v1.0/me/calendar/events', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
    {
      User-Agent: Office365ProtimeSync/v1.0
      Authorization:
      Content-Type: application/json
    }
    {"Start":{"DateTime":"2020-10-13T00:00:00","TimeZone":"Europe/Brussels"},"End":{"DateTime":"2020-10-14T00:00:00","TimeZone":"Europe/Brussels"},"IsAllDay":true,"Subject":"[187] THUIS WERKEN","Body":{"ContentType":"HTML","Content":"<p style=\"font-family:'Open Sans', 'Segoe UI', Arial, sans-serif; font-size:14px; line-height:18px;\">This absence request was planned via myProtime. It should only be edited in myProtime. If you make changes to this request in Outlook, those changes will not be visible in your myProtime calendar.</p><p style=\"font-family:'Open Sans', 'Segoe UI', Arial, sans-serif;\"><a href=\"https://protime.lvh.me:5000/#/view/request/7478/absencerequest/187?date=2020-10-13\" style=\"background-color:#3BB1D8;border:solid #3BB1D8;border-width:8px 24px;text-decoration:none;color:white;line-height:2;font-weight:bold;font-weight:600;font-size:16px;text-align:center;cursor:pointer;display:inline-block;border-radius:3px;\">Edit request in myProtime</a></p><p style=\"font-family:'Open Sans', 'Segoe UI', Arial, sans-serif; font-size:14px; line-height:18px;\">Link to the myProtime absence request: https://protime.lvh.me:5000/#/view/request/7478/absencerequest/187?date=2020-10-13</p>"},"ShowAs":"workingElsewhere","Categories":["Protime"],"Organizer":{"EmailAddress":{"Name":"myProtime","Address":"calendar@myprotime.eu"}}}

    Response:
    StatusCode: 201, ReasonPhrase: 'Created', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
    {
      request-id: 6a203b76-420d-4357-848e-85aaae45473c
      client-request-id: 6a203b76-420d-4357-848e-85aaae45473c
      x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"SliceC","Ring":"5","ScaleUnit":"002","RoleInstance":"AGSFE_IN_61"}}
      OData-Version: 4.0
      Strict-Transport-Security: max-age=31536000
      Cache-Control: private
      Date: Tue, 06 Oct 2020 11:16:54 GMT
      ETag: W/"1GRzI+D66UCFj3JQtWf23wACkVa/3Q=="
      Location: https://outlook.office.com/api/v2.0/Users('248bf174-8856-49ff-a09f-31343201eb2d@ddb7fc30-e41c-4210-80c5-74699577a8a0')/Events('AQMkAGQ3MzdiMDABLTdhMGQtNDk0Mi05YjhhLTYzZGJlY2ExMGI0NwBGAAAD71CPOyOMakiBzC4ObdDnBAcA1GRzI_D66UCFj3JQtWf23wAAAgENAAAA1GRzI_D66UCFj3JQtWf23wACkePUnQAAAA==')
      Content-Length: 3416
      Content-Type: application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false; charset=utf-8
    }
    {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users('248bf174-8856-49ff-a09f-31343201eb2d')/calendar/events/$entity","@odata.etag":"W/\"1GRzI+D66UCFj3JQtWf23wACkVa/3Q==\"","id":"AQMkAGQ3MzdiMDABLTdhMGQtNDk0Mi05YjhhLTYzZGJlY2ExMGI0NwBGAAAD71CPOyOMakiBzC4ObdDnBAcA1GRzI_D66UCFj3JQtWf23wAAAgENAAAA1GRzI_D66UCFj3JQtWf23wACkePUnQAAAA==","createdDateTime":"2020-10-06T11:16:55.4981304Z","lastModifiedDateTime":"2020-10-06T11:16:55.5710892Z","changeKey":"1GRzI+D66UCFj3JQtWf23wACkVa/3Q==","categories":["Protime"],"transactionId":null,"originalStartTimeZone":"Europe/Brussels","originalEndTimeZone":"Europe/Brussels","iCalUId":"040000008200E00074C5B7101A82E00800000000C396FE32D29BD6010000000000000000100000002DA426DAE42F794E9819F79752AA8E87","reminderMinutesBeforeStart":15,"isReminderOn":true,"hasAttachments":false,"subject":"[187] THUIS WERKEN","bodyPreview":"This absence request was planned via myProtime. It should only be edited in myProtime. If you make changes to this request in Outlook, those changes will not be visible in your myProtime calendar.\r\n\r\nEdit request in myProtime\r\n\r\nLink to the myProtime abse","importance":"normal","sensitivity":"normal","isAllDay":true,"isCancelled":false,"isOrganizer":true,"responseRequested":true,"seriesMasterId":null,"showAs":"workingElsewhere","type":"singleInstance","webLink":"https://outlook.office365.com/owa/?itemid=AQMkAGQ3MzdiMDABLTdhMGQtNDk0Mi05YjhhLTYzZGJlY2ExMGI0NwBGAAAD71CPOyOMakiBzC4ObdDnBAcA1GRzI%2BD66UCFj3JQtWf23wAAAgENAAAA1GRzI%2BD66UCFj3JQtWf23wACkePUnQAAAA%3D%3D&exvsurl=1&path=/calendar/item","onlineMeetingUrl":null,"isOnlineMeeting":false,"onlineMeetingProvider":"unknown","allowNewTimeProposals":true,"isDraft":false,"recurrence":null,"onlineMeeting":null,"responseStatus":{"response":"organizer","time":"0001-01-01T00:00:00Z"},"body":{"contentType":"html","content":"<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<meta content=\"text/html; charset=us-ascii\">\r\n</head>\r\n<body>\r\n<p style=\"font-family:'Open Sans','Segoe UI',Arial,sans-serif; font-size:14px; line-height:18px\">\r\nThis absence request was planned via myProtime. It should only be edited in myProtime. If you make changes to this request in Outlook, those changes will not be visible in your myProtime calendar.</p>\r\n<p style=\"font-family:'Open Sans','Segoe UI',Arial,sans-serif\"><a href=\"https://protime.lvh.me:5000/#/view/request/7478/absencerequest/187?date=2020-10-13\" style=\"background-color:#3BB1D8; border:solid #3BB1D8; border-width:8px 24px; text-decoration:none; color:white; line-height:2; font-weight:bold; font-weight:600; font-size:16px; text-align:center; display:inline-block; border-radius:3px\">Edit\r\n request in myProtime</a></p>\r\n<p style=\"font-family:'Open Sans','Segoe UI',Arial,sans-serif; font-size:14px; line-height:18px\">\r\nLink to the myProtime absence request: https://protime.lvh.me:5000/#/view/request/7478/absencerequest/187?date=2020-10-13</p>\r\n</body>\r\n</html>\r\n"},"start":{"dateTime":"2020-10-13T00:00:00.0000000","timeZone":"Europe/Brussels"},"end":{"dateTime":"2020-10-14T00:00:00.0000000","timeZone":"Europe/Brussels"},"location":{"displayName":"","locationType":"default","uniqueIdType":"unknown","address":{},"coordinates":{}},"locations":[],"attendees":[],"organizer":{"emailAddress":{"name":"Joey Daemen","address":"joey.daemen@protime.eu"}}}
    -----------------------------------------------------------------------------------------------

    Request:
    Method: POST, RequestUri: 'https://graph.microsoft.com/v1.0/me/calendar/events', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
    {
      User-Agent: Office365ProtimeSync/v1.0
      Authorization:
      Content-Type: application/json
    }
    {"Start":{"DateTime":"2020-10-14T00:00:00","TimeZone":"Europe/Brussels"},"End":{"DateTime":"2020-10-15T00:00:00","TimeZone":"Europe/Brussels"},"IsAllDay":true,"Subject":"[187] THUIS WERKEN","Body":{"ContentType":"HTML","Content":"<p style=\"font-family:'Open Sans', 'Segoe UI', Arial, sans-serif; font-size:14px; line-height:18px;\">This absence request was planned via myProtime. It should only be edited in myProtime. If you make changes to this request in Outlook, those changes will not be visible in your myProtime calendar.</p><p style=\"font-family:'Open Sans', 'Segoe UI', Arial, sans-serif;\"><a href=\"https://protime.lvh.me:5000/#/view/request/7478/absencerequest/187?date=2020-10-14\" style=\"background-color:#3BB1D8;border:solid #3BB1D8;border-width:8px 24px;text-decoration:none;color:white;line-height:2;font-weight:bold;font-weight:600;font-size:16px;text-align:center;cursor:pointer;display:inline-block;border-radius:3px;\">Edit request in myProtime</a></p><p style=\"font-family:'Open Sans', 'Segoe UI', Arial, sans-serif; font-size:14px; line-height:18px;\">Link to the myProtime absence request: https://protime.lvh.me:5000/#/view/request/7478/absencerequest/187?date=2020-10-14</p>"},"ShowAs":"workingElsewhere","Categories":["Protime"],"Organizer":{"EmailAddress":{"Name":"myProtime","Address":"calendar@myprotime.eu"}}}

    Response:
    StatusCode: 201, ReasonPhrase: 'Created', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
    {
      request-id: 641065b1-c1f1-4b35-bc70-4c6bf4372cf4
      client-request-id: 641065b1-c1f1-4b35-bc70-4c6bf4372cf4
      x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"SliceC","Ring":"5","ScaleUnit":"002","RoleInstance":"AGSFE_IN_61"}}
      OData-Version: 4.0
      Strict-Transport-Security: max-age=31536000
      Cache-Control: private
      Date: Tue, 06 Oct 2020 11:16:55 GMT
      ETag: W/"1GRzI+D66UCFj3JQtWf23wACkVa/5Q=="
      Location: https://outlook.office.com/api/v2.0/Users('248bf174-8856-49ff-a09f-31343201eb2d@ddb7fc30-e41c-4210-80c5-74699577a8a0')/Events('AQMkAGQ3MzdiMDABLTdhMGQtNDk0Mi05YjhhLTYzZGJlY2ExMGI0NwBGAAAD71CPOyOMakiBzC4ObdDnBAcA1GRzI_D66UCFj3JQtWf23wAAAgENAAAA1GRzI_D66UCFj3JQtWf23wACkePUngAAAA==')
      Content-Length: 3416
      Content-Type: application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false; charset=utf-8
    }
    {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users('248bf174-8856-49ff-a09f-31343201eb2d')/calendar/events/$entity","@odata.etag":"W/\"1GRzI+D66UCFj3JQtWf23wACkVa/5Q==\"","id":"AQMkAGQ3MzdiMDABLTdhMGQtNDk0Mi05YjhhLTYzZGJlY2ExMGI0NwBGAAAD71CPOyOMakiBzC4ObdDnBAcA1GRzI_D66UCFj3JQtWf23wAAAgENAAAA1GRzI_D66UCFj3JQtWf23wACkePUngAAAA==","createdDateTime":"2020-10-06T11:16:55.8089537Z","lastModifiedDateTime":"2020-10-06T11:16:55.8509283Z","changeKey":"1GRzI+D66UCFj3JQtWf23wACkVa/5Q==","categories":["Protime"],"transactionId":null,"originalStartTimeZone":"Europe/Brussels","originalEndTimeZone":"Europe/Brussels","iCalUId":"040000008200E00074C5B7101A82E008000000003B042E33D29BD601000000000000000010000000DD4A28376AA30D489D51999C757B5373","reminderMinutesBeforeStart":15,"isReminderOn":true,"hasAttachments":false,"subject":"[187] THUIS WERKEN","bodyPreview":"This absence request was planned via myProtime. It should only be edited in myProtime. If you make changes to this request in Outlook, those changes will not be visible in your myProtime calendar.\r\n\r\nEdit request in myProtime\r\n\r\nLink to the myProtime abse","importance":"normal","sensitivity":"normal","isAllDay":true,"isCancelled":false,"isOrganizer":true,"responseRequested":true,"seriesMasterId":null,"showAs":"workingElsewhere","type":"singleInstance","webLink":"https://outlook.office365.com/owa/?itemid=AQMkAGQ3MzdiMDABLTdhMGQtNDk0Mi05YjhhLTYzZGJlY2ExMGI0NwBGAAAD71CPOyOMakiBzC4ObdDnBAcA1GRzI%2BD66UCFj3JQtWf23wAAAgENAAAA1GRzI%2BD66UCFj3JQtWf23wACkePUngAAAA%3D%3D&exvsurl=1&path=/calendar/item","onlineMeetingUrl":null,"isOnlineMeeting":false,"onlineMeetingProvider":"unknown","allowNewTimeProposals":true,"isDraft":false,"recurrence":null,"onlineMeeting":null,"responseStatus":{"response":"organizer","time":"0001-01-01T00:00:00Z"},"body":{"contentType":"html","content":"<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<meta content=\"text/html; charset=us-ascii\">\r\n</head>\r\n<body>\r\n<p style=\"font-family:'Open Sans','Segoe UI',Arial,sans-serif; font-size:14px; line-height:18px\">\r\nThis absence request was planned via myProtime. It should only be edited in myProtime. If you make changes to this request in Outlook, those changes will not be visible in your myProtime calendar.</p>\r\n<p style=\"font-family:'Open Sans','Segoe UI',Arial,sans-serif\"><a href=\"https://protime.lvh.me:5000/#/view/request/7478/absencerequest/187?date=2020-10-14\" style=\"background-color:#3BB1D8; border:solid #3BB1D8; border-width:8px 24px; text-decoration:none; color:white; line-height:2; font-weight:bold; font-weight:600; font-size:16px; text-align:center; display:inline-block; border-radius:3px\">Edit\r\n request in myProtime</a></p>\r\n<p style=\"font-family:'Open Sans','Segoe UI',Arial,sans-serif; font-size:14px; line-height:18px\">\r\nLink to the myProtime absence request: https://protime.lvh.me:5000/#/view/request/7478/absencerequest/187?date=2020-10-14</p>\r\n</body>\r\n</html>\r\n"},"start":{"dateTime":"2020-10-14T00:00:00.0000000","timeZone":"Europe/Brussels"},"end":{"dateTime":"2020-10-15T00:00:00.0000000","timeZone":"Europe/Brussels"},"location":{"displayName":"","locationType":"default","uniqueIdType":"unknown","address":{},"coordinates":{}},"locations":[],"attendees":[],"organizer":{"emailAddress":{"name":"Joey Daemen","address":"joey.daemen@protime.eu"}}}
    -----------------------------------------------------------------------------------------------

    Tuesday, October 6, 2020 11:27 AM