1

Am I able to use a dynamic date range for the "where" parameter? I'd like to get all the data changed in the last 30 mins.

All I can find in the documentation is using static dates: https://developer.xero.com/documentation/api/requests-and-responses

may-z
  • 127
  • 1
  • 1
  • 6

1 Answers1

1

You could try using the query string in the Where Clause. For Ex.

   string querystr = "Date >= " +
                                "DateTime(" + dateFrom.Year.ToString() + ", 
   " + dateFrom.Month.ToString() + ", " + dateFrom.Day.ToString() + ") " +
                                "&& Date <= " +
                                "DateTime(" + dateTo.Year.ToString() + ", " 
   + dateTo.Month.ToString() + ", " + dateTo.Day.ToString() + ")";

Passing this querystring to retrieve user defined date rage Invoices

Shereen
  • 119
  • 1
  • 17