@gordoncheung Ok, sounds like you're just doing some stuff in any scripting language? I'd write a restlet in Suitescript that fetches a CSV file for a search using the above functions and returns it in the HTTP response. Then you can use cURL or wget to fetch the file.