XeroAPI.Net
XeroAPI.Net copied to clipboard
The method 'Except' can't currently be used in a XeroApi WHERE querystring.
Dim ListOfExistingInvoices_Typed As New List(Of Invoice)
inv As New Invoice inv.InvoiceID = New Guid("fcbfd7b5-9d45-4e0a-8156-d7acc6462767")
inv2 As New Invoice inv2.InvoiceID = New Guid("9f7b0d52-7096-4101-9a64-ead1ac536306")
ListOfExistingInvoices_Typed.Add(inv) ListOfExistingInvoices_Typed.Add(inv2)
For Each arInvoice As Invoice In notArInvoices.Except(ListOfExistingInvoices_Typed)
Console.WriteLine("Invoice {0} is at status {1}", arInvoice.InvoiceID, arInvoice.InvoiceNumber)
Next
I get the following error: The method 'Except' can't currently be used in a XeroApi WHERE querystring.