cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarshallPlexi
Regular Visitor

Flow to Delete All Records From a Dataverse Table

I created a new Flow to delete all records from a Dataverse table.  There are no errors when saved but I get a 404 error when run.
The "Get a row by ID" action for the Row ID if you hover is:  items('Apply_to_each')?['@odata.id']
The "Delete a row" action for the Row ID if you hover is:      outputs('Get_a_row_by_ID')?['body/@odata.id']

Flow - Delete All Records from DV Table (404 error).png

When it fails, I can see that it is a 404 error (see screenshot below).  I would appreciate any recommendations. 
Flow 404 ERR - Delete All Records from DV Table.png

1 ACCEPTED SOLUTION

Accepted Solutions
vikulkar
Community Support
Community Support

@MarshallPlexi ,

 

Instead of the OdataID, you will have to provide the UniqueIdentifier from the dynamic content.

vikulkar_0-1642284983344.png

 

So which should look something like: items('Apply_to_each')?['TestListChoices2sid']

 

Thanks and Regards,

 Vikas K

 

 

View solution in original post

2 REPLIES 2
vikulkar
Community Support
Community Support

@MarshallPlexi ,

 

Instead of the OdataID, you will have to provide the UniqueIdentifier from the dynamic content.

vikulkar_0-1642284983344.png

 

So which should look something like: items('Apply_to_each')?['TestListChoices2sid']

 

Thanks and Regards,

 Vikas K

 

 

@vikulkar - Thank you for your response!  I am marking this as the solution.  Thanks again!

Here is my final Flow.
Flow - Delete All Records from DV Table (works).png

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,736)