Exchange mailbox rule export and import












0















I am curious to know if it is even possible to export mailbox rule from one tenant (tenant A) to a new tenant (tenant B). This is after Tenant A has been migrated to Tenant B.



I have tested 3 different methods with no success.




  1. Microsoft Graph API: The code works but it doesn’t allow us to import from A to B. If I export from A and import to A teanant or different account on that tenant it works.
    { "error": { "code": "MessageRuleValidationError", "message": "ErrorCode: 'InvalidValue', Message: 'No mailbox with such guid.', Field: 'Action.CopyToFolder', Value: 'AQMkAGM0NWJhZDMxLTYyNmUtNGIxNy1hMmQ4LWRjMDlkMDQ0AGM1OWUALgAAAymAV8m5TCtGuN0NJDnVw4gBAAi19MYDG7VEuldE4lOvZFEAAAIBQgAAAA=='.", "innerError": { "request-id": "ca3c9777-8ddc-41f0-8790-938294661ebc", "date": "2018-12-28T06:13:23" } } }

  2. Manual Process: I was able to export and import within the same environment on multiple accounts but once I imported onto Tenant B it failed
    ADAccount01@sjhtestad2.org ) becuase I only had access to one PHS account.

  3. New-InboxRule Method: I used the exported file and try to import using New-InboxRule and I got the following error
    `The specified mailbox "AAMkADZkZTU5ZTgzLTUzNDUtNDAwNy1hYTBlLTFkNmVhNWFhMzk2YwAuAAAAAABZtDH804khSZs_9ansnr8hAQACqSktPeE9SrZAHfG14OfYAAARNiPIAAA=" doesn't exist.


    • CategoryInfo : NotSpecified: (:) [New-InboxRule], ManagementObjectNotFoundException`




Any ideas?










