Share via


DoUpdatePurchaseOrder Method

Updates the purchase order.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)

Syntax

'Declaration
Protected Sub DoUpdatePurchaseOrder ( _
    purchaseOrderDataSet As DataSet, _
    applicationId As String _
)
'Usage
Dim purchaseOrderDataSet As DataSet
Dim applicationId As String

Me.DoUpdatePurchaseOrder(purchaseOrderDataSet, _
    applicationId)
protected void DoUpdatePurchaseOrder(
    DataSet purchaseOrderDataSet,
    string applicationId
)
protected:
void DoUpdatePurchaseOrder(
    DataSet^ purchaseOrderDataSet, 
    String^ applicationId
)
protected function DoUpdatePurchaseOrder(
    purchaseOrderDataSet : DataSet, 
    applicationId : String
)

Parameters

  • applicationId
    Type: System..::.String
    Identifier for the caller application as defined in the StatusManager table in transactionconfig database.

Remarks

Updates the purchase order. The purchase order object with the same order group ID is loaded from the database. If no purchase orders are found, a PurchaseOrderNotFound exception is thrown because new purchase orders cannot be created through the Web service.

The specified dataset is converted into a purchase order object. During the conversion, any collections for which the user does not have permission will be replaced with the collection members from the instance of the purchase order loaded from the database.

The DataSet is saved back to the database.

Permissions

See Also

Reference

OrderServices Class

OrderServices Members

Microsoft.CommerceServer.Orders Namespace