mscrm-addons.com logomscrm-addons.com logo
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
home/Knowledge Base/DocumentsCorePack(DCP)/How to purge temporary data files

How to purge temporary data files

3413 views 8 Updated on November 20, 2024

Each time a document is generated, a corresponding temporary file is created and stored within Dataverse.  Since these temporary files can add up and consume large amounts of database storage, it becomes important to delete them from time to time.

This article provides instructions on how to

  1. Find the correct temporary data files and
  2. Create a workflow that purges the files automatically

Note: Alternatively, if you’d like to store your temporary files outside of Dataverse, please see here.

1a. Finding the correct temporary files via filtered view

To locate the correct temporary files, navigate to Power Apps and locate the MSCRM-ADDONS.com User/Temp Settings table.  Then, click on Views.

Navigating to the table's views
Figure 1: Navigating to the table’s views

Create a new view on the next page.

Creating a new view
Figure 2: Creating a new view

Name your view and select edit filters.

Adding filters to our view
Figure 3: Adding filters to our view

Add the following filters to the Edit filters window:

  • Name Begins with AM_Doc
  • Name Begins with DCP API Concat
  • Name Equals DCPConcatenatedDocument
  • Name Equals SharePoint Doc converted
  • Name Equals SharePoint Template
  • Name Equals DCPSaveToSharePoint
  • Name Equals DCP API AttachToEmail
  • Value Begins With print:?id=
  • Value Begins With fetch:<fetch
  • Value Begins With <DSSetting
The list of filters needed for our view
Figure 4: The list of filters needed for our view

Save and publish this view.  This view can be accessed by navigating to the ❶ Power Platformer Environment Settings and clicking on the ❷ DocumentsCorePack tab. Under the ❸ Entities tab, open the ❹ MSCRM-ADDONS.com User/Temp Settings entity link.

Note: To see the Entities tab, please make sure your DocumentsCorePack Server version is updated to 2024.3 or higher

Figure 5: Accessing the MSCRM-ADDONS.com User/Temp Settings entity

After selecting our created view, the filtered list will be displayed.

Our filtered list
Figure 6: Our filtered list

1b. Finding the correct temporary files via Advanced Find (legacy)

To find the correct temporary files via Advanced Find, enter the following URL into your web browser, replacing “<YOURCRMNAMEHERE>” with the name of your Dataverse instance:

https://<YOURCRMNAMEHERE>.crm4.dynamics.com/main.aspx?pagetype=advancedfind

Under the Look For drop down, select MSCRM-ADDONS.com User/Temp Settings and enter the following filters:

  • Name Begins with AM_Doc
  • Name Begins with DCP API Concat
  • Name Equals DCPConcatenatedDocument
  • Name Equals SharePoint Doc converted
  • Name Equals SharePoint Template
  • Name Equals DCPSaveToSharePoint
  • Name Equals DCP API AttachToEmail
  • Value Begins With print:?id=
  • Value Begins With fetch:<fetch
  • Value Begins With <DSSetting
Creating the filter via Advanced Find
Figure 7: Creating the filter via Advanced Find

By clicking the Result button, a list of temporary files will be displayed.

2. Creating an automatic workflow to delete temporary files

To manage large quantities of temporary files, it is useful to configure an automated solution to delete them.  By creating a workflow, we can schedule our temporary files to be deleted on a regular basis.

To create a workflow, navigate to the Power Platform Environment Settings.  Select the Data Management tab and click on Bulk record deletion.

Navigating to the Data Management tab
Figure 8: Navigating to the Data Management tab

Then, create a new bulk record deletion job.

Creating a new bulk deletion job
Figure 9: Creating a new bulk deletion job

When defining the search criteria, select either the view created as described in 1a, or recreate the search as outlined in 1b.

Defining the search criteria for our bulk deletion job
Figure 10: Defining the search criteria for our bulk deletion job

Click next.  On the following screen, you can define when the bulk deletion job should run.

Defining the schedule for the job
Figure 11: Defining the schedule for the job

You can submit your workflow on the final step.  Once submitted, this will enable the workflow.

Reviewing our bulk deletion job prior to submission
Figure 12: Reviewing our bulk deletion job prior to submission

Additional: Deleting debug records or AutoMergeWorkingItems

Old DocumentsCorePack debug records and AutoMergeWorkingItems can take up storage space as well.  They can be similarly deleted using bulk deletion.

To delete debug records, select MSCRM-ADDONS.com Debug in the dropdown and set it delete any inactive debug records.

The configuration for our debug record bulk deletion job
Figure 13: The configuration for our debug record bulk deletion job

To delete AutoMergeWorkingItems, select MSCRM-ADDONS.com AutoMergeWorkingItems in the dropdown and set it to delete inactive records older than seven days.

The configuration for our AutoMergeWorkingItem bulk deletion job
Figure 14: The configuration for our AutoMergeWorkingItem bulk deletion job

Once both workflows have been configured, set a schedule and submit them.

That’s it! We appreciate your feedback! Please share your thoughts by sending an email to office@mscrm-addons.com.

Tags:temporarydata filestemporary documentstemp datatemp documentsbulk delete

Was this helpful?

8 Yes  2 No
Related Articles
  • Deploying DocumentsCorePack: Setup, Automation, and Real Business Impact in Dynamics365
  • Introducing the DocumentsCorePack Template Designer Office Add-In (Beta)
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
  • DeepSign for DocumentsCorePack 
  • Generate and send a document for e-signing using DeepSign
  • How to prepare a document for DeepSign
Latest Articles
  • What Happens After You Deploy AttachmentExtractor: Storage & Cost Savings in Dynamics 365
  • Deploying DocumentsCorePack: Setup, Automation, and Real Business Impact in Dynamics365
  • Introducing the DocumentsCorePack Template Designer Office Add-In (Beta)
  • How to Eliminate Excess Storage Costs in Microsoft Dynamics 365 Without Losing Access to Emails and Attachments
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Application Access for Dynamics 365
  • How to find your environment’s unique name in Microsoft Dynamics 365
  • How licenses are counted
Top Rated Articles
  • “Undefined”-labels in Chrome and Edge 114 and higher
  • Important information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack Connector for PowerApps & Microsoft Flow
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • How licenses are counted
Categories
  • *News and General Infos* 64
  • Webinars 45
  • Template Designer(DCP 196
  • DocumentsCorePack(DCP 258
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 75
  • PowerSearch (PS 50
  • ActivityTools (AT 61
  • SmartBar (SB 54
  • GroupCalendar (GC 47
Our Vision

“We see it as our purpose to provide products that simplify and speed up our customers’ Microsoft Dynamics 365 experience.”

Knowledgebase
LogIn
mscrm-addons.com
  • Products
  • Online Shop
  • Downloads
  • My Account
About Us
  • About Us
  • Case Studies
  • Newsletter
  • Partner Program
  • Contact
Support
  • Support
  • Terms & Conditions
  • Documentation
  • Webinars
  • Legal Documents
  • Impressum
  • © 2025 www.mscrm-addons.com. All Rights Reserved.