Skip to content

Developer Tools

AP Apply Library

Apply unposted AP payments to open invoices from your own .NET code.

.NET class library (DLL) / API · Version 2.0x · Dynamics GP 2016 through 18.x

The AP Apply Library is the developer-facing companion to AP Payment and Apply Import. Where the application reads CSV files, the library lets your own code do the apply step.

Reference the DLL in your .NET project, or drop it into an eOne SmartConnect map, and apply unposted manual payments and credits to open vouchers — across company databases, with clear error codes for handling exceptions.

The challenge

Integrations that import AP manual payments into Dynamics GP often stop short of applying those payments to the right open invoices. Writing the apply logic by hand against the GP tables is complex and easy to get wrong.

How AP Apply Library helps

The AP Apply Library is a standard .NET assembly you reference in your own project. Call its methods to apply unposted manual payments or credits to open vouchers across multiple GP company databases, with error codes and messages returned for validation and exception handling. It also works as the apply step in an eOne SmartConnect map.

Benefits

What you get

A programmatic API

Apply AP payments to open invoices directly from your own .NET code.

Standard .NET assembly

Add the DLL as a reference in a .NET project and call its methods.

Payments or credits

Apply either manual payments or credit memos.

Multiple companies

Apply payments across multiple GP company databases.

Works with eOne SmartConnect

32-bit and 64-bit builds are provided. The x64 build supports SmartConnect 21 and higher.

Document type support

Apply a payment to Invoice, Finance Charge, or Misc Charge document types.

Clear error handling

Returns error codes and messages for validation and exception handling.

Features

How it works in detail

Reference and call

A standard .NET DLL that you add as a reference in your project, then call to apply payments after your import.

SmartConnect apply step

Use the library as the apply step in an eOne SmartConnect map. 32-bit and 64-bit builds are provided.

Multi-company and multi-document

Apply across GP company databases, to Invoice, Finance Charge, or Misc Charge documents.

Included tester form

A Visual Studio tester form is included with the product for testing the library.

Requirements

Compatibility and requirements

Supported: Dynamics GP 2016 through 18.x.

What you need

  • Microsoft .NET Framework 4
  • Windows authentication, a SQL Login, or a Dynamics GP login to access the Dynamics GP SQL Server
  • The Duplicate Check Numbers option must be unchecked for all checkbooks used for AP manual payments
  • PM table database triggers must be identified and either modified to include SET NOCOUNT ON, or disabled

Good to know

  • Does not support multi-currency payments or applications.
  • Does not support checkbooks that allow duplicate check numbers.
  • Does not change or update GL account distributions for PM manual payments when a payment is applied to invoices with different AP accounts.

FAQ

Common questions

What is included?

The .NET assembly DLL, in 32-bit and 64-bit builds, plus a Visual Studio tester form for testing the library.

Does it work with eOne SmartConnect?

Yes. Use it as the apply step in a SmartConnect map. The x64 build supports SmartConnect 21 and higher.

Does it have a user interface?

No. It is a library that your application calls. The included tester form is for testing only.

Which Dynamics GP versions are supported?

Dynamics GP 2016 through 18.x.

Interested in AP Apply Library?

Contact us to purchase, ask a question, or request more information.