Skip to content

Instantly share code, notes, and snippets.

@styson
Last active August 29, 2015 14:03
Show Gist options
  • Save styson/601d30e04c0ec0cce653 to your computer and use it in GitHub Desktop.
Save styson/601d30e04c0ec0cce653 to your computer and use it in GitHub Desktop.
test for MoreThan generic date filter
var FCApp = new ActiveXObject("FCFLCompat.FCApplication");
FCApp.WorkingDirectory = 'C:\\projects\\Dovetail-Agent\\pages\\';
FCApp.Initialize();
var FCSession = FCApp.CreateSession();
FCSession.Login('sa', 'sa', 'user');
FCSession.ThrowErrors = false;
var actEntry = FCSession.CreateGeneric('act_entry');
actEntry.AppendFilter("entry_time", ">", "7/2/2014 10:40:13 AM");
actEntry.Query();
WScript.Echo("\n\nFound: " + actEntry.Count());
WScript.Echo("\n\nProcessing Completed: " + (new Date()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment