I want to delete an item in a list when it matches some critera using UpdateListItems web service. I dont know the ID of the list item that I want to delete but do know the criteria.
For example in SQL I could do:
DELETE FROM listName WHERE LastName='Bauer' AND FirstName='Jack'
How would you write a Batch Element to do this?
Update
Would it be something like this?
<Batch PreCalc='TRUE' OnError='Continue'>
<Method ID='1' Cmd='Delete'>
<Field Name='LastName'>Bauer</Field>
<Field Name='FirstName'>Jack</Field>
</Method>
</Batch>
Is the ID for the Method or the ID of the thing you wish to delete?
Update
I have tried the following code and the error that is returned is
Invalid URL Parameter
The URL provided contains an invalid Command or Value. Please check the URL again.
My guessing is that it is not possible to do without the ID...