Web Services Samples for Microsoft Dynamics GP

This page contains various sample applications and downloads created and tested for use with Web Services for Microsoft Dynamics GP.

Overview

The purpose of these downloads is to provide Web Services developers with examples of code that can be used in their applications. All sample code used in production applications will need to be fully understood and maintained by the application developer. There is no further samples provided on later versions of Microsoft Dynamics GP. The samples below are as is going forward.

Downloads

Download Description
SOPInvoiceTaxesSample2013.zip File Size: 4.1MB SOPInvoiceTaxesSample2015.zip File Size: 3.7MB SOPInvoiceTaxesSample2016.zip File Size 3.7MB This samples provides examples of policy settings required for a Web Service application to provide unit price and tax detail information rather than having Web Services default this information. This sample also has the code necessary to create pricing and tax information in a Web Services application.
WebServiceTester2013Native.zip File Size: 383KB WebServiceTester2015Native.zip File Size: 386KB WebServiceTester2016Native.zip File Size: 386KB This application can be used for testing that Web Services is installed and can be communicated with from a .Net application. The application connects to GP Web Services to retrieve a company list, once a company is chosen, you can perform a get list, get by key and create on Accounts, Customers, Payables Invoices, and Purchase Orders.
WebServiceTester2013NativeSource.zip File Size: 8.3MB WebServiceTester2015Native Source.zip File Size: 8.4MB This is the source code for the Web Service Tester application.
ItemInformation2015.zip File Size: 3.8KB ItemInformation2016.zip File Size: 3.8KB This C# sample shows how to retrieve the Quantity On Hand value for an Inventory Item. The SalesItem class provides a Quantities property which is a collection of SalesItemWarehouse objects. The SalesItemWarehouse object contains quantity amounts for each item and site combination. This sample shows how to return these OnHandQuantity amounts for each item and site combination and also sums the OnHandQuantity amounts to provide a total amount.
PMInvoices2015.zip File Size: 3.8KB PMInvoices2016.zip File Size: 3.8KB Retrieve a list of vendors and create a payables management invoice transaction in Microsoft Dynamics GP via GP Web Services.
SalesInvoicewithseriallots2015.zip File Size: 3.7KB This C# sample application contains two samples. The first sample creates an invoice in Sales Order Processing and uses a lot numbered item and assigns multiple lots to the item. The second sample creates an invoice in Sales Order Processing and uses a serial numbered item and assigns multiple serial numbers to the item.
SOPDisplayLineItems2015.zip File Size: 3.8KB Retrieve a SOP Invoice, display the line items and allow the updating of the SOP Invoice through GP Web Services.
WSSDK_VBSamples2015.zip File Size: 12.1KB This download contains the following VB.net versions of the Web Services SDK sample applications: Sales Documents, Import GL Transactions and Update Customers. Readme documents on each of these samples can be found in the download.

Support Information

For technical support questions, contact your partner or direct your questions to the Support for Business hub: https://serviceshub.microsoft.com/supportforbusiness/create