Skip to main content

Notifications

Community site session details

Community site session details

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

Audit History: Disable the Assign Event

(4) ShareShare
ReportReport
Posted on by 11
In our audit history we have a lot of records for the "Assign" event. Every time a record is being assigned to someone an audit history is recorded for it. We don't need this information. Does anyone know how to do either of the following?
  • Delete current assign event records
  • Disable future records from being created
Categories:
  • KT-01051915-0 Profile Picture
    11 on at
    Audit History: Disable the Assign Event
    Thank you, Daivat.
     
    Your suggestion on how to disable Assign event logs does not seem to be accurate unfortunately, I can't seem to get past step 7.
     
     
    Your suggestion to use Bulk Data Updater tool from XrmToolBox for a one time cleanup seems to be working (Advanced Find does not work as you can't lookup audit logs since it isn't a table).
     
    Here is the FetchXML that can be used to find and delete Assign events:
    <fetch version="1.0">
      <entity name="audit">
        <all-attributes />
        <filter type="and">
          <condition attribute="action" operator="eq" value="13" />
        </filter>
      </entity>
    </fetch>
     
    Here is a page detailing which action number relates to which event in audit logs: https://mahadeomatre.blogspot.com/2015/02/ms-crm-audit-database-table-details.html
  • Suggested answer
    Daivat Vartak (v-9davar) Profile Picture
    6,051 Super User 2025 Season 1 on at
    Audit History: Disable the Assign Event
    Hello KT-01051915-0,
     

    You're right, the "Assign" event can generate a significant amount of audit data, especially in environments with frequent record assignments. Here's how you can address both your needs: deleting existing "Assign" event records and disabling future ones from being created:

    1. Disabling Future "Assign" Event Auditing:

    You can disable auditing for the "Assign" operation at the entity level. Here's how:

    1. Go to Settings > Customizations > Customize the System.

    2. Expand Entities.

    3. Select the Entity for which you want to stop auditing the "Assign" event (e.g., Account, Contact, Case, Opportunity). You'll need to do this for each relevant entity.

    4. In the Entity definition, look for the "Data Services" section.

    5. Find the "Auditing" option. If it's not checked, auditing is already disabled for this entity. If it is checked, proceed to the next steps.

    6. Click on "Auditing" to open the Auditing settings for that entity.

    7. In the "Entity Level Auditing" section, you'll see a list of attributes and operations that are being audited.

    8. Locate the "Assign" operation in the list.

    9. Uncheck the box next to "Assign".

    10. Click "Publish" All Customizations.


    11.  

    Important Considerations for Disabling Auditing:

    • Impact on Compliance: Carefully consider the implications of disabling auditing for the "Assign" event. Your organization might have compliance requirements that necessitate tracking record assignments. Ensure you understand these requirements before making this change.

    • Troubleshooting: Audit logs can be valuable for troubleshooting issues and understanding data changes. Disabling auditing for assignments will remove this historical record.

    • Entity-Specific: You need to perform these steps for each entity where you want to stop auditing the "Assign" event.


    •  

    2. Deleting Existing "Assign" Event Records:

    Deleting existing audit records can be done through the Dynamics 365 interface, but it's important to understand the implications:

    1. Go to Settings > Audit Log Management.

    2. You'll see options to delete audit records based on date ranges. However, there isn't a direct filter within the standard interface to delete only "Assign" events.


    3.  

    Workarounds for Deleting Specific "Assign" Events (More Involved):

    • Advanced Find (Limited):

      1. Go to Advanced Find.

      2. In the "Look for" dropdown, select Audit Logs.

      3. You can try to filter by the "Operation" field and select "Assign".

      4. However, the standard "Delete" functionality in Advanced Find for Audit Logs might be limited or not available for bulk deletion.

      5.  

    • Using the Bulk Data Updater Tool (from XrmToolBox):

      1. Connect to your Dynamics 365 environment using XrmToolBox.

      2. Find and open the "Bulk Data Updater" tool.

      3. Select the Audit Logs entity.

      4. Use the filtering options to target the "Assign" events based on the "Operation" field and the date range you want to delete.

      5. Choose the action "Delete Matching Records".

      6. Exercise extreme caution when using bulk deletion tools. Ensure you have selected the correct records before deleting them, as this action is irreversible. It's highly recommended to perform this in a non-production environment first to verify the results.

      7.  

    • Writing Custom Code (Plugin or Console Application):

      1. A developer could write custom code using the Dynamics 365 SDK to query and delete audit records based on the "Operation" type ("Assign") and a specific date range.

      2. This provides the most control but requires development effort and should be thoroughly tested.

      3.  

    •  

    Recommendation:

    • Disable Future Auditing: The first and most crucial step is to disable future auditing of the "Assign" event for the entities where you don't need this information. This will prevent the audit log from growing unnecessarily.

    • Deleting Existing Records:

      • For a one-time cleanup, using the Bulk Data Updater tool from XrmToolBox is likely the most feasible option within the standard toolkit, but requires careful filtering and understanding of the tool.

      • If you have a large volume of "Assign" events to delete regularly, consider a custom code solution for more automated and controlled deletion.

      • Be aware that deleting audit logs can have implications for historical analysis and compliance. Ensure you have the necessary approvals and understand the potential impact before deleting any audit data.


      •  

    Remember to always test any changes, especially deletion processes, in a non-production (sandbox) environment first.

     
    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
  • Suggested answer
    Tom_Gioielli Profile Picture
    1,369 on at
    Audit History: Disable the Assign Event
     
    The above link goes through how to delete specific audit records. You'll want to review the Assign action to make sure you filter down and only delete those types of actions.
     
    I am not aware of a setting or feature that will prevent the Assign audit history from being created, other than disabling audit for the entity entirely.
     
    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... 294,118 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans