Skip to content

ethan-sorenson/PostOrdersWebService

Repository files navigation

Post Orders Web Service

This extension creates a web service for posting transactions.

The Extension now supports the following entities:

  • Sales Order
  • Sales Invoice
  • Sales Credit Memo
  • Purchase Order
  • Purchase Invoice
  • Purchase Credit Memo

The standard Business Central web services support posting transactions with bound services as documented here. This method does not work with SmartConnect or allow batch posting.

Overview

This Extension recreates the Batch Posting window seen below. The Codeunits Cod50213.SCSalesPostingProcedures.al and Cod50214.SCPurchPostingProcedures.al use the standard posting codeunits to post the batches.

increment

Getting Started

  1. If you aren't familar with building AL extensions you can use the Microsoft documentation to get started.
  2. The Tab50210.SCPostTransactions.al file can be modified as needed to use additional logic.
  3. After publishing the extension you will be able to post batches using a json format similar to Sample.json

Troubleshooting

Web Service isn't available after publishing

  • Make sure the service is published as outlined here.
  • Make sure the service is named as expected ex. /ODataV4/Company('Sample')/SCPostTransactionBatch

Something else isn't working properly

Updates

  • 1.0.0.1 first release on BC v14
  • 1.0.0.2 updated for BC v16, added support for Purchase Transactions
  • 1.0.0.3 updated for BC v17, replaced obsolete references

Enjoy!

Releases

No releases published

Packages

No packages published

Languages