I am trying to delete items in bulk and keep getting this error message:
<Results><Result ID="" Code="-2130575312">
<ErrorText>Invalid file name.
The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have permission to access the file.</ErrorText></Result>
<Result ID="" Code="-2147023673">
<ErrorText>The operation failed because an unexpected error occurred. (Result Code: 0x800704c7)</ErrorText></Result>
<Result ID="" Code="-2147023673">
here is my batch xml:
<?xml version="1.0" encoding="UTF-8"?>
<Batch>
<Method>
<SetList>fe8ac4a1-c326-4a89-83ec-0793cdee943e</SetList>
<SetVar Name="ID">1</SetVar>
<SetVar Name="Cmd">Delete</SetVar>
</Method>
<Method>
<SetList>fe8ac4a1-c326-4a89-83ec-0793cdee943e</SetList>
<SetVar Name="ID">3</SetVar>
<SetVar Name="Cmd">Delete</SetVar>
</Method>
</Batch>
I used the code from here: https://gist.github.com/cakriwut/3b19fa7befedddb715f8