Guest User

Untitled

a guest
Jun 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. var api = XeroApiHelper.CoreApi();
  2.  
  3. api.SummarizeErrors(false);
  4.  
  5. var invoices = new List<Invoice>();
  6. var invoicep = new List<Invoice>();
  7.  
  8. int i = 1;
  9. do
  10. {
  11. invoicep = api.Invoices.Where("Contact.ContactID == Guid("" + xeroId + "")").Page(i).Find().ToList();
  12. invoices.AddRange(invoicep);
  13. i++;
  14. } while (invoicep.Any());
Add Comment
Please, Sign In to add comment