Problem to Reply Messages Using Graph

João Luiz Almeida 21 Reputation points
2021-04-23T18:17:52.047+00:00

Hi,

I have a Application used to read and write mails of shared mailbox.

Recently this app starts to receiving this error:

503 - {"error":{"code":"ErrorMailboxMoveInProgress","message":"Mailbox move in progress. Try again later., The user and the mailbox are in different Active Directory sites."}}

Anyone has the same error? Nothing change in exchange server.

Tanks.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,715 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
516 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Chelliah CR, Anish 6 Reputation points
    2021-04-27T12:24:01.19+00:00

    Hi @João Luiz Almeida ,
    I am writing this reply on behalf of @Nagpal, Jasica .

    We were making use of logic apps and this issue was seen since 23rd apr. Thanks to @Albert Delgado we have got it fixed now.

    @João Luiz Almeida we had fixed this issue in logic apps, and based on what we were witnessing Microsoft seems to have put in a change which makes it mandatory for us to pass in the the mailboxId as a query parameter for shared mailboxes.
    we are using different users/shared-mailboxes to authenticate another shared mailbox.

    If you are using logic apps you could click on 'add additional parameters' and add 'mailboxAddress' as a parameter. you will have to pass in the targeted shared mailbox id as its value.

    I'm not sure if I can attach screenshots of the solution showing the same, hence ill describe how you could edit this in the code view as well.

    eg 1:(export email block)
    "ExportEmailBody": {
    "inputs": {
    "host": {
    "connection": {
    "name": "@parameters('$connections')['office365']['connectionId']"
    }
    },
    "method": "get",
    "path": "/codeless/beta/me/messages/@{encodeURIComponent(ente-your-email-message-id-here}/$value",
    "queries": {
    "mailboxAddress": "fill-in-your-shsred-mailbox-address-here"
    }
    },
    "runAfter": {}
    }

    eg 2: (move email block)

    "Move_email_(V2)": {
    "inputs": {
    "host": {
    "connection": {
    "name": "@parameters('$connections')['office365']['connectionId']"
    }
    },
    "method": "post",
    "path": "/v2/Mail/Move/@{encodeURIComponent(ente-your-email-message-id-here)}",
    "queries": {
    "folderPath": "Id::enter-your-folder-path-here",
    "mailboxAddress": "enter-your-shared-mailbox-id-here"
    }
    },
    "metadata": {
    "Id::enter-your-folder-path-here": "enter-your-folder-name-here"
    },
    "runAfter": {},
    "type": "ApiConnection"
    }

    in the above examples change the below with relevant values:
    enter-your-email-message-id-here
    enter-your-shared-mailbox-id-here
    enter-your-folder-path-here
    enter-your-folder-name-here

    1 person found this answer helpful.
    0 comments No comments

  2. KalyanChanumolu-MSFT 8,316 Reputation points
    2021-04-24T07:52:02.08+00:00

    @João Luiz Almeida Welcome to Microsoft Q&A forums.

    Our apologies for the inconvenience caused to you.

    Could you please check if there are any mailboxes being moved?
    You can use Poweshell Cmdlet Get-MoveRequest to check if there are any active requests.

    If there aren't any, this could be an intermittent issue and should resolve itself without your intervention
    However, if this is critical and affecting your production workloads, please reach out to Azure Support.

    You can also check if there are any service issues affecting your subscription from the Service Health page

    ----------

    If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.