web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

deleting rows in Activity Party table

(1) ShareShare
ReportReport
Posted on by 10
I have a batch of emails in which the Activity party table has been corrupted -- a non-existent Contact has been added to the To: line. I wrote a Power Automate flow that identifies the rows with the 'ghost user' in the Activity Party table, but I can't delete them. Response to the Delete is 'Bad Reequest' error even though I'm sure I'm passing the right GUID to the right tabIe.
 
I understand that Activity Party is a special table and even as system admin I apparently can't do a Delete.  Any ideas how else to tackle this?
Categories:
I have the same question (0)
  • iampranjal Profile Picture
    9 on at
    You are absolutely correct: the activityparty table is a special intersection table. It is tightly coupled with the core Activity record (in this case, the Email), and the platform blocks direct DELETE requests via the API to maintain integrity.
     
    Even as a System Admin, you generally cannot delete a row directly from the ActivityParty table using the "Delete Row" action in Power Automate.
    Here is the explanation of why this happens and the two-step workaround to fix it.
     
    Because the activityparty table is a reflection of the To, From, CC, and BCC fields on the Email, the supported way to modify it is to update the Email record itself.
     
    You need to tell the Email: "Here is the new list of people in the 'To' field." Dataverse will then automatically handle the deletion of the rows in the activityparty table for you.
     
    There is a high probability these emails are in a "Sent" or "Received" (Completed) status. If so, the record is read-only. If you try to update the "To" field on a Sent email, it will fail.
     
    You must temporarily reopen the email to modify it.
     
    Please Upvote if this helps.
     
  • Suggested answer
    iampranjal Profile Picture
    9 on at
    You are absolutely correct: the activityparty table is a special intersection table. It is tightly coupled with the core Activity record (in this case, the Email), and the platform blocks direct DELETE requests via the API to maintain integrity.
     
    Even as a System Admin, you generally cannot delete a row directly from the ActivityParty table using the "Delete Row" action in Power Automate.
    Here is the explanation of why this happens and the two-step workaround to fix it.
     
    Because the activityparty table is a reflection of the To, From, CC, and BCC fields on the Email, the supported way to modify it is to update the Email record itself.
     
    You need to tell the Email: "Here is the new list of people in the 'To' field." Dataverse will then automatically handle the deletion of the rows in the activityparty table for you.
     
    There is a high probability these emails are in a "Sent" or "Received" (Completed) status. If so, the record is read-only. If you try to update the "To" field on a Sent email, it will fail.
     
    You must temporarily reopen the email to modify it.
     
    Please Upvote if this helps.
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans