Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

How to delete OrderClose, OpportunityClose & QuoteClose Activities?

Posted on by 27

We have been having on-going issues with database storage, mainly the ActivityPointerBase table growing in size. We managed to get a decent breakdown from Microsoft Support showing us that the OrderClose, OpportunityClose, CaseClose & QuoteClose activities are the highest counts on the ActivityPointerBase table.

Here is an example of the OrderClose activity:

pastedimage1684411708809v1.png

I don't see any benefit to keeping these system generated activities, but I cannot delete them via bulk deletion as the Activities table is not an option as seen in the below screenshot:

pastedimage1684407961993v1.png

I then created a cloud flow to try and delete these records but ran into an error message stating that I cannot delete these activities because the table does not support this method:

pastedimage1684408005334v2.png

Here is the logic I'm using in the flow:

pastedimage1684408100790v3.png

It lets me delete these activities via advanced find - but I would like an automated method.

  • Verified answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: How to delete OrderClose, OpportunityClose & QuoteClose Activities?

    Hi,

    Instead of using Activities in Delete A Row action, you will have to choose Opportunity close/QuoteClose/Case close based on Activity type code from List rows.

    You will have to add  check condition and define various delete Action for each entity types .

    You can not directly use Activities in Delete action.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans