Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Mailbox settings Delete Emails after Processing locked field

(4) ShareShare
ReportReport
Posted on by 90
 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:
  • Suggested answer
    Tom_Gioielli Profile Picture
    1,069 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
    4,709 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
    90 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,069 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,354 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,498 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans