Good day, Fabio,
this is the italian forum.
For english please visit the ENGLISH Q&A
If you would like support in italian, please do let us know.
Thank you
Questo browser non è più supportato.
Esegui l'aggiornamento a Microsoft Edge per sfruttare le funzionalità più recenti, gli aggiornamenti della sicurezza e il supporto tecnico.
Hello,
We are experiencing an issue with the Microsoft Graph API, specifically with the function to update a message.
According to the documentation available at the following link: https://video2.skills-academy.com/en-us/graph/api/message-update?view=graph-rest-1.0&tabs=http, it is possible to modify the "replyTo" attribute of an existing message when it is in draft mode (isDraft=True
). However, when we attempt to execute this call, it does not seem to work, even though it returns a status code 200.
Below are the details of my HTTP request:
"replyTo"
Here is the code snippet of the function used:
defdef update_email_data(email_id, new_data):
api_endpoint = f"{ms_graph_endpoint}/{user_id}/mailFolders/Inbox/messages/{email_id}"
response = requests.patch(api_endpoint, headers=graph_manager.headers, json=new_data)
updated_email_id = response.json()["id"]
return response, updated_email_id
Data passed for the update:
data = {
data = {
"subject": "TEST",
"toRecipients": [
{
"emailAddress": {
"name": "my_username",
"address": "my_personal_email"
}
}
],
"replyTo": [
{
"emailAddress": {
"name": "my_username",
"address": "my_personal_email"
}
}
]
}
resp, _ = update_email_data(email_id=retrieved_email_id, new_data=data)
We have verified that the message ID and other request details are correct. Additionally, other attributes such as 'subject' and "toRecipients" are being correctly modified.
Could you please assist us in resolving this issue? Is it possible that there are additional restrictions or requirements for modifying the "replyTo" attribute?
Thank you in advance for your support.
Best regards, F.
Good day, Fabio,
this is the italian forum.
For english please visit the ENGLISH Q&A
If you would like support in italian, please do let us know.
Thank you