UpdatePurchaseOrder Method
Updates the PurchaseOrder object.
Namespace: Microsoft.CommerceServer.Orders.WebService
Assembly: Microsoft.CommerceServer.Orders.DataManagement (in Microsoft.CommerceServer.Orders.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Sub UpdatePurchaseOrder ( _
purchaseOrderDataSet As DataSet, _
applicationId As String _
)
'Usage
Dim instance As OrdersWebService
Dim purchaseOrderDataSet As DataSet
Dim applicationId As String
instance.UpdatePurchaseOrder(purchaseOrderDataSet, _
applicationId)
[WebMethodAttribute]
public virtual void UpdatePurchaseOrder(
DataSet purchaseOrderDataSet,
string applicationId
)
[WebMethodAttribute]
public:
virtual void UpdatePurchaseOrder(
DataSet^ purchaseOrderDataSet,
String^ applicationId
)
public function UpdatePurchaseOrder(
purchaseOrderDataSet : DataSet,
applicationId : String
)
Parameters
- purchaseOrderDataSet
Type: System.Data..::.DataSet
A DataSet for the PurchaseOrder object.
- 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 identifier is loaded from the database. If no purchase orders are found, a RecordNotFoundException 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.
In order to perform a UpdatePurchaseOrder, the user must have the OrdersViewer permissions. See Orders System Roles [CS06] for more information about the specific roles in the Order System.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.