The web service offering for Dynamics GP has a call to CreateSalesInvoice. The problem I'm running into is the call returns void so I don't actually get the sales invoice object after completing the call. I can see the invoice is created in the database and assigned an Id (Key).
From my application I am passing in the values to create the sales invoice and then I want to capture the Id so I can then process a payment against our payment gateway. I want this to all be handled in code. It doesn't seem reasonable to produce a list of invoices by customerId after the user just created the invoice and then have them select the newly created invoice and then process the payment.
Is there a way to get the id after the create method call?