我正在保存 Outlook 上下文,并在 saveAsync 方法中获取事件 ID。有时事件 id 中包含“/”。如果我将该 eventId 与“/”一起使用,它将失败。有人可以帮我吗?
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
}
);
}
}
);
}
}
);```