VineetKumar-1576 avatar image
0 Votes"
VineetKumar-1576 asked ChristyZhang-MSFT edited

User with apostrophe in email address is not added in required Attendee using Office API.

We have email/room containing apostrophe (first'

Current behavior: Using office API (Office.context.mailbox.item.requiredAttendees.addAsync) : "emailAddress": "first'" is not added in requiredAttendees as this have aporstrophe.
Expected Behaviour : "emailAddress": "first'" must be added in requiredAttendees.


Platform [PC desktop, Mac, Office on the web]
Host [Excel, Word, PowerPoint, etc.]: OWA + Native Outlook
Operating System:Window 10
Browser : Chrome (We support all browsers ie Microsoft Edge| Mozilla | Safari)

Passed Scenario:
1. Open calendar --> click on any time slot to book a meeting, paste email address (first' to invitee attendee, its work.

Failed Scenario:
2. Now add attendee using office api ie
Code Snippet
var emailArray = [ { "displayName": "Allie Bellew", "emailAddress": "first'" }, { "displayName": "Alex Darrow", "emailAddress": "" } ];
function setRequiredAttendees() {
Office.context.mailbox.item.requiredAttendees.addAsync(emailArray, function(asyncResult) {
if (asyncResult.error){
if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {
} else {
3. In above case "emailAddress": "first'" is not added in requiredAttendees as this have aporstrophe.
4. In above case only "emailAddress": "" is added in requiredAttendees.

Please suggest how email address ("emailAddress": "first'") with apostrophe will be added in requiredAttendees as we mentioned in point #3.


We have outlook addin which fetch data from api and add emailAddress using office api (Office.context.mailbox.item.requiredAttendees.addAsync.

Userful logs:

image.png (79.0 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @VineetKumar-1576 ,

Welcome to our forum!

According to your description, I noticed that you tried to create a meeting in outlook (desktop client & web mail) and add "test'” as a meeting attendee, but the address of the meeting attendee can only be displayed as“ ”, right?

If so, based on my test on my Outlook 365(version 2108(Build 14326.20404 Click-to-Run)), the address with apostrophe can be displayed successfully in required Attendees. Please make sure you have upgraded your Outlook to the latest version.

If this issue occurs on outlook for web, please kindly understand that the Outlook tag here we mainly focus on general issues about Outlook desktop client, In order to better solve your problem, it's suggested that you could post your case in dedicated forum for

If the above isn't your issue, please provide more information about your case.

0 Votes 0 ·
2.png (33.4 KiB)

Hi @ChristyZhang-MSFT ,

Thanks for reply.

My concern is that
1) if we add "test'” as a meeting attendee then its working fine.

2) But if we add this using officejs api as mentioned in below code snippet, then its not added.

Code Snippet
var emailArray = [ { "displayName": "Test Name, "emailAddress": "test'" } ];
function setRequiredAttendees() {
Office.context.mailbox.item.requiredAttendees.addAsync(emailArray, function(asyncResult) {

Excpected : If we add "test'” using office js api, then this should be added.

0 Votes 0 ·

Hi @VineetKumar-1576 ,

Thanks for your reply!

Looks like the issue is more related to office js api. Please kindly understand that the Outlook tag here we mainly focus on general issues about Outlook desktop client and we will remove "office-outlook-itpro" tag.

Thanks for your understanding and hope your issue would be resolved soon.

1 Vote 1 ·

0 Answers