• .NET 5, 6 Support

    Hello. Do we know when it might be possible to interface a .NET 5+ project with Sage 50? Any idea of ETA or direction would be greatly appreciated. It looks like .NET Framework 4.8 was release just over 3 years ago (April 2019). If you're reading this…
  • How to set date range for customer export? sage50 api question.

    Im exporting sage50 customer details in this code. Please let me know how can I set date range to the exporter object so that will pull only contact updates within certain dates. Code- exporter = (Export)ptApp.CreateExporter(PeachwIEObj.peachwIEObjContactsList…
  • Incompatible Company Version Exception

    I went to deploy a desktop application on a clients machine after completing development and testing. Upon authentication, I get the following exception message. I verified that we are using the same version of Sage50 and the build number. Does anyone…
  • Sage 2018 - upgraded to 2019 and then downgraded back to 2018, now API won't work

    We have written a program for one of our clients using the Sage Peachtree API. Every time they upgrade versions, we always have to get the latest DLLs and rebuild our app to make it work again. However recently they say that they installed Sage 2019,…
  • NullReferenceException when creating invoice line items

    Getting this error when I try and add lines to a new sales invoice: // Create invoice var invoice = Company.Factories.SalesInvoiceFactory.Create(); // Invoice #, Date, Customer ID invoice.CustomerReference = customer.Key; invoice.ReferenceNumber…
  • There was a problem opening company.: (inner exception: FileNotFound)

    var companyId = GetCompany(); try { // Request authorization from Sage 50 for our third-party application. AuthorizationResult authorizationResult = Session.RequestAccess(companyId); This line Session.RequestAccess throws a PeachtreeException: FileNotFound…
  • Update invoice using COM APIs Code.

    Hi All, I am trying to update invoice in Sage 50 US using COM APIs PeachWServer DLL. but it won't getting update, Can anyone help on this or give me comment or hint to resolve it? Thansk, SF
  • Add Purchase Invoice / also known as Purchase Journal/ also knows as GRV using Sage 50 U.S SDK 2018

    I wanted to add SaleInvoice using the SDK and found out that there is a method Company.Factories.SalesInvoiceFactory .Create(). But When I wanted to create PurchaseInvoice, I tried to look Create() Method in Company.Factories.PurchaseInvoiceFactory. But…
  • How to overwrite the sales tax using sdk

    We want to be able to write the Sales tax of a document back to sage using a third party application. From the .net dll, we have understood that the sales tax can only be calculated but not written to. But we want to know if there is any way we can edit…
  • Get Application Unique Key of a company

    Hello All, I have a created a new company. I need to access that file through my .net application. To begin connection it asks for "Application ID". I have searched in my sage sotware regarding id. I couldn't get. Where do I get my application id? …
  • Getting the rate of a Tax Code

    Hi, I'm using the .NET SDK and I cannot find anywhere the actual rate of a taxCode, is this property available at all? Thanks, Ignacio
  • update onhand on MasterStockItem

    Hi, Is there any way to update the onhand qyt in a MasterStockItem from the SDK?
  • How to get assembly component list using .net api ?

    How do I get the component list for an Assembly item using the SDK ? I can get the list of Assembly items using the AssemblyItemFactory, but it does not have a Bill of Materials or Components collection for each item. The only way I've found so far…
  • Sage SDK Web Support

    Does the Sage 50 SDK support web applications? I'm attempting to create an ASP.NET application to talk with Sage back and forth. I added the API to the website with it simply starting a session but I receive an expection: Could not load file or assembly…
  • .Net and bill of materials.

    Can we access the component items of an AssemblyItem via .Net? I don't see anything obvious in the API. Maybe COM is the only way to get there?
  • SDK Performance is tooooo slow

    Hi, I have sage 50 accounting, the data are on a local server (within same network). We have no issue with the performance when using Sage 50 but when using the SDK it's really [:@]tooooooooooooo[:@] slow Listing companies takes 45 seconds! Finding…
  • CriptographicException and System.InvalidOperationException

    I can hit all the sample databases and my private database locally; however, when deployed I get this exception: System.Security.Cryptography.CryptographicException","StackTrace": " at Sage.Peachtree.API.PeachtreeSession.VerifyOrRequestAccess(CompanyIdentifier…
  • Having connectivity issue with Sage 50 US 2016 Quantum Accounting Edition

    Hi All, We are having connectivity problems with Sage 50 US 2016 Quantum Accounting Edition. The version of the Sage 50 is " 23.2.00.0184 ". Our application is .Net application which is integrating with Sage 50 US. It is working fine on our end but…
  • Sage 50 2016 SDK - The type or namespace name 'Sage' could not be found (are you missing a using directive or an assembly reference?)

    Hi, I tried to connect to Sage 50 2016 but It is impossible, when I compile my code, I get this error: Error 4 The type or namespace name 'Sage' could not be found (are you missing a using directive or an assembly reference?) It is a little weird…
  • C# GetApplication returns null with Peachtree 2008

    I am creating an automated import of Purchase Invoices for a client who is using Peachtree 2008 Premier, and I've downloaded Sage 50 2016.0 SDK. I'm using the credentials that were provided when I downloaded the SDK and the function returns NULL. When…
  • Limiting the number of sales orders returned in the SalesOrderFactory

    Is there a way to limit the number of sales orders that are returned when using the SalesOrderFactory by specifying some type of parameter? I'd like to just return a set of orders for a date range instead of every Sales Order on the system. I'm having…
  • How do you keep from having to 'allow access' every time you run your app?

    I have an Application ID and I can start a new session and open our production company, but every time I (or anyone) runs this c# .net app it always says that I have to open Sage and allow access. I open Sage and select 'Always Allow' but we have to do…
  • Get authorization notification again? (SDK / .NET)

    I believe our customer was prompted to authorize the integration of our product with Sage 50, and they chose the "No" option to disallow our product to communicate with Sage 50. How can we get this prompt back in order to attempt to authorize our application…
  • SalesInvoiceFactory does not contain definition for Create‏

    I would like to ask why I am getting the above error when using the following for integrating with Sage SDK: sales_invoice_factory = Company.Factories.SalesInvoiceFactory; SalesInvoice invoice = sales_invoice_factory.Create();
  • RE: Creating Invoices through SDK

    Hi, I tried: SalesInvoice sales_invoice = Company.Factories.SalesInvoiceFactory; but getting: > Cannot implicitly convert type 'Sage.Peachtree.API.Factories.SalesInvoiceFactory' to 'Sage.Peachtree.API.SalesInvoice'