DeleteTransactionEntity Method
Deletes a specified transaction from Microsoft Dynamics GP.
Class
Microsoft.Dynamics.GP.eConnect.eConnectMethods
Syntax
public bool DeleteTransactionEntity(string connectionString, string sXML)
Parameters
Name |
Data type |
Description |
---|---|---|
connectionString |
string |
Specifies your data server and database. |
sXML |
string |
An eConnect XML document. |
Return Value
Type: boolean
The method returns a boolean value that indicates whether the XML document was successfully deleted. A return value of True indicates the operation succeeded.
Remarks
Use the DeleteTransactionEntity method to remove transaction data from Microsoft Dynamics GP. For example, use DeleteTransactionEntity to remove a sales order or inventory transaction document.
Use the DeleteTransactionEntity method with eConnect XML transaction types that include nodes to delete records. If the document schema for a transaction type does not include a node to delete a record, you cannot use DeleteTransactionEntity with that transaction type.