Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 38722

Forum Post: RE: Automating Payable in VB.Net - How to check for Duplicate Invoice Numbers popup.

$
0
0
I am not sure how you are coding this, but I would check to see if the invoice number exists before even trying to enter it. I have written code in c#, but I would assume the libraries are similar for VB. Below is an example of how to query a table and check the results in c# //Search for document number Microsoft.Dexterity.Applications.Dynamics.Tables.PmPaidTransactionHist.Key = 3; Microsoft.Dexterity.Applications.Dynamics.Tables.PmPaidTransactionHist.DocumentNumber.Value = docNum; TableError err = Microsoft.Dexterity.Applications.Dynamics.Tables.PmPaidTransactionHist.Get(); if (err == TableError.NoError) { //Invoice exists } else { //Invoice does not exist } ~James

Viewing all articles
Browse latest Browse all 38722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>