Hi Chris,
first of all, please remove the information about your cloud system from the attachments.
Second, you created a console application in C# - console applications always just do what is defined in the method "main" and then quit - this is just how the C# logic works.
To be able to call other methods defined in the same class "Program", you would need to call the following code in your main method:
static void Main(string[] args)
{
Program program = new Program();
//call whatever methods you need
program.GetDocumentById("Inbox",true,123);
}
However, this is not really best practice. If possible, you should aim to put your methods into a new class and create an instance of the new class which contains all the logic.
For example, I recently created a test application with this Main method (don't call your productive class like that though):
static void Main(string[] args)
{
DoThings doThings = new DoThings();
doThings.CheckForNewDocuments();
}
If you want to have dynamic search criteria, you might want to think about building a WPF or Windows Forms application instead so the user can input their criteria into a GUI.
If it is something which should run automatically, you should either stay with the console application and have it start through task planning or switch over to a windows service with a timer.
In any case, you might want to use a configuration file to set your search criteria - have a look at how the App.config works, that is probably the easiest way in C#.
Greetings from Germany,
Simon H. Hellmann
DocuWare System Consultant