script to invoke listRecords