Use of the Chrome extension will give you this.
There are multiple ways of running the search but the easiest would look something like this:
Code:
var searchObj = search.create({
type : “customrecord_mycustrecord”,
filters : [],
columns : [
“custrecord_field1”,
“custrecord_field2″
]
});
var searchResultCount = searchObj.runPaged().count;
searchObj.run().each(function(result){
// .run().each has a limit of 4,000 results
var field1 = result.getValue({name:”custrecord_field1″});
var field2_text = result.getText({name:”custrecord_field2”});
return true; // return must be true in order to iterate all results.
});