XeroAPI / Xero-NetStandard

A wrapper of the Xero API in the .NetStandard 2.0 framework. Supports Accounting, Payroll AU/US, and Files
MIT License
126 stars 124 forks source link

Filtering Archived Items when using GetItemsAsync() method #460

Open HurseyNZ opened 1 year ago

HurseyNZ commented 1 year ago

Using the following code

string whereFilter = "IsSold==True";
var xeroApi = new Xero.NetStandard.OAuth2.Api.AccountingApi();
var response = await xeroApi.GetItemsAsync(<AccessToken>, <TenantId>, null, whereFilter);

Getting result set back which is including items that have been marked as archive. Not seeing any obvious way to filter out Achieved products.
Noted there is a StatusAttributeString property but that seems to be null on all products