Share via

Issue with Office.context.mailbox.getCallbackTokenAsync for Shared mailbox

Anonymous
2023-11-17T05:25:26+00:00

I'm encountering an issue with the Office.context.mailbox.getCallbackTokenAsync function in my Office Add-in from office 365. The function works fine for a non-shared inbox but returns an error for a shared inbox.

Below is the code I am using

Office.context.mailbox.getCallbackTokenAsync(
            { isRest: true },
            (result: any) => {
            
                if (result.status === "succeeded") {
                    var accessToken = result.value;
                    this.getWebUrl()
                        .then((itemId) => {         
                } else {
                    reject(result);
                });

Error Message:

OSF.DDA.Error {name: 'GenericTokenError', message: 'An internal error has occurred.', code: 9018}

  • Scenario: Works for non-shared inbox, but fails for Shared inbox.
  • Expected Outcome: Successful retrieval of access token for shared inbox.

Questions:

  • Has anything changed with "getCallbackTokenAsync" recently that might affect its behavior with shared inboxes?
  • Are there specific permissions or configurations required for accessing shared mailboxes using "getCallbackTokenAsync"?

Can anyone please suggest any solution to this or anything that would help me resolve this?

Outlook | Web | Outlook.com | Email

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-11-17T06:05:05+00:00

    Hi Sahana

    I'm Diane and I'm happy to help you today.

    Sorry to hear you're experiencing this issue.

    Please note, this Community primarily provides consumer support and your question is focused on development. The new Q&A forums are better suited for these questions.

    https://learn.microsoft.com/en-us/answers/

    Unfortunately, moderators are unable to move messages to that forum, so you'll need to repost it.

    Let me know how it goes, I'm here to help you further if needed.

    -- Diane

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments