Running a addon in Sage 200 on a scheduled task

I am not sure if this is possible, but we have an addon on Sage that was written by our consultant that updates mrp recommendations and currently this is something that is run manually every morning. I have been asked if I can make it run via a windows scheduled task in the middle of the night after mrp has run. I can see how the mrp is run (there is a bat file that runs the Sage.Manufacturing.AutomatedMrpRun.exe from the appdata folder, but as this is an addon, I have no idea where or how to run it. 

Anyone have any idea. 

Cheers....

  • 0

    This will depend on whether the 'add on' is an executable or not. Is it something you run outside of Sage 200, or is it something that you launch within Sage 200 itself?

    The other issue here is how you reliably detect that the MRP process has completed (other than having a general idea of how long it tends to take and scheduling the custom process a sufficient timespan away).

  • 0 in reply to Chris Burke

    According to the addon its a dll and its side loaded. So I am not sure if its even possible. 

    We know our mrp takes about 45 mins to run and they want this addon to run around 2 hours after mrp has finished. 

  • 0 in reply to Derrick Denley

    I hope it isn't side loaded! No need for that kind of thing!

    Regardless - if it's a dll then it doesn't have an entry point so it can't be run outside of an exectuable that loads it (and Sage200Desktop.exe is currently the executable that does so). Your Sage Business Partner will need to knock up a little application (like a console app) which can connect to Sage 200 then run whatever's in the dll. Pretty trivial to do something like that. Then you can create a scheduled task that runs the app.