-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-MgUserCalendarEvent creating duplicate entries #2960
Labels
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
type:bug
A broken experience
Comments
TWells94
added
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
labels
Sep 18, 2024
@TWells94 thank you for logging this issue. Please use
|
timayabi2020
added
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
and removed
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
labels
Sep 24, 2024
Hi Tim,
I've tested using Invoke-MgGraphRequest and it seems to do the same thing. This is the response from one of them.
I've checked and it shouldn't of added two of the same event but when I check Jake's calendar it shows like this:
***@***.***
Creating a new calendar event for University Study Attendance on 2024-09-11T00:00:00...
Key : id
Value : AAMkAGNmNzJiZmIxLWNmYzctNDg0Ni04ZWFlLWE3M2I3ODA4ZGFhZABGAAAAAADmDufLA-26TLf7b6JGGdIaBwAhLM5YdhxWQb8LVP-FZHH0AAAAAAENAAAhLM5YdhxWQb8LVP-FZHH0AADE1dhwAAA=
Name : id
Key : body
Value : {content, contentType}
Name : body
Key : onlineMeetingProvider
Value : unknown
Name : onlineMeetingProvider
Key : isCancelled
Value : False
Name : isCancelled
Key : occurrenceId
Value :
Name : occurrenceId
Key : iCalUId
Value : 040000008200E00074C5B7101A82E00800000000C3A4945E8A0EDB0100000000000000001000000011ADE55DFF95554DAE64F694889977B0
Name : iCalUId
Key : responseStatus
Value : {time, response}
Name : responseStatus
Key : importance
Value : normal
Name : importance
Key : webLink
Value : https://outlook.office365.com/owa/?itemid=AAMkAGNmNzJiZmIxLWNmYzctNDg0Ni04ZWFlLWE3M2I3ODA4ZGFhZABGAAAAAADmDufLA%2F26TLf7b6JGGdIaBwAhLM5YdhxWQb8LVP%2FFZHH0AAAAAAENAAAhLM5YdhxWQb8LVP%2FFZHH0AADE1dhwAAA%3D&exvsurl=1&path=/calendar/item
Name : webLink
Key : recurrence
Value :
Name : recurrence
Key : seriesMasterId
Value :
Name : seriesMasterId
Key : responseRequested
Value : True
Name : responseRequested
Key : originalStartTimeZone
Value : Pacific Standard Time
Name : originalStartTimeZone
Key : isReminderOn
Value : True
Name : isReminderOn
Key : uid
Value : 040000008200E00074C5B7101A82E00800000000C3A4945E8A0EDB0100000000000000001000000011ADE55DFF95554DAE64F694889977B0
Name : uid
Key : isDraft
Value : False
Name : isDraft
Key : @odata.context
Value : https://graph.microsoft.com/v1.0/$metadata#users('43981771-4612-4b5f-a0d0-b35eb4f7c632')/calendars('AAMkAGNmNzJiZmIxLWNmYzctNDg0Ni04ZWFlLWE3M2I3ODA4ZGFhZABGAAAAAADmDufLA-26TLf7b6JGGdIaBwAhLM5YdhxWQb8LVP-FZHH0AAAAAAEGAAAhLM5YdhxWQb8LVP-FZHH0AAAAs_3uAAA%3D')/events/$entity
Name : @odata.context
Key : @odata.etag
Value : W/"ISzOWHYcVkG/C1T/xWRx9AAAxG5aHw=="
Name : @odata.etag
Key : categories
Value : {}
Name : categories
Key : createdDateTime
Value : 24/09/2024 14:02:19
Name : createdDateTime
Key : isAllDay
Value : True
Name : isAllDay
Key : isOnlineMeeting
Value : False
Name : isOnlineMeeting
Key : locations
Value : {}
Name : locations
Key : attendees
Value : {}
Name : attendees
Key : allowNewTimeProposals
Value : True
Name : allowNewTimeProposals
Key : isOrganizer
Value : True
Name : isOrganizer
Key : organizer
Value : {emailAddress}
Name : organizer
Key : changeKey
Value : ISzOWHYcVkG/C1T/xWRx9AAAxG5aHw==
Name : changeKey
Key : hideAttendees
Value : False
Name : hideAttendees
Key : location
Value : {uniqueIdType, coordinates, address, displayName...}
Name : location
Key : onlineMeetingUrl
Value :
Name : onlineMeetingUrl
Key : start
Value : {timeZone, dateTime}
Name : start
Key : end
Value : {timeZone, dateTime}
Name : end
Key : hasAttachments
Value : False
Name : hasAttachments
Key : sensitivity
Value : normal
Name : sensitivity
Key : lastModifiedDateTime
Value : 24/09/2024 14:02:19
Name : lastModifiedDateTime
Key : showAs
Value : oof
Name : showAs
Key : transactionId
Value :
Name : transactionId
Key : onlineMeeting
Value :
Name : onlineMeeting
Key : type
Value : singleInstance
Name : type
Key : reminderMinutesBeforeStart
Value : 15
Name : reminderMinutesBeforeStart
Key : subject
Value : University Study Attendance
Name : subject
Key : bodyPreview
Value : Synced from Rapport.
Name : bodyPreview
Key : originalEndTimeZone
Value : Pacific Standard Time
Name : originalEndTimeZone
ID : 811
email : ***@***.***
StartDate : 2024-09-18T00:00:00
EndDate : 2024-09-19T00:00:00
Type : University Study Attendance
Duration : Full Day
Approved : True
Regards
Thomas Wells (he/him)
+44 191 269 5454
From: Tim ***@***.***>
Sent: 24 September 2024 13:28
To: microsoftgraph/msgraph-sdk-powershell ***@***.***>
Cc: Thomas Wells ***@***.***>; Mention ***@***.***>
Subject: Re: [microsoftgraph/msgraph-sdk-powershell] New-MgUserCalendarEvent creating duplicate entries (Issue #2960)
You don't often get email from ***@***.******@***.***>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Caution: This is an external email
@TWells94<https://github.com/TWells94> thank you for logging this issue. Please use Invoke-MgGraphRequest cmdlet and let us know if you are still having the same experience. Please use the sample request below. Maybe there is something causing a duplicate web request.
$params = @{
subject = "Let's go for lunch"
body = @{
contentType = "HTML"
content = "Does mid month work for you?"
}
start = @{
dateTime = "2019-03-15T12:00:00"
timeZone = "Pacific Standard Time"
}
end = @{
dateTime = "2019-03-15T14:00:00"
timeZone = "Pacific Standard Time"
}
location = @{
displayName = "Harry's Bar"
}
attendees = @(
@{
emailAddress = @{
address = ***@***.******@***.***>"
name = "Adele Vance"
}
type = "required"
}
)
transactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7"
}
Invoke-mggraphrequest -Uri 'https://graph.microsoft.com/v1.0/users/<UserId>/calendars/<CalendarId>/events' -Method POST -Body $Params -debug
-
Reply to this email directly, view it on GitHub<#2960 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BHXJTOSEQUB4O45LL4Y5DZLZYFLD5AVCNFSM6AAAAABOOC5LTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRGEZTCMJZG4>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
microsoft-github-policy-service
bot
added
Needs: Attention 👋
and removed
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
labels
Sep 24, 2024
Apologies the screenshot sent was the 18th which did do the same thing.
***@***.***
Regards
Thomas Wells (he/him)
+44 191 269 5454
From: Thomas Wells ***@***.***>
Sent: 24 September 2024 15:07
To: microsoftgraph/msgraph-sdk-powershell ***@***.***>; microsoftgraph/msgraph-sdk-powershell ***@***.***>
Cc: Mention ***@***.***>
Subject: RE: [microsoftgraph/msgraph-sdk-powershell] New-MgUserCalendarEvent creating duplicate entries (Issue #2960)
Hi Tim,
I've tested using Invoke-MgGraphRequest and it seems to do the same thing. This is the response from one of them.
I've checked and it shouldn't of added two of the same event but when I check Jake's calendar it shows like this:
***@***.***
Creating a new calendar event for University Study Attendance on 2024-09-11T00:00:00...
Key : id
Value : AAMkAGNmNzJiZmIxLWNmYzctNDg0Ni04ZWFlLWE3M2I3ODA4ZGFhZABGAAAAAADmDufLA-26TLf7b6JGGdIaBwAhLM5YdhxWQb8LVP-FZHH0AAAAAAENAAAhLM5YdhxWQb8LVP-FZHH0AADE1dhwAAA=
Name : id
Key : body
Value : {content, contentType}
Name : body
Key : onlineMeetingProvider
Value : unknown
Name : onlineMeetingProvider
Key : isCancelled
Value : False
Name : isCancelled
Key : occurrenceId
Value :
Name : occurrenceId
Key : iCalUId
Value : 040000008200E00074C5B7101A82E00800000000C3A4945E8A0EDB0100000000000000001000000011ADE55DFF95554DAE64F694889977B0
Name : iCalUId
Key : responseStatus
Value : {time, response}
Name : responseStatus
Key : importance
Value : normal
Name : importance
Key : webLink
Value : https://outlook.office365.com/owa/?itemid=AAMkAGNmNzJiZmIxLWNmYzctNDg0Ni04ZWFlLWE3M2I3ODA4ZGFhZABGAAAAAADmDufLA%2F26TLf7b6JGGdIaBwAhLM5YdhxWQb8LVP%2FFZHH0AAAAAAENAAAhLM5YdhxWQb8LVP%2FFZHH0AADE1dhwAAA%3D&exvsurl=1&path=/calendar/item
Name : webLink
Key : recurrence
Value :
Name : recurrence
Key : seriesMasterId
Value :
Name : seriesMasterId
Key : responseRequested
Value : True
Name : responseRequested
Key : originalStartTimeZone
Value : Pacific Standard Time
Name : originalStartTimeZone
Key : isReminderOn
Value : True
Name : isReminderOn
Key : uid
Value : 040000008200E00074C5B7101A82E00800000000C3A4945E8A0EDB0100000000000000001000000011ADE55DFF95554DAE64F694889977B0
Name : uid
Key : isDraft
Value : False
Name : isDraft
Key : @odata.context
Value : https://graph.microsoft.com/v1.0/$metadata#users('43981771-4612-4b5f-a0d0-b35eb4f7c632')/calendars('AAMkAGNmNzJiZmIxLWNmYzctNDg0Ni04ZWFlLWE3M2I3ODA4ZGFhZABGAAAAAADmDufLA-26TLf7b6JGGdIaBwAhLM5YdhxWQb8LVP-FZHH0AAAAAAEGAAAhLM5YdhxWQb8LVP-FZHH0AAAAs_3uAAA%3D')/events/$entity
Name : @odata.context
Key : @odata.etag
Value : W/"ISzOWHYcVkG/C1T/xWRx9AAAxG5aHw=="
Name : @odata.etag
Key : categories
Value : {}
Name : categories
Key : createdDateTime
Value : 24/09/2024 14:02:19
Name : createdDateTime
Key : isAllDay
Value : True
Name : isAllDay
Key : isOnlineMeeting
Value : False
Name : isOnlineMeeting
Key : locations
Value : {}
Name : locations
Key : attendees
Value : {}
Name : attendees
Key : allowNewTimeProposals
Value : True
Name : allowNewTimeProposals
Key : isOrganizer
Value : True
Name : isOrganizer
Key : organizer
Value : {emailAddress}
Name : organizer
Key : changeKey
Value : ISzOWHYcVkG/C1T/xWRx9AAAxG5aHw==
Name : changeKey
Key : hideAttendees
Value : False
Name : hideAttendees
Key : location
Value : {uniqueIdType, coordinates, address, displayName...}
Name : location
Key : onlineMeetingUrl
Value :
Name : onlineMeetingUrl
Key : start
Value : {timeZone, dateTime}
Name : start
Key : end
Value : {timeZone, dateTime}
Name : end
Key : hasAttachments
Value : False
Name : hasAttachments
Key : sensitivity
Value : normal
Name : sensitivity
Key : lastModifiedDateTime
Value : 24/09/2024 14:02:19
Name : lastModifiedDateTime
Key : showAs
Value : oof
Name : showAs
Key : transactionId
Value :
Name : transactionId
Key : onlineMeeting
Value :
Name : onlineMeeting
Key : type
Value : singleInstance
Name : type
Key : reminderMinutesBeforeStart
Value : 15
Name : reminderMinutesBeforeStart
Key : subject
Value : University Study Attendance
Name : subject
Key : bodyPreview
Value : Synced from Rapport.
Name : bodyPreview
Key : originalEndTimeZone
Value : Pacific Standard Time
Name : originalEndTimeZone
ID : 811
email : ***@***.******@***.***>
StartDate : 2024-09-18T00:00:00
EndDate : 2024-09-19T00:00:00
Type : University Study Attendance
Duration : Full Day
Approved : True
Regards
Thomas Wells (he/him)
+44 191 269 5454
From: Tim ***@***.******@***.***>>
Sent: 24 September 2024 13:28
To: microsoftgraph/msgraph-sdk-powershell ***@***.******@***.***>>
Cc: Thomas Wells ***@***.******@***.***>>; Mention ***@***.******@***.***>>
Subject: Re: [microsoftgraph/msgraph-sdk-powershell] New-MgUserCalendarEvent creating duplicate entries (Issue #2960)
You don't often get email from ***@***.******@***.***>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Caution: This is an external email
@TWells94<https://github.com/TWells94> thank you for logging this issue. Please use Invoke-MgGraphRequest cmdlet and let us know if you are still having the same experience. Please use the sample request below. Maybe there is something causing a duplicate web request.
$params = @{
subject = "Let's go for lunch"
body = @{
contentType = "HTML"
content = "Does mid month work for you?"
}
start = @{
dateTime = "2019-03-15T12:00:00"
timeZone = "Pacific Standard Time"
}
end = @{
dateTime = "2019-03-15T14:00:00"
timeZone = "Pacific Standard Time"
}
location = @{
displayName = "Harry's Bar"
}
attendees = @(
@{
emailAddress = @{
address = ***@***.******@***.***>"
name = "Adele Vance"
}
type = "required"
}
)
transactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7"
}
Invoke-mggraphrequest -Uri 'https://graph.microsoft.com/v1.0/users/<UserId>/calendars/<CalendarId>/events' -Method POST -Body $Params -debug
-
Reply to this email directly, view it on GitHub<#2960 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BHXJTOSEQUB4O45LL4Y5DZLZYFLD5AVCNFSM6AAAAABOOC5LTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRGEZTCMJZG4>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
@TWells94 is it possible to switch to a different network environment and execute the request? |
timayabi2020
added
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
and removed
Needs: Attention 👋
labels
Sep 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
type:bug
A broken experience
Describe the bug
Duplicate entries are getting added for one reseult. The exemple params would be
$CalendarSubject = "New Event"
$StartDate = "yyyy-MM-ddT00:00:00"
$DayAfter= "yyyy-MM-ddT00:00:00"
$AllDay = $True
The example screenshot below is from running this once. It seems to add multiple values for some and a single value for others.
I have checked through the results and none of them include duplicate values, i've also removed the "$Event =" and seen it appaears to only add one event but checking the calendar it adds 2.
I've ran it without making the command a variable and it is only showing
Expected behavior
To add one singular value based on the inputs given.
How to reproduce
I have attached a copy of my script but leaving out the inital call (However the example data is copied in the same format)
This is what seems to give 2 copies of the same event entry, at line 112 i even filter out any duplicates based on the start date.
Example_Calendar_Github.txt
SDK Version
2.23.0
Latest version known to work for scenario above?
No response
Known Workarounds
None
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: