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
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 tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,976)