Add condition to only fetch active items from Zoho Books

Add condition to only fetch active items from Zoho Books

Hi, how would you modify the following Deluge code to only fetch Items from Zoho Books that are "active" status:

  1. response = zoho.books.getRecords("Items","111222333444");
  2. itemList = response.get("items").toJSONList();
  3. for each  item in itemList
  4. {
  5. input.Items:ui.add(item.getJSON("item_name"));
  6. }

Thank you!