Create a FileMaker query to return an array of objects containing file names for the target server.
Create a -dbnames query to return file names for the server. Will just return filenames that have at least one account with xml privileges. This one usually takes a little longer to get a response from the FileMaker Server for some reason.
var query = fmxj.fileNamesURL(); fmxj.postQueryFMS(query, writeResult);//POST query