GetNextSOPNumber Method
This method will retrieve the next document number for the specified type of Microsoft Dynamics GP sales order processing document.
Class
Microsoft.Dynamics.GP.eConnect.GetNextDocNumbers
Syntax
public virtual string GetNextSOPNumber( GetNextDocNumbers.IncrementDecrement incDec, string docIdKey, GetNextDocNumbers.SOPType docType, string connString )
Parameters
Name |
Data type |
Description |
---|---|---|
incDec |
Microsoft.Dynamics.GP. |
Use the IncrementDecrement enumeration member Increment to get the next SOP document number. Use Decrement to return the DocIDKey parameter as an unused document number. |
docIdKey |
string |
Specifies the document ID |
docType |
Microsoft.Dynamics.GP. |
Use a SopType enumeration member to specify the type of SOP document number to return. SopType includes the following members: SOPQuote SOPOrder SOPInvoice SOPReturn SOPBackOrder. |
connString |
string |
Specifies the SQL server and database. |
Return Value
Type: string
This method returns a string that contains the requested SOP document number.