-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Describe the bug
I use to adopt a powershell script to daily schedule my autoreply message (see https://github.com/dcorrada/POWERSHELL/blob/unstable/Graph/PowerShell_SDK/AutoreplySDK.ps1 )
In the last few days I have updated Microsoft.Graph modules from version 2.25 to 2.26. After then I have encountered the following error when I launch my script:
After parsing a value an unexpected character was encountered: f. Path 'automaticRepliesSetting.extealReplyMessage', line 3, position 128.
From Microsoft Learn docs I haven't found any clue about putative syntax changes, regarding the synopsis of the cmdlet Update-MgUserMailboxSetting.
Expected behavior
The script sets a working autoreply on Outlook Web App
How to reproduce
Then, I have tried to get and check key and values of the related hash table after manually autoreply (setted from the OWA web interface and working). This below is the hash table obtained (edited with ****) and
it doesn't work when these contents are setted inside my script:
{ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('****')/mailboxSettings", "archiveFolder": "****", "timeZone": "W. Europe Standard Time", "delegateMeetingMessageDeliveryOptions": "sendToDelegateOnly", "dateFormat": "dd/MM/yyyy", "timeFormat": "HH:mm", "userPurpose": "user", "automaticRepliesSetting": { "status": "disabled", "externalAudience": "none", "internalReplyMessage": "<html>\n<body>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">Hi there,</span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">currently I am out of office.</span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">I will be available from monday to friday, 09:00-16:00. Preferably, I will reply to your email in such period.</span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">Please note: my MS Teams is in sleep mode. I may not read your messages.</span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">For any support request you should send an email to\n<a href=\"mailto:[email protected]\" style=\"margin-top:0px; margin-bottom:0px\">\[email protected]</a></span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">Kind regards</span></p>\n</body>\n</html>\n", "externalReplyMessage": "<html>\n<body>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">Hi there,</span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">currently I am out of office.</span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">I will be available from monday to friday, 09:00-16:00. Preferably, I will reply to your email in such period.</span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">Please note: my MS Teams is in sleep mode. I may not read your messages.</span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">For any support request you should send an email to\n<a href=\"mailto:[email protected]\" style=\"margin-top:0px; margin-bottom:0px\">\[email protected]</a></span></p>\n<p><span style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt\">Kind regards</span></p>\n</body>\n</html>\n", "scheduledStartDateTime": { "dateTime": "2025-02-27T15:00:00.0000000", "timeZone": "UTC" }, "scheduledEndDateTime": { "dateTime": "2025-02-28T15:00:00.0000000", "timeZone": "UTC" } }, "language": { "locale": "it-IT", "displayName": "Italian (Italy)" }, "workingHours": { "daysOfWeek": [ "monday", "tuesday", "wednesday", "thursday", "friday" ], "startTime": "08:00:00.0000000", "endTime": "17:00:00.0000000", "timeZone": { "name": "W. Europe Standard Time" } } }
SDK Version
2.26.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_