Skip to main content

Notifications

Community site session details

Community site session details

Session Id : uWELUhahvbmgLHXP4iYZGC
Power Automate - General Discussion
Unanswered

Bulk Delete Dataverse Records using Power Automate

Like (0) ShareShare
ReportReport
Posted on 29 Apr 2022 10:43:56 by 4

Hi Community Members,

 

I am trying to create a Power Automate flow to bulk delete all dataverse records from a table. This table does not have any relationships with other tables and therefore, this needs to be a simple bulk delete operation.

 

I am using the "Perform an Unbound Action" with Action Name "Bulk Delete" to delete the records. I am receiving the following error:

 
Request to XRM API failed with error: 'Message: Flow client error returned with status code "BadRequest" and details "{"error":{"code":"InvalidOpenApiFlow","message":"Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Perform_an_unbound_action': The parameter with value '\"[systemusers(826339ed-cc30-ec11-b6e5-000d3a5b4133)]\"' in path 'item/ToRecipients' with type/format 'String' is not convertible to type/format 'Array'.'."}}". Code: 0x80060467 InnerError: '.
 
It looks like flow is looking for a value that can is convertible to Array. Has anyone tried this and can help me fix this issue.
Thanks in Advance!
  • Shanandra Profile Picture
    2 on 27 Nov 2024 at 18:19:10
    Bulk Delete Dataverse Records using Power Automate
    Am getting an "Internal Server Error" for my flow, any idea what the issue would be?
  • Dsammie0 Profile Picture
    6 on 28 Jun 2024 at 07:31:41
    Re: Bulk Delete Dataverse Records using Power Automate

    I found this helpful: youtube.com/watch?v=oyt20S5Akxg you need to add in [ ] to the recipient fields (to and from).

  • sd_kt Profile Picture
    3 on 09 Apr 2024 at 17:14:43
    Re: Bulk Delete Dataverse Records using Power Automate

    Curious if you ever found a solution for this? I am in the same boat. Thank you!

  • Expiscornovus Profile Picture
    31,652 Most Valuable Professional on 02 May 2022 at 11:20:13
    Re: Bulk Delete Dataverse Records using Power Automate

    Hi @Kartik31,

     

    As far as I am aware the ToRecipients field is the place were you can add e-mail addresses of people who should receive an email notification when a bulk deletion finishes.

     

    Btw, it might be possible to also create bulk deletion jobs from Power Automate. They are also stored in a table in Dataverse 😉

    https://docs.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/bulkdeleteoperation

     

  • Kartik31 Profile Picture
    4 on 29 Apr 2022 at 19:24:42
    Re: Bulk Delete Dataverse Records using Power Automate

    Hi @Expiscornovus ,

    Thank you for the links and the suggestion. I will have a look at these.

     

    However, We are looking for a power automate solution because I have some other actions to perform after the bulk deletion is completed. The problem that I am facing is with the "ToRecipients" parameter of the Bulk delete action under Perform an unbound action.

    Could you help me with what needs to be added to the "ToRecipients"  field?

  • Expiscornovus Profile Picture
    31,652 Most Valuable Professional on 29 Apr 2022 at 15:08:47
    Re: Bulk Delete Dataverse Records using Power Automate

    Hi @Kartik31,

     

    There is bulk deletion option in the data management section for your environment in the Power Platform admin center.

     

    You could use that feature to configure your own bulk deletion job for your specific table:

    https://docs.microsoft.com/en-us/power-platform/admin/delete-bulk-records

    https://docs.microsoft.com/en-us/power-platform/admin/view-take-action-bulk-deletion-jobs

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard