RE: Auto posting of sub ledger batches via code
Hi,
This is a relatively common question and your wording is fine. Unfortunately, as you discovered, Dynamics GP does not have the ability to automatically post batches, and it also does not have any direct API calls that allow a developer to post batches.
It is possible to write some "macro-type" code to automate the button click to post a batch, but there are potential complexities. If you only need to post one batch type and small number of batch IDs once a day, you might be able to develop such a solution yourself, although it is not an easy task to do properly.
But if you need to handle multiple batch types, batch reporting, automatic batch detection, email notification, posting failure detection, error handling, and scheduling, then that becomes a very complex and difficult project, and in such a case I would recommend using a third party batch posting solution. The cost of such a product would be far less than trying to develop it yourself.
There are a few third party batch posting products available. I personally resell Post Master for Dynamics GP due to its architecture and features, but you should evaluate the available products and see which one meets your needs the best.
envisagesoftware.com/post-master-enterprise-for-dynamics-gp