share|improve this question



























    0















    I am curious to know if it is even possible to export mailbox rule from one tenant (tenant A) to a new tenant (tenant B). This is after Tenant A has been migrated to Tenant B.



    I have tested 3 different methods with no success.




    1. Microsoft Graph API: The code works but it doesn’t allow us to import from A to B. If I export from A and import to A teanant or different account on that tenant it works.
      { "error": { "code": "MessageRuleValidationError", "message": "ErrorCode: 'InvalidValue', Message: 'No mailbox with such guid.', Field: 'Action.CopyToFolder', Value: 'AQMkAGM0NWJhZDMxLTYyNmUtNGIxNy1hMmQ4LWRjMDlkMDQ0AGM1OWUALgAAAymAV8m5TCtGuN0NJDnVw4gBAAi19MYDG7VEuldE4lOvZFEAAAIBQgAAAA=='.", "innerError": { "request-id": "ca3c9777-8ddc-41f0-8790-938294661ebc", "date": "2018-12-28T06:13:23" } } }

    2. Manual Process: I was able to export and import within the same environment on multiple accounts but once I imported onto Tenant B it failed
      ADAccount01@sjhtestad2.org ) becuase I only had access to one PHS account.

    3. New-InboxRule Method: I used the exported file and try to import using New-InboxRule and I got the following error
      `The specified mailbox "AAMkADZkZTU5ZTgzLTUzNDUtNDAwNy1hYTBlLTFkNmVhNWFhMzk2YwAuAAAAAABZtDH804khSZs_9ansnr8hAQACqSktPeE9SrZAHfG14OfYAAARNiPIAAA=" doesn't exist.


      • CategoryInfo : NotSpecified: (:) [New-InboxRule], ManagementObjectNotFoundException`




    Any ideas?










    share|improve this question

























      0












      0








      0








      I am curious to know if it is even possible to export mailbox rule from one tenant (tenant A) to a new tenant (tenant B). This is after Tenant A has been migrated to Tenant B.



      I have tested 3 different methods with no success.




      1. Microsoft Graph API: The code works but it doesn’t allow us to import from A to B. If I export from A and import to A teanant or different account on that tenant it works.
        { "error": { "code": "MessageRuleValidationError", "message": "ErrorCode: 'InvalidValue', Message: 'No mailbox with such guid.', Field: 'Action.CopyToFolder', Value: 'AQMkAGM0NWJhZDMxLTYyNmUtNGIxNy1hMmQ4LWRjMDlkMDQ0AGM1OWUALgAAAymAV8m5TCtGuN0NJDnVw4gBAAi19MYDG7VEuldE4lOvZFEAAAIBQgAAAA=='.", "innerError": { "request-id": "ca3c9777-8ddc-41f0-8790-938294661ebc", "date": "2018-12-28T06:13:23" } } }

      2. Manual Process: I was able to export and import within the same environment on multiple accounts but once I imported onto Tenant B it failed
        ADAccount01@sjhtestad2.org ) becuase I only had access to one PHS account.

      3. New-InboxRule Method: I used the exported file and try to import using New-InboxRule and I got the following error
        `The specified mailbox "AAMkADZkZTU5ZTgzLTUzNDUtNDAwNy1hYTBlLTFkNmVhNWFhMzk2YwAuAAAAAABZtDH804khSZs_9ansnr8hAQACqSktPeE9SrZAHfG14OfYAAARNiPIAAA=" doesn't exist.


        • CategoryInfo : NotSpecified: (:) [New-InboxRule], ManagementObjectNotFoundException`




      Any ideas?










      share|improve this question














      I am curious to know if it is even possible to export mailbox rule from one tenant (tenant A) to a new tenant (tenant B). This is after Tenant A has been migrated to Tenant B.



      I have tested 3 different methods with no success.




      1. Microsoft Graph API: The code works but it doesn’t allow us to import from A to B. If I export from A and import to A teanant or different account on that tenant it works.
        { "error": { "code": "MessageRuleValidationError", "message": "ErrorCode: 'InvalidValue', Message: 'No mailbox with such guid.', Field: 'Action.CopyToFolder', Value: 'AQMkAGM0NWJhZDMxLTYyNmUtNGIxNy1hMmQ4LWRjMDlkMDQ0AGM1OWUALgAAAymAV8m5TCtGuN0NJDnVw4gBAAi19MYDG7VEuldE4lOvZFEAAAIBQgAAAA=='.", "innerError": { "request-id": "ca3c9777-8ddc-41f0-8790-938294661ebc", "date": "2018-12-28T06:13:23" } } }

      2. Manual Process: I was able to export and import within the same environment on multiple accounts but once I imported onto Tenant B it failed
        ADAccount01@sjhtestad2.org ) becuase I only had access to one PHS account.

      3. New-InboxRule Method: I used the exported file and try to import using New-InboxRule and I got the following error
        `The specified mailbox "AAMkADZkZTU5ZTgzLTUzNDUtNDAwNy1hYTBlLTFkNmVhNWFhMzk2YwAuAAAAAABZtDH804khSZs_9ansnr8hAQACqSktPeE9SrZAHfG14OfYAAARNiPIAAA=" doesn't exist.


        • CategoryInfo : NotSpecified: (:) [New-InboxRule], ManagementObjectNotFoundException`




      Any ideas?







      outlook migration exchangewebservices






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 31 '18 at 21:11









      Heng YonHeng Yon

      32




      32
























          1 Answer
          1






          active

          oldest

          votes


















          0














          No you can't Export and Import, because the Identifiers used for Mailbox Folder, address lists, recipients (eg if they are in the Native Address format) etc are only work in the Mailbox where the Rule was created.



          You would be better investing the time to create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc but its not that much effort and will be a lot more reliable then what you trying to do.






          share|improve this answer
























          • What do you mean by saying "create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc"

            – Heng Yon
            Jan 8 at 16:37











          • Create a New rule and for each of the properties use the values from the other rule except any identifiers which won't be valid

            – Glen Scales
            Jan 9 at 1:38











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53991449%2fexchange-mailbox-rule-export-and-import%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          No you can't Export and Import, because the Identifiers used for Mailbox Folder, address lists, recipients (eg if they are in the Native Address format) etc are only work in the Mailbox where the Rule was created.



          You would be better investing the time to create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc but its not that much effort and will be a lot more reliable then what you trying to do.






          share|improve this answer
























          • What do you mean by saying "create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc"

            – Heng Yon
            Jan 8 at 16:37











          • Create a New rule and for each of the properties use the values from the other rule except any identifiers which won't be valid

            – Glen Scales
            Jan 9 at 1:38
















          0














          No you can't Export and Import, because the Identifiers used for Mailbox Folder, address lists, recipients (eg if they are in the Native Address format) etc are only work in the Mailbox where the Rule was created.



          You would be better investing the time to create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc but its not that much effort and will be a lot more reliable then what you trying to do.






          share|improve this answer
























          • What do you mean by saying "create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc"

            – Heng Yon
            Jan 8 at 16:37











          • Create a New rule and for each of the properties use the values from the other rule except any identifiers which won't be valid

            – Glen Scales
            Jan 9 at 1:38














          0












          0








          0







          No you can't Export and Import, because the Identifiers used for Mailbox Folder, address lists, recipients (eg if they are in the Native Address format) etc are only work in the Mailbox where the Rule was created.



          You would be better investing the time to create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc but its not that much effort and will be a lot more reliable then what you trying to do.






          share|improve this answer













          No you can't Export and Import, because the Identifiers used for Mailbox Folder, address lists, recipients (eg if they are in the Native Address format) etc are only work in the Mailbox where the Rule was created.



          You would be better investing the time to create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc but its not that much effort and will be a lot more reliable then what you trying to do.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 1 at 0:14









          Glen ScalesGlen Scales

          11.8k11116




          11.8k11116













          • What do you mean by saying "create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc"

            – Heng Yon
            Jan 8 at 16:37











          • Create a New rule and for each of the properties use the values from the other rule except any identifiers which won't be valid

            – Glen Scales
            Jan 9 at 1:38



















          • What do you mean by saying "create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc"

            – Heng Yon
            Jan 8 at 16:37











          • Create a New rule and for each of the properties use the values from the other rule except any identifiers which won't be valid

            – Glen Scales
            Jan 9 at 1:38

















          What do you mean by saying "create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc"

          – Heng Yon
          Jan 8 at 16:37





          What do you mean by saying "create a process that create a new rule using the rule from the Mailbox you want to export from as a Template. But you will need to write a process to find folders if its a Move rule etc"

          – Heng Yon
          Jan 8 at 16:37













          Create a New rule and for each of the properties use the values from the other rule except any identifiers which won't be valid

          – Glen Scales
          Jan 9 at 1:38





          Create a New rule and for each of the properties use the values from the other rule except any identifiers which won't be valid

          – Glen Scales
          Jan 9 at 1:38




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53991449%2fexchange-mailbox-rule-export-and-import%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas