Logic app Delete document cosmos db gives 404 error

Viewed 172

I am trying to delete a document from cosmos db using Logic App. The id exists in db, and I have provided the partition key as well. But still I get 404 error. Can someone assist in adding a delete document function in logic app. My Logic App Flow

404 Error

But the id exists in db

Document id fetched Db

1 Answers

You need to pass the partition key value as the actual id instead of "id" which is the partition key path.

Change it to "fd39d4c4........." it should work then.

Related