Share via


DoSavePurchaseOrder Method

Accepts a purchase order represented in XML text, deserializes it, and saves it to the database.

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

Syntax

'Declaration
Protected Function DoSavePurchaseOrder ( _
    purchaseOrderXml As XmlElement, _
    applicationId As String _
) As Guid
'Usage
Dim purchaseOrderXml As XmlElement
Dim applicationId As String
Dim returnValue As Guid

returnValue = Me.DoSavePurchaseOrder(purchaseOrderXml, _
    applicationId)
protected Guid DoSavePurchaseOrder(
    XmlElement purchaseOrderXml,
    string applicationId
)
protected:
Guid DoSavePurchaseOrder(
    XmlElement^ purchaseOrderXml, 
    String^ applicationId
)
protected function DoSavePurchaseOrder(
    purchaseOrderXml : XmlElement, 
    applicationId : String
) : Guid

Parameters

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

Return Value

Type: System..::.Guid
The order group identifier for the purchase order being saved.

Remarks

Xml which conforms to the orders XSD is de-serialized into a Purchase Order and the PO will be saved. Method performs the concurrency check for the existing purchase orders.

Permissions

See Also

Reference

OrderServices Class

OrderServices Members

Microsoft.CommerceServer.Orders Namespace