• ACCPACCOMAPI Order Prepayment not working

    Hi, I'm trying to automate order ->prepayment->shipment->invoice with COMAPI. I did what I usually do by recording a macro and see the code. I'm able to create the shipment and the invoice but I cant see the prepayment in ARBTA. Sub MainSub() ' ' Sage…
  • System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. at AccpacCOMAPI.IAccpacSession.GetPrintSetup(String menuID, String ProgramID)

    accpacSession = new AccpacSession(); accpacSession.Init("", "XY", "XY1000", "67A"); if (!accpacSession.IsOpened) { Console.WriteLine("open"); accpacSession.Open("ADMIN", "ADMIN", "SAMINC", DateTime.Today, 0, ""); } if (accpacSession.IsOpened) { Console…
  • AccpacCOMAPI

    Hi there, I have a client on Sage 300 5.6 and have upgraded them to 2020. There was some legacy code written to connect an external program through the AccpacCOMAPI but it is now broken. Specifically, when I try to run this, it fails when trying to…