I am saving the outlook context and in the saveAsync method i am getting event Id. Sometimes event id contains '/' in it. if i use that eventId with '/' it is failing. can someone help me on this?
Office.context.mailbox.subject.setAsync
(
"subject",
function (asyncResult0)
{
if (asyncResult0.status === Office.AsyncResultStatus.Succeeded)
{
Office.context.mailbox.body.setAsync
(
"sample body",
function (asyncResult1)
{
if (asyncResult1.status === Office.AsyncResultStatus.Succeeded)
{
Office.context.mailbox.item.saveAsync
(
function (result)
{
**let eventId = result.value;**
// Process the result
}
);
}
}
);
}
}
);```