Skip to content
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

Headers are sometimes not being set correctly with New Outlook for Windows #1909

Open
victorcalarasu opened this issue Mar 20, 2025 · 0 comments

Comments

@victorcalarasu
Copy link

victorcalarasu commented Mar 20, 2025

Our application is an add-in developed in react (typescript) and makes use of the microsoft graph apis to do certain actions.

Our add-in sets three headers (via patch with microsoft graph api) consecutively on a draft email and then sends it (via microsoft graph api) and we saw that sometimes the first one is not being set. (the second and the third are set correctly). On the browser version of Outlook this never occurs, but with New Outlook for Windows it happens pretty regularly.
We get our auth token through MSAL.

axios
.patch(
${microsoftGraphAPIUrl}${messageId},
{
singleValueExtendedProperties: [
{
id: 'String {00020386-0000-0000-C000-000000000046} Name ' + name,
value: value,
},
],
},
{
headers: {
Authorization: 'Bearer ' + authToken,
'Content-Type': 'application/json',
},
},
)

Could this be related to an incompatibility between New Outlook for Windows and Microsoft Graph?
If you need further details please let me know,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant