Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Mailbox settings Delete Emails after Processing locked field

(6) ShareShare
ReportReport
Posted on by 129
 Hi
Can anyone advise how i update the field Delete Emails after Processing to Yes. The field is now locked and is set to NO.
I am in power platform Environment settings - Mailbox
 
 
Thanks Vanessa
 
 
Apologies - this is for a Queue and not a user mailbox. It is a existing queue for over 2 years that was set to NO but now wants to be Yes.
Categories:
  • Verified answer
    Vness Profile Picture
    129 on at
    Mailbox settings Delete Emails after Processing locked field
    Hi All 
    thank you for your input.
     
    I have raised a MS ticket.
    But the good news is that i managed to create a business rule on the Mailbox Table to update the field to Yes if Admin was the owner of the email address. 
    I activated the business rule then opened the affected mailbox. The field was changed to Yes. I then deactivated the business rule so that it didn't affect any other mailboxes,
    When I re-opened the affected mail box the field was set to Yes still and the Outlook mails were being deleted.
     
    I have monitored this queue mailbox and all the others and all looks good in the world.
     
    I have left the ticket open with MS as i would still like to know why they have changed the process.
     
    Regards
    Vanessa
     
  • Vness Profile Picture
    129 on at
    Mailbox settings Delete Emails after Processing locked field
    Hi Tom,
    Thank you for your response.
     
    When the Queue is created it automatically creates the mailbox and when you view that mail box all the fields are Locked so am unable to update to Yes.
    I have deactivated the Queue but this also deactivates the associated mailbox.
     
    We haven most of our Queue emails set to YES and the one in question was NO :( 
     
    I have also looked in power apps to see if i can change the locked column field and believe it or not that field shows as not locked! So, I am totally baffled by this whole thing. 
     
  • Suggested answer
    Tom_Gioielli Profile Picture
    1,803 on at
    Mailbox settings Delete Emails after Processing locked field
    Do you have the option available on any other mailboxes in your organization? I do wonder if a newer queue has the ability to toggle this, or if everything is locked for you.
     
    • Maybe try to retest and enable the mailbox, or make sure that it is "Approved" and see if that unlocks the field
    • Create a new queue record and see if you can update the toggle after testing, approving, and enabling the mailbox
    • Check if any mailboxes in your org are set to "yes", and review if something is different on those records
     
    Take the AI suggestion below with a grain of salt. There is no setting on the queue record itself for this functionality, it is only on the mailbox. The field is not being locked through the form or through a business rule, which means there is some sort of Microsoft logic being run to control whether you can edit it. I can't find specific documentation around what that would be. Without knowing that, I would not recommend brute forcing the toggle through XRM Toolbox or an API call.
     
    Worst case scenario, this might be an easy ticket into Microsoft to discover why it is locked and what can be done.
  • Suggested answer
    Daivat Vartak (v-9davar) Profile Picture
    7,805 Super User 2025 Season 1 on at
    Mailbox settings Delete Emails after Processing locked field
    Hello Vanessa,
     

    You've run into a common issue with Dynamics 365 (Power Platform) Queue mailboxes: the "Delete Emails After Processing" field being locked and set to "No" after a queue has been created. This is often due to the way queues and their associated mailboxes are initially provisioned.

    Here's a breakdown of the problem and how to resolve it:

    Understanding the Problem:

    • Queue Mailboxes: Queue mailboxes are used to process incoming emails and create records (e.g., cases) in Dynamics 365.
    • "Delete Emails After Processing" Field: This field controls whether emails are deleted from the mailbox after Dynamics 365 processes them.
    • Locked Field: The field is often locked after the queue is created, preventing direct modification.
    • Queue Age: You mentioned that the queue is over 2 years old, this is relevant because some older configurations may have different behaviors.

    •  

    Solutions:


    1. Using the XrmToolBox (Recommended):

      • Concept: The XrmToolBox is a free community tool that provides access to hidden settings and allows you to modify locked fields.

      • Steps:

        1. Download and Install XrmToolBox: Download and install the XrmToolBox from its official website.
        2. Connect to your Dynamics 365 environment: Connect the XrmToolBox to your Dynamics 365 environment.

        3. Use the "Attribute Bulk Updater" Tool:

          • Open the "Attribute Bulk Updater" tool within XrmToolBox.
          • Select the "Queue" entity.
          • Create a filter to select the specific queue you want to modify.
          • Select the "deleteemailsafterprocess" attribute.
          • Set the value to "True" (Yes).
          • Execute the update. 

        4. Verify the change: Go back to your Dynamics 365 environment and verify that the "Delete Emails After Processing" field is now set to "Yes". 

      • Advantages:

        • Relatively easy to use.
        • Provides access to hidden settings.
        • No code required. 

      • Disadvantages:

        • Requires using a third-party tool. 
         

    2. Using the Web API (More Technical):

      • Concept: You can use the Dynamics 365 Web API to update the queue record and modify the "deleteemailsafterprocess" field.

      • Steps:

        1. Get the Queue ID: Retrieve the GUID of the queue you want to modify.
        2. Use a REST Client: Use a REST client (e.g., Postman, Insomnia) or write JavaScript code to make a PATCH request to the Web API.
        3. Construct the PATCH Request:
          • Use the following endpoint: [your-org-url]/api/data/v9.x/queues([queue-id])
          • Set the request headers:

            • Content-Type: application/json
            • OData-MaxVersion: 4.0
            • OData-Version: 4.0 

          • Set the request body
        4. Send the Request: Send the PATCH request to update the queue record.
        5. Verify the change: Go back to your Dynamics 365 environment and verify that the "Delete Emails After Processing" field is now set to "Yes". 

      • Advantages:

        • Works directly with the Dynamics 365 API.
        • Can be automated. 

      • Disadvantages:

        • Requires technical knowledge of the Web API.
        • More complex than using XrmToolBox. 
         

    3. Contact Microsoft Support (If Other Methods Fail):

      • Concept: If you're unable to modify the field using XrmToolBox or the Web API, contact Microsoft Support.

      • Steps:

        • Open a support ticket with Microsoft.
        • Provide them with the details of the queue and the issue you're experiencing.
        • They might be able to assist you in modifying the field or identify any underlying issues. 

      • Advantages:

        • Provides direct assistance from Microsoft. 

      • Disadvantages:

        • Can be time-consuming. 
          

    4.  

    Recommendation:

    • Using the XrmToolBox (Option 1) is the most recommended approach for most users. It's relatively easy to use and provides access to the necessary settings.
    • The Web API (Option 2) is a good alternative for those with technical knowledge or who need to automate the process.
    • Contact Microsoft Support (Option 3) should be used as a last resort.

    •  

    By using one of these methods, you should be able to update the "Delete Emails After Processing" field for your queue.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak
  • Vness Profile Picture
    129 on at
    Mailbox settings Delete Emails after Processing locked field
    Apologies - this is for a Queue and not a user mailbox. It is a existing queue for over 2 years that was set to NO but now wants to be Yes.
  • Tom_Gioielli Profile Picture
    1,803 on at
    Mailbox settings Delete Emails after Processing locked field
    That setting can only be enabled for Forwarding mailboxes and queue based mailboxes.
     
     
    I'm guessing you may be looking at a user owned mailbox or some other type?
     
    If this answer helped, please consider marking as verified.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